Some videos and streams are producing black screen and only audio
#1
Howdy, I just reinstalled my Ubuntu OS from 32bit to 64bit.

Now whenever I try to play a video from the library, or a stream via youtube, the audio from the video starts to play, the directory keeps focus, and there is no video playing behind the directory it is just black.

I got a debug log with debugging enabled, but when a video fails to play I get messages such as:
Code:
20:53:01 T:140632407922432   ERROR:  (VDPAU) Error: A catch-all error, used when no other error code applies.(25) at VDPAU.cpp:1014
20:53:01 T:140632407922432   DEBUG: CDVDPlayerVideo - video decoder was flushed
20:53:01 T:140632407922432  NOTICE: Attempting recovery
20:53:01 T:140632407922432   DEBUG: GLX: Destroying glPixmap
20:53:01 T:140632407922432   DEBUG: GLX: Destroying XPixmap
20:53:01 T:140632407922432  NOTICE:  (VDPAU) FiniVDPAUOutput
20:53:01 T:140632407922432  NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
20:53:01 T:140632407922432   DEBUG: CDVDPlayerVideo - video decoder returned error
20:53:01 T:140632407922432   ERROR: ffmpeg[88B7D700]: [h264_vdpau] reference picture missing during reorder
20:53:01 T:140632407922432   ERROR: Previous line repeats 5 times.
20:53:01 T:140632407922432   ERROR: ffmpeg[88B7D700]: [h264_vdpau] Missing reference picture
20:53:01 T:140632407922432   ERROR: ffmpeg[88B7D700]: [h264_vdpau] decode_slice_header error
20:53:01 T:140632407922432  NOTICE:  (VDPAU) screenWidth:1280 vidWidth:1280 surfaceWidth:1280
20:53:01 T:140632407922432  NOTICE:  (VDPAU) screenHeight:544 vidHeight:544 surfaceHeight:544
20:53:02 T:140632407922432   ERROR: ffmpeg[88B7D700]: [h264_vdpau] reference picture missing during reorder
20:53:02 T:140632407922432   ERROR: Previous line repeats 3 times.
20:53:02 T:140632407922432   ERROR: ffmpeg[88B7D700]: [h264_vdpau] Missing reference picture
20:53:02 T:140632407922432   ERROR: Previous line repeats 3 times.
20:53:02 T:140632407922432   ERROR: ffmpeg[88B7D700]: [h264_vdpau] reference picture missing during reorder
20:53:02 T:140632407922432   ERROR: Previous line repeats 2 times.
20:53:02 T:140632407922432   ERROR: ffmpeg[88B7D700]: [h264_vdpau] Missing reference picture
20:53:02 T:140632407922432   ERROR: Previous line repeats 2 times.
20:53:02 T:140632407922432   ERROR: ffmpeg[88B7D700]: [h264_vdpau] reference picture missing during reorder
20:53:02 T:140632407922432   ERROR: Previous line repeats 1 times.
20:53:02 T:140632407922432   ERROR: ffmpeg[88B7D700]: [h264_vdpau] Missing reference picture
20:53:02 T:140632407922432   ERROR: Previous line repeats 1 times.
20:53:02 T:140632407922432   ERROR: ffmpeg[88B7D700]: [h264_vdpau] reference picture missing during reorder
20:53:02 T:140632407922432   ERROR: ffmpeg[88B7D700]: [h264_vdpau] Missing reference picture
20:53:02 T:140631707956992   DEBUG: CDVDPlayerAudio:: Discontinuity2 - was:2709838.206667, should be:2664995.745503, error:-44842.461164

My complete debug file: http://pastebin.com/caH5CfXf

Also my display driver is nvidia 304.116,
using the ubuntu-x-swat ppa as suggested here: http://www.noobslab.com/2012/10/install-...buntu.html
Reply
#2
I disabled VDPAU hardware acceleration in 'settings>video>playback' and it seems to be playing normally now, not sure what the consequences of doing that is though, also streams still seem to be taking awhile to load (20secs or more)

