FS#40246 - [xbmc] fails to play video using libav/vdpau

Attached to Project: Community Packages
Opened by Edouard (madko) - Tuesday, 06 May 2014, 19:38 GMT
Last edited by Ike Devolder (BlackEagle) - Wednesday, 07 May 2014, 07:18 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Ike Devolder (BlackEagle)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
XBMC on nvidia systems with vdpau HW acceleration can't play video. See upstream bug at https://bugzilla.libav.org/show_bug.cgi?id=674

Additional info:
* xbmc 13.0-1
* extra/nvidia 337.12-1
* extra/libvdpau 0.7-1

Steps to reproduce:
- install nvidia drivers and libvdpau
- install xbmc
- try to play a video with xbmc

Xbmc UI is fine, subtitles are also displayed correctly, but video is garbage.
This task depends upon

Closed by  Ike Devolder (BlackEagle)
Wednesday, 07 May 2014, 07:18 GMT
Reason for closing:  Not a bug
Additional comments about closing:  update glitch
Comment by Ike Devolder (BlackEagle) - Tuesday, 06 May 2014, 20:50 GMT
Bizarre, the xbmc 13.0-1 build was extensively tested on a nvidia/vdpau machine without any issue

what is the input file you use, container/codecs/...
Comment by Doug Newgard (Scimmia) - Wednesday, 07 May 2014, 00:14 GMT
madko, the bug you linked to only affects libav, not ffmpeg, so it shouldn't affect Arch unless you're using libav from the AUR.
Comment by Ike Devolder (BlackEagle) - Wednesday, 07 May 2014, 05:22 GMT
extra note xbmc comes with internal ffmpeg and is in no way linked to the system ffmpeg/libav

before xbmc13 you had the choice to use exteral ffmpeg, but that got removed you can only use internal ffmpeg these days
Comment by Doug Newgard (Scimmia) - Wednesday, 07 May 2014, 05:31 GMT
I wasn't aware that option was removed. Not sure what the linked bug report is about then.
Comment by Edouard (madko) - Wednesday, 07 May 2014, 06:20 GMT
Sorry may be the upstream bug is not related, I should have put this link instead, that really describes the bug I have:
debian-bugs-dist@lists.debian.org/msg1212485.html"> https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1212485.html

at the end of this thread, they point to the upstream bug.

What I have in the xbmc log which seems to be relevant is:
ERROR: GLX: Same window as before, refreshing
and error about CLinuxRendererGL::UploadVAAPITexture

I will try to attach a complete xbmc log but since I have downgraded to xbmc 12.
Comment by Edouard (madko) - Wednesday, 07 May 2014, 06:28 GMT
Here is an extract of the xbmc log file

