Corrupt mpeg4 playback with VDPAU and Feature set C HW
#1
Hello to all.

Actually this was partially fixed. What was fixed was that it does not crash. Playback is still broken for all XVID movies at least on my system with nVIDIA G210 card. The movie starts with sound but I get a green screen with lines. In the xbmc.log I get

(VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:862

Tested up to 26171 on Arch Linux.
The XVID movies play only when I change the 'Render method' to 'Software'.

Anyone experiencing this ?
Reply
#2
Moved to a separate thread as this is a separate issue.
Reply
#3
I have to bump this, I have the same problem...

Choosing VDPAU as renderer sucessfully plays HD-content, but nothing else(green garbage)... This is _even_ if I choose "Auto detect" as renderer...

I dont get the same error in the log, but clearly somethings goes broken Sad For some reason the VDPAU renderer gets chosen even if the file is not able to be played that way..

I'm using a G92 nVIDIA card GF9800GT, binary driver version x86_64-190.53, XBMC version 9.11-0.4 on debian squeeze(testing) from the debian-multimedia repo.

Here's some log...
Code:
22:00:57 T:140094248773696 M:7937572864  NOTICE: DVDPlayer: Opening: <file-to-play>.avi
22:00:57 T:140094248773696 M:7937572864 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
22:00:57 T:140093746559248 M:7937572864  NOTICE: Creating InputStream
22:00:57 T:140093746559248 M:7937572864  NOTICE: Creating Demuxer
22:00:57 T:140093746559248 M:7936811008  NOTICE: Opening video stream: 0 source: 256
22:00:57 T:140093746559248 M:7936811008  NOTICE: Creating video codec with codec id: 13
22:00:57 T:140093746559248 M:7936811008  NOTICE: CDVDVideoCodecFFmpeg::Open() Creating VDPAU(624x352)
22:00:57 T:140093746559248 M:7936348160  NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
22:00:57 T:140093746559248 M:7936348160  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-4 part 2 (VDPAU)
22:00:57 T:140093746559248 M:7936348160  NOTICE: Creating video thread
22:00:57 T:140093746559248 M:7936348160  NOTICE: Opening audio stream: 1 source: 256
22:00:57 T:140093738166544 M:7936348160   ERROR: (VDPAU) ReleasePixmap called without valid pixmap
22:00:57 T:140093746559248 M:7936348160  NOTICE: Finding audio codec for: 86017
22:00:57 T:140093738166544 M:7936348160  NOTICE: running thread: video_thread
22:00:57 T:140093746559248 M:7936348160  NOTICE: Creating audio thread
22:00:57 T:140093729773840 M:7936348160  NOTICE: running thread: CDVDPlayerAudio::Process()
22:00:57 T:140093738166544 M:7936094208  NOTICE: Creating 1440x900 pixmap
22:00:57 T:140093729773840 M:7935332352  NOTICE: Creating audio device with codec id: 86017, channels: 2, sample rate: 48000, no pass-through
22:00:57 T:140093738166544 M:7928094720  NOTICE:  (VDPAU) Didnt find a Video Surface Available (Total: 0). Creating a new one. TRY #1
22:00:57 T:140093738166544 M:7927840768  NOTICE:  (VDPAU) FiniVDPAUOutput
22:00:57 T:140093738166544 M:7927840768  NOTICE:  (VDPAU) screenWidth:1440 vidWidth:624
22:00:57 T:140093738166544 M:7927840768  NOTICE:  (VDPAU) screenHeight:900 vidHeight:352
22:00:57 T:140093738166544 M:7923552256  NOTICE:  (VDPAU) Total Output Surfaces Available: 4 of a max (tmp: 4 const: 4)
22:00:57 T:140093738166544 M:7923552256  NOTICE: VDPAU Decoder capabilities:
22:00:57 T:140093738166544 M:7923552256  NOTICE: name          level macbs width height
22:00:57 T:140093738166544 M:7923552256  NOTICE: ------------------------------------
22:00:57 T:140093738166544 M:7923552256  NOTICE: MPEG1             0  8192  2048  2048
22:00:57 T:140093738166544 M:7923552256  NOTICE: MPEG2_SIMPLE      3  8192  2048  2048
22:00:57 T:140093738166544 M:7923552256  NOTICE: MPEG2_MAIN        3  8192  2048  2048
22:00:57 T:140093738166544 M:7923552256  NOTICE: H264_MAIN        41  8192  2048  2048
22:00:57 T:140093738166544 M:7923552256  NOTICE: H264_HIGH        41  8192  2048  2048
22:00:57 T:140093738166544 M:7923552256  NOTICE: VC1_SIMPLE        1  8190  2048  2048
22:00:57 T:140093738166544 M:7923552256  NOTICE: VC1_MAIN          2  8190  2048  2048
22:00:57 T:140093738166544 M:7923552256  NOTICE: VC1_ADVANCED      4  8190  2048  2048
22:00:57 T:140093738166544 M:7923552256 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 2411, consumed: 50
22:00:57 T:140093738166544 M:7922282496  NOTICE:  (VDPAU) Didnt find a Video Surface Available (Total: 1). Creating a new one. TRY #1
22:00:57 T:140093738166544 M:7922282496 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 116, consumed: 9
22:00:57 T:140093738166544 M:7922282496  NOTICE:  (VDPAU) Creating the video mixer
22:00:57 T:140093738166544 M:7922028544  NOTICE:  fps: 23.976025, pwidth: 624, pheight: 352, dwidth: 624, dheight: 352
22:00:57 T:140093738166544 M:7922028544  NOTICE: Display resolution DESKTOP : 1440x900 @ 50.00 - Full Screen (12)
22:00:57 T:140093738166544 M:7922028544  NOTICE:  (VDPAU) Didnt find a Video Surface Available (Total: 2). Creating a new one. TRY #1
22:00:57 T:140094248773696 M:7913439232  NOTICE: Using GL_TEXTURE_2D
22:00:57 T:140094248773696 M:7913439232  NOTICE: GL: Using VDPAU render method
22:00:57 T:140094248773696 M:7913439232  NOTICE: GL: NPOT texture support detected
22:00:57 T:140094248773696 M:7913439232  NOTICE: Created m_glPixmapTexture (63)
22:00:57 T:140093738166544 M:7922851840 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 116, consumed: 9
22:00:57 T:140093738166544 M:7922851840 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 116, consumed: 9
22:00:57 T:140093738166544 M:7922851840 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 116, consumed: 9
22:00:57 T:140093738166544 M:7922851840 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 116, consumed: 9
22:00:57 T:140093738166544 M:7922851840 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 116, consumed: 9
22:00:58 T:140093738166544 M:7922831360 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 116, consumed: 9
22:00:58 T:140093738166544 M:7922831360 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 116, consumed: 9
22:00:58 T:140093738166544 M:7922704384 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 116, consumed: 9
22:00:58 T:140093738166544 M:7922704384 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 116, consumed: 9
22:00:58 T:140093738166544 M:7922704384 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 3326, consumed: 9
22:00:58 T:140093738166544 M:7922704384 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 766, consumed: 9
22:00:58 T:140093738166544 M:7922704384 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 1096, consumed: 9
22:00:58 T:140093738166544 M:7922704384 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 11082, consumed: 9
22:00:58 T:140093738166544 M:7922704384 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 1456, consumed: 9
22:00:58 T:140093738166544 M:7922704384 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 13653, consumed: 9
22:00:58 T:140093738166544 M:7922704384 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 1307, consumed: 9
22:00:58 T:140093738166544 M:7922704384 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 8686, consumed: 9
22:00:58 T:140093738166544 M:7922704384 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 1129, consumed: 9

This goes on a while...


Code:
:~$ file <file-to-play>.avi
RIFF (little-endian) data, AVI, 624 x 352, 23.98 fps, video: XviD, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)
Reply
#4
I have the same issue on my desktop since I got the feature set C card in.