EDIT: like 5 minutes after I posted this I realize im still having problems, with "VDPAU hardware acceleration" off some videos start playing really choppy
Reply
#3
With vdpau off you have no hardware acceleration and the CPU had to decode everything, which is most likely why it starts playing choppy.

The real solution here is to figure out why VDPAU is having issues.
It seems all OK to me, but I am hardly an expert in this.

How are you starting XBMC? In a seperate session or from your Ubuntu desktop?
Reply
#4
Moved to Linux support.
Reply
#5
Yeh Im starting xbmc from the ubuntu desktop.

I installed the 'nvidia-current-updates' package via apt-get, which is still the same driver I had before (304.116) so not sure what it actually updated, now with the VDPAU hardware acceleration enabled I can now play videos and streams without it giving me a black screen, but Im still getting choppy playback with some of my videos, and streams are still slow to start.

Output in the log is like this when a choppy video plays:
Code:
11:52:17 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2456089.293000, should be:1952000.000000, error:-504089.293000
11:52:18 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2455433.063000, should be:1952000.000000, error:-503433.063000
11:52:18 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2456336.724000, should be:1952000.000000, error:-504336.724000
11:52:19 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2454327.706000, should be:1952000.000000, error:-502327.706000
11:52:19 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2457502.088000, should be:1952000.000000, error:-505502.088000
11:52:19 T:140484018173696 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
11:52:20 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2202046.081000, should be:1952000.000000, error:-250046.081000
11:52:20 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2243779.980000, should be:1952000.000000, error:-291779.980000
11:52:20 T:140484018173696 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
11:52:20 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2163429.861000, should be:1952000.000000, error:-211429.861000
11:52:20 T:140485289268992   DEBUG: CSoftAEStream::GetFrame - Underrun
11:52:20 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2243774.628000, should be:1952000.000000, error:-291774.628000
11:52:21 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2173291.608000, should be:1952000.000000, error:-221291.608000
11:52:21 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2233883.570000, should be:1952000.000000, error:-281883.570000
11:52:21 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2173327.414000, should be:1952000.000000, error:-221327.414000
11:52:21 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2233825.911000, should be:1952000.000000, error:-281825.911000
11:52:21 T:140484018173696 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
11:52:22 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2173360.848000, should be:1952000.000000, error:-221360.848000
11:52:22 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2234543.342000, should be:1952000.000000, error:-282543.342000
11:52:22 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2173382.674000, should be:1952000.000000, error:-221382.674000
11:52:22 T:140484018173696 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
11:52:22 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2233688.885000, should be:1952000.000000, error:-281688.885000
11:52:23 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2173484.332000, should be:1952000.000000, error:-221484.332000
11:52:23 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2233756.025000, should be:1952000.000000, error:-281756.025000
11:52:23 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2173354.223000, should be:1952000.000000, error:-221354.223000
11:52:23 T:140484018173696 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
11:52:24 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2233697.964000, should be:1952000.000000, error:-281697.964000
11:52:24 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2173385.089000, should be:1952000.000000, error:-221385.089000
11:52:24 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2243883.573000, should be:1952000.000000, error:-291883.573000
11:52:24 T:140484018173696 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
11:52:24 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2163377.447000, should be:1952000.000000, error:-211377.447000
11:52:25 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2243775.999000, should be:1952000.000000, error:-291775.999000
11:52:25 T:140484018173696   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:2434517.491000, should be:1952000.000000, error:-482517.491000
11:52:25 T:140484018173696 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available

Full debug log: http://pastebin.com/sbx0D9CJ
Reply
#6
Nice to see pulseaudio and ALSA fighting - sweet.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#7
(2014-02-20, 19:14)fritsch Wrote: Nice to see pulseaudio and ALSA fighting - sweet.

thanks for hint, I did changed the audio output from Analog to HDMI, when I was trying to fix the black screen I was having before, but it didnt seem to change anything. I just switched it back to Analog and I'm no longer getting choppy playback.
Reply
#8
What fritsch is saying most likely is that you should get rid of Pulseaudio completely or grab the latest nightlies which have improved Pulseaudio support.
Reply

Logout Mark Read Team Forum Stats Members Help
Some videos and streams are producing black screen and only audio0