I honestly wasn't sure where to best post this problem since it involves several different packages/libs/etc. I am posting here in the hopes that it is a common enough
type of problem that TC users run into that someone will have some advice to at least push me in the right direction!
Goal: Play hardware accelerated (GPU) h.264 video using Mplayer
Hardware: Intel DCCP847DYE (NUC with Intel HD Graphics)
Tiny Core Version: 4.7.7
Using the process listed below everything compiles and installs correctly and I am able to get very high bitrate video (and audio) to play beautifully...but only for one track! As soon as the track ends or I quit Mplayer, X completely freezes and I have to do a hard reset.
It appears to be the same problem that this person experienced a few months back:
http://webcache.googleusercontent.com/search?q=cache:0Nop9g-Ja38J:https://labs.parabola.nu/issues/291+
And something changed recently in one of the packages (libva, intel-driver, ffmpeg, or mplayer-vaapi) that forced a lot of people revert to keep things working:
https://bbs.archlinux.org/viewtopic.php?pid=1306150I am using libva-1.1.1 and libva-intel-driver-1.0.20 because they work with the version of libdrm that is included with Xorg-7.6. From there I have tried several versions of ffmpeg but only 2.0.1 seems to work with everything (up to the crash that I am experiencing.)
The questions bouncing around in my head right now are along these lines:
- Am I missing something obvious that is related to installing all of these on TC?
- Which package is mostly likely causing the problem?
- I have been unsuccessful in compiling and installing a newer version of libdrm - any suggestions how? (So I can try the latest versions of libva and libva-intel-driver.)
- I have tried downloading mplayer-vaapi using git and checking out an older commit but haven't found one that works - would it even help for me to track down an older (stable) tarball than the current one? (In case they just introduced a bug.)
As always, any help will be greatly appreciated.
fodder
Compile Steps:
- BOOT: Clean TC 4.7.7 USB Thumbdrive (CorePlus: USB_HDD, Whole Disk, ext4, no bootcodes, Core and X/GUI Desktop, no CorePlus extensions) - boots to prompt ("failed in waitforX")
- INSTALL PACKAGES:
- tce-load -wi Xorg-7.6 xf86-video-intel alsa compiletc squashfs-tools-4.x libpthread-stubs Xorg-7.6-dev alsa-dev yasm
- COMPILE AND INSTALL LIBVA:
- COMPILE AND INSTALL LIBVA-INTEL-DRIVER:
- REBOOT (BECAUSE FFMPEG NEEDS LIBVA)
- COMPILE AND INSTALL MPLAYER:
- cd /home/tc/
- wget http://gitorious.org/vaapi/mplayer/archive-tarball/hwaccel-vaapi
- tar -xvf hwaccel-vaapi
- wget http://ffmpeg.org/releases/ffmpeg-2.0.1.tar.bz2
- tar -xvf ffmpeg-2.0.1.tar.bz2
- mv /home/tc/ffmpeg-2.0.1 /home/tc/vaapi-mplayer/ffmpeg
- cd /home/tc/vaapi-mplayer/
- ./configure --prefix=/usr/local --enable-x11 --enable-vaapi --enable-alsa --disable-vdpau
- make -j8
- make DESTDIR=/tmp/mplayer install
- mksquashfs /tmp/mplayer/ /mnt/sda1/tce/optional/mplayer-xorg-vaapi-alsa.tcz
- tce-load -i mplayer-xorg-vaapi-alsa
- echo mplayer-xorg-vaapi-alsa.tcz >> /mnt/sda1/tce/onboot.lst
- RUN MPLAYER USING: mplayer -vo vaapi -va vaapi -ao alsa:device=hdmi=PCH.0 test.mp4