I'll post some more info later Smile
Reply
#5
Hmm, so this can be caused by the hardware?

I know I have a mplayer-config that works really well..

kind of like vc=vdpau...., vo=vdpau...,

That is, first try the vdpau stuff, then fallback on default ffmpeg stuffs...

This has the effect that if I play a HD .mkv vdpau gets used, and if I play an xvid .avi software is used for decoding and xv is used for output...
Reply
#6
here my info:

* Linux Distribution : Ubuntu Lucid 10.04
* Architecture : x86_64
* xbmc version : 9.11+svn28042-lucid1
* debug log: http://pastebin.org/229013
* screenshot of the problem : http://j.imagehost.org/view/0615/Screenshot_1
* video card: nvidia geforce g210
* driver version : 195.36.15

libvdpau is installed. vdpau works fine on all other formats except mpeg4
Reply
#7
No update on this ?

If I play the file with mplayer using:

mplayer -vo vdpau <filename>

it works fine.
Reply
#8
this happens to me as well with a GT220, running XBMC Live version: XBMC PRE-10.5 r28256, i would supply a log, but not really sure how to get one as i cant bring a terminal up after updating my xbmc
Reply
#9
Kode Wrote:this happens to me as well with a GT220, running XBMC Live version: XBMC PRE-10.5 r28256, i would supply a log, but not really sure how to get one as i cant bring a terminal up after updating my xbmc

