Linux VDPAU playback -> blank in Gotham src build; VAAPI & no HW accel display OK
#1
I've built XBMC/Gotham from source on x86_64, with VDPAU enabled
Code:
    ./configure \
    ...
    --enable-vdpau \
    ...

        ------------------------
          XBMC Configuration:
        ------------------------
          git Rev.:     20131030-f4c95ab
          ...
          VDPAU:        Yes
          ...
          prefix:       /usr/local/xbmc
        ------------------------

    make

        -----------------------
        XBMC built successfully
        -----------------------

    make install
XBMC launches OK.

Video playback is OK if either (1) no HW accel, or (2) VAAPI is selected.

If VDPAU is selected, no video's displayed during playback -- just blank. This is in both windowed and fullscreen mode.

Deinterlacing is OFF.

This is KDE4. Toggling Desktop Effects on/off, and restarting XBMC has no effect. STill blank.

fritsch in #irc linked a sample file, had me play it back, and capture a DEBUG log: http://pastebin.com/McX5X9Fy

After a lot of help tracking down the debug infom, ran out of ideas in irc:

[15:19] <fritsch> i sadly have no idea
[15:19] <fritsch> the log does not tell anything

and asked me to post in here.

Any ideas as to what the problem is?

jenl
Reply
#2
Did you specify any other flags to configure?
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#3
Yes, my usual build is:

Code:
export LDFLAGS="-L/usr/local/ssl/lib64 -Wl,-rpath,/usr/local/ssl/lib64 -lssl -lcrypto -L/usr/local/mariadb/lib64 -Wl,-rpath,/usr/local/mariadb/lib64 -lmysqlclient -L/usr/local/lib64 -Wl,-rpath,/usr/local/lib64 -lmicrohttpd -lpcre -lpcrecpp"
export LIBS="-lssl -lcrypto -lmysqlclient -lmicrohttpd -lpcre -lpcrecpp -lrtmp"
export CPPFLAGS="-I/usr/local/ssl/include -I/usr/local/mariadb/include/mysql -I/usr/local/mariadb/include/mysql/.."
export MYSQL_CONFIG="/usr/local/mariadb/bin/mysql_config"
export CFLAGS="-I/usr/lib64/dbus-1.0/include -I/usr/lib64/glib-2.0/include -I/usr/include/samba-4.0"
export CPPFLAGS=${CFLAGS}
export LD="/usr/bin/ld"
./bootstrap
./configure --prefix=/usr/local/xbmc --libdir=/usr/local/xbmc/lib64 --enable-shared --disable-static --enable-debug --enable-optimizations --with-gnu-ld  --enable-udev --disable-hal --disable-libusb --disable-airplay --disable-airtunes  --enable-ffmpeg-libvorbis --enable-gl --disable-gles --enable-sdl --enable-vdpau --disable-vaapi --enable-dvdcss --enable-libbluray  --enable-nfs --enable-samba  --disable-afpclient  --enable-upnp  --disable-avahi --enable-alsa --disable-pulse --enable-mysql --enable-mid --enable-rtmp  --enable-webserver  --enable-optical-drive  --enable-non-free --with-lirc-device=/var/run/lirc/lircd  --enable-external-ffmpeg

which results in config of
Code:
------------------------
  XBMC Configuration:
