melt shows white image, VDPAU surface underrun
Brought to you by:
ddennedy,
lilo_booter
It appears that most files except ones I convert using ffmpeg on my system (usually to webm) only show up as white and create the following output in melt:
VDPAU surface underrun
[h264 @ 0x7f1f3c0044a0] get_buffer() failed
[h264 @ 0x7f1f3c0044a0] thread_get_buffer() failed
[h264 @ 0x7f1f3c0044a0] decode_slice_header error
[h264 @ 0x7f1f3c0044a0] no frame!
webm files downloaded from youtube using youtube-dl have the same issue.
An example file is https://app.box.com/s/dpiuc8kifodgp7scnfi7
This happens in melt 0.9.0 as well as git20120912.
I run arch linux 64bit with xf86-video-ati 1:7.2.0-1.
Any idea what is happening or how I can provide useful information?
Note: I had reported this as a Kdenlive issue on http://forum.kde.org/viewtopic.php?f=265&t=117076&p=291018
PS: x264 "version" is 20130702-2
I will see if I can I reproduce it, but I doubt it as I did last use VDPAU successfully as recent as May 2 when testing a patch submission related to VDPAU.
I strongly discourage enabling vdpau in Linux package because it only seems to work good for simple media players when not enabled by default. So, I filed a bug against the package:
https://bugs.archlinux.org/task/36710
Also, I wonder why it is trying to use VDPAU when you have an ATI card! VDPAU is only for NVIDI!?
I can confirm that it correctly fails to detect a vdpau implementation inside a virtual machine:
[producer avformat] /home/ddennedy/Videos/test.mp4
vdpau_init: failed to dlopen libvdpau.so
(/usr/local/lib/libvdpau.so: cannot open shared object file: No such file or directory)
On my machine with NVIDIA, I just tested that it works for me, but please be aware that I am building FFmpeg and MLT from source, and not testing the Arch package. I am not sure what I can do here except to leave the ticket open for a while to see if other users report similar problems and get a different perspective on the problem.
As a workaround, you can execute kdenlive with the environment variable MLT_NO_VDPAU=1 to prevent MLT from trying to use VDPAU. From a command line:
MLT_NO_VDPAU=1 kdenlive
Thanks for pointing this out. mlt in arch linux is by default compiled with --avformat-vdpau. I re-compiled with the line removed from ./configure and now melt plays back videos correctly!
mesa and mplayer depend on libvdpau in arch linux it appears.
Is it a bug that melt can't make the determination that vdpau should not be used on this system at runtime? Or is it by design, that it's being used, if it's enabled during compilation?
Also thanks for the workaround.I'll share it in the Kdenlive forum.
Changing to pending, which will get closed after some months as I have not been unable to reproduce and reviewed the source code.