Have you tried logging in using ssh from another machine ?
Reply
#10
No, does it have sshd by default then? Will try that tonight.

*edit* Though i have found out this is a known bug and is in trac, and has been there for 5 months
Reply
#11
Kode Wrote:No, does it have sshd by default then? Will try that tonight.

*edit* Though i have found out this is a known bug and is in trac, and has been there for 5 months

Ooo, that doesnt sound to good Sad Hope a fix will come..
Reply
#12
What ? 5 months..Wow. Well, that doesn't sound as if there's an easy fix Sad
Reply
#13
here is the trac ticket http://trac.xbmc.org/ticket/8337
Reply
#14
I wonder why xbmc chooses to use VDPAU at all when the codec isnt supported by VDPAU? In the log it clearly states what coceds the local VDPAU implementation supports...

Code:
22:17:16 T:140409124682000 M:7458537472  NOTICE: VDPAU Decoder capabilities:
22:17:16 T:140409124682000 M:7458537472  NOTICE: name          level macbs width height
22:17:16 T:140409124682000 M:7458537472  NOTICE: ------------------------------------
22:17:16 T:140409124682000 M:7458537472  NOTICE: MPEG1             0  8192  2048  2048
22:17:16 T:140409124682000 M:7458537472  NOTICE: MPEG2_SIMPLE      3  8192  2048  2048
22:17:16 T:140409124682000 M:7458537472  NOTICE: MPEG2_MAIN        3  8192  2048  2048
22:17:16 T:140409124682000 M:7458537472  NOTICE: H264_MAIN        41  8192  2048  2048
22:17:16 T:140409124682000 M:7458537472  NOTICE: H264_HIGH        41  8192  2048  2048
22:17:16 T:140409124682000 M:7458537472  NOTICE: VC1_SIMPLE        1  8190  2048  2048
22:17:16 T:140409124682000 M:7458537472  NOTICE: VC1_MAIN          2  8190  2048  2048
22:17:16 T:140409124682000 M:7458537472  NOTICE: VC1_ADVANCED      4  8190  2048  2048

Why does it choose VDPAU when it identifies the codec as

Code:
NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-4 part 2 (VDPAU)


As I said before, I have no problems playing hd-content and xvid-content with VDPAU and software respectivly with mplayer, using a commandline like this:

mplayer -vo vdpau, -vc ffh264vdpau,ffvc1vdpau, -ao alsa:device=iec958 -ac hwdts,hwac3, -fs "$1"


EDIT:

Searched wikipedia a bit for feature-sets, and looking at those tables and the output from my log regarding VDPAU capabillities, I have a feature set B card. I have a G92 GF9800GT.
Reply
#15
We just forget to check for mpeg4, it's on my todo list. But the decoder still accepts it as supported.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
Corrupt mpeg4 playback with VDPAU and Feature set C HW0