08:26:24 T:139839546574592 NOTICE: Opening video stream: 1 source: 256
08:26:24 T:139839546574592 NOTICE: Creating video codec with codec id: 28
08:26:24 T:139839546574592 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
08:26:24 T:139839546574592 NOTICE: Creating video thread
08:26:24 T:139838740076288 NOTICE: Thread DVDPlayerVideo start, auto delete: false
08:26:24 T:139839546574592 NOTICE: Opening audio stream: 0 source: 256
08:26:24 T:139839546574592 NOTICE: Finding audio codec for: 86019
08:26:24 T:139839546574592 NOTICE: Creating audio thread
08:26:24 T:139838740076288 NOTICE: running thread: video_thread
08:26:24 T:139838731683584 NOTICE: Thread DVDPlayerAudio start, auto delete: false
08:26:24 T:139839546574592 NOTICE: Opening Subtitle stream: 2 source: 256
08:26:24 T:139838731683584 NOTICE: running thread: CDVDPlayerAudio::Process()
08:26:24 T:139838731683584 NOTICE: Creating audio stream (codec id: 86019, channels: 2, sample rate: 48000, no pass-through)
08:26:26 T:139838740076288 NOTICE: fps: 23.976024, pwidth: 1280, pheight: 720, dwidth: 1280, dheight: 720
08:26:26 T:139838740076288 NOTICE: Display resolution ADJUST : HDMI-0: 1920x1080 @ 23.97Hz (20) (weight: 0.000)
08:26:26 T:139840509601856 NOTICE: Using GL_TEXTURE_2D
08:26:26 T:139840509601856 NOTICE: GL: Using VAAPI render method
08:26:26 T:139840509601856 NOTICE: GL: NPOT texture support detected
08:26:26 T:139840509601856 NOTICE: GL: Using GL_ARB_pixel_buffer_object
08:26:26 T:139838740076288 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
08:26:27 T:139840509601856 WARNING: Previous line repeats 21 times.
08:26:27 T:139840509601856 ERROR: GLX: Same window as before, refreshing context
08:26:27 T:139838740076288 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
08:26:27 T:139840509601856 WARNING: Previous line repeats 4 times.
08:26:27 T:139840509601856 NOTICE: Using GL_TEXTURE_2D
08:26:27 T:139840509601856 NOTICE: GL: Using VAAPI render method
08:26:27 T:139840509601856 NOTICE: GL: NPOT texture support detected
08:26:27 T:139840509601856 NOTICE: GL: Using GL_ARB_pixel_buffer_object
08:26:27 T:139838740076288 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
08:26:27 T:139840509601856 WARNING: Previous line repeats 1 times.
08:26:27 T:139840509601856 ERROR: CLinuxRendererGL::UploadVAAPITexture - failed to copy surface to glx 2 - resource allocation failed
08:26:27 T:139838740076288 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
08:26:27 T:139840509601856 WARNING: Previous line repeats 7 times.
08:26:27 T:139840509601856 ERROR: CLinuxRendererGL::UploadVAAPITexture - failed to copy surface to glx 2 - resource allocation failed
08:26:28 T:139840509601856 ERROR: CLinuxRendererGL::UploadVAAPITexture - failed to copy surface to glx -1 - unknown libva error
08:26:28 T:139840509601856 ERROR: Previous line repeats 10 times.
08:26:28 T:139840509601856 ERROR: CLinuxRendererGL::UploadVAAPITexture - failed to copy surface to glx 2 - resource allocation failed
08:26:28 T:139840509601856 ERROR: CLinuxRendererGL::UploadVAAPITexture - failed to copy surface to glx -1 - unknown libva error
08:26:37 T:139840509601856 ERROR: Previous line repeats 210 times.
08:26:37 T:139840509601856 NOTICE: CDVDPlayer::CloseFile()
08:26:37 T:139840509601856 NOTICE: DVDPlayer: waiting for threads to exit
08:26:37 T:139839546574592 NOTICE: CDVDPlayer::OnExit()
08:26:37 T:139839546574592 NOTICE: DVDPlayer: closing audio stream
08:26:37 T:139839546574592 NOTICE: Closing audio stream
08:26:37 T:139839546574592 NOTICE: Waiting for audio thread to exit
08:26:37 T:139838731683584 NOTICE: thread end: CDVDPlayerAudio::OnExit()
08:26:37 T:139839546574592 NOTICE: Closing audio device
08:26:37 T:139839546574592 NOTICE: Deleting audio codec
08:26:37 T:139839546574592 NOTICE: DVDPlayer: closing video stream
08:26:37 T:139839546574592 NOTICE: Closing video stream
Comment by Edouard (madko) - Wednesday, 07 May 2014, 07:06 GMT
I remove the guisettings.xml and now it works. I put back my previous theme and it's still working. So there is something wrong when you upgrade from xbmc 12 to 13 with previous settings.
However I still have no sound, no passthrough... but nothing to do with this bug. This bug can be closed.
Comment by Ike Devolder (BlackEagle) - Wednesday, 07 May 2014, 07:17 GMT
thx for letting us know

for your settings, they have revamped many things so it is very likely you have to reconfigure a great deal of things, i know i had to re-enable passthrough

http://wiki.xbmc.org/index.php?title=XBMC_v13_(Gotham)_FAQ#Where_did_most_of_the_settings_go.3F

put your settings level to expert and you will be able to configure passthrough again

Loading...