------------------------
  git Rev.:     20131030-f4c95ab
  Debugging:    Yes
  Profiling:    No
  Optimization: Yes
  SWIG Available:       Yes
  JRE Available:        Yes
  Doxygen Available:    Yes
  Crosscomp.:   No
  target ARCH:  no
  target CPU:   no
  OpenGL:       Yes
  ALSA:         Yes
  DBUS:         Yes
  VDPAU:        Yes
  VAAPI:        No
  CrystalHD:    No
  VTBDecoder:   No
  OpenMax:      No
  Joystick:     Yes
  XRandR:       Yes
  Waveform:     Yes
  Spectrum:     Yes
  GOOM:         No
  RSXS:         Yes
  FishBMC:      Yes
  ProjectM:     Yes
  Skin Touched: No
  X11:          Yes
  Wayland:      No
  Bluray:       Yes
  TexturePacker:Yes
  MID Support:  Yes
  ccache:       Yes
  ALSA Support: Yes
  PulseAudio:   No
  HAL Support:  No
  DVDCSS:       Yes
  Google Test Framework Configured:     No
  Avahi:        No
  mDNSEmbedded: No
  Non-free:     Yes
  ASAP Codec:   No
  MySQL:        Yes
  Webserver:    Yes
  libssh support:       Yes
  libRTMP support:      Yes
  libsmbclient support: Yes
  libnfs client support:Yes
  libafpclient support: No
  AirPLay support:      No
  AirTunes support:     No
  UPnP support:         Yes
  Optical drive:        Yes
  libudev support:      Yes
  libusb support:       No
  libcec support:       No
  libmp3lame support:   Yes
  libvorbisenc support: Yes
  libcap support:       Yes
  additional players:   No
  additional codecs:    No
  External FFmpeg:      Yes
  PVR add-ons:          No
  prefix:       /usr/local/xbmc
------------------------

then, simply
Code:
make
make install
fwiw, everything else works perfectly. Just not the VDPAU playback.

yet!
Reply
#4
Remove this: --enable-external-ffmpeg
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#5
Ok, working on it now.

fwiw, here
Code:
ffmpeg -version
    ffmpeg version 2.1.1
    built on Nov 27 2013 18:31:36 with gcc 4.7 (SUSE Linux)
    configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libopus --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample --enable-libtwolame --enable-libvo-aacenc --enable-gnutls
    libavutil      52. 48.101 / 52. 48.101
    libavcodec     55. 39.101 / 55. 39.101
    libavformat    55. 19.104 / 55. 19.104
    libavdevice    55.  5.100 / 55.  5.100
    libavfilter     3. 90.100 /  3. 90.100
    libavresample   1.  1.  0 /  1.  1.  0
    libswscale      2.  5.101 /  2.  5.101
    libswresample   0. 17.104 /  0. 17.104
    libpostproc    52.  3.100 / 52.  3.100
Reply
#6
same build, but without

Code:
--enable-external-ffmpeg

completes without error.

with the resulting, internal-ffmpeg build of XBMC, the problem is resolved.

VDPAU-enabled playback is visible, and xbmc-cpu usage has dropped from ~18% to <1%.
Reply
#7
this is exactly the reason why we DO NOT support external ffmpeg/libav.
Reply
#8
The most probably is that have the same problem as jenl but in my case I install XBMC Gotham from multimedia repository of Debian.

How I should remove external-ffmpeg?

Can I remove external-ffmpeg without reinstall XBMC?

Please help me I'm newy on both (XBMC and Linux)
Reply
#9
you can't, you must recompile xbmc from source. Or just install ubuntu and use our PPAs.
Reply
#10
(2013-12-07, 01:39)jenl Wrote: Video playback is OK if either (1) no HW accel, or (2) VAAPI is selected.

If VDPAU is selected, no video's displayed during playback -- just blank. This is in both windowed and fullscreen mode.
Disable vaapi on compile as well --disable-vaapi and dont enable this in xbmc if your using vdpau.
Reply
#11
No thks. I don't want to use Ubuntu. As I can use xbmc without vdpau I think that I will wait until Debian repository is updated. If problem persist in next updates then i will compile xbmc with checkinstall.

Thks for quick reply and assistance. There should be more places like yours.
Reply
#12
http://forum.xbmc.org/showthread.php?tid=181126
Reply
#13
Thanks for the information. I will report the bug there.
Reply

Logout Mark Read Team Forum Stats Members Help
VDPAU playback -> blank in Gotham src build; VAAPI & no HW accel display OK0