Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started by: fodder on August 23, 2013, 11:56:38 AM
-
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=1306150
I 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:
- cd /home/tc/
- wget http://www.freedesktop.org/software/vaapi/releases/libva/libva-1.1.1.tar.bz2
- tar -xvf libva-1.1.1.tar.bz2
- cd /home/tc/libva-1.1.1
- ./configure
- make
- make DESTDIR=/tmp/libva install
- mksquashfs /tmp/libva/ /mnt/sda1/tce/optional/libva-1.1.1.tcz
- tce-load -i libva-1.1.1
- echo libva-1.1.1.tcz >> /mnt/sda1/tce/onboot.lst
- COMPILE AND INSTALL LIBVA-INTEL-DRIVER:
- cd /home/tc/
- wget http://www.freedesktop.org/software/vaapi/releases/libva-intel-driver/libva-intel-driver-1.0.20.tar.bz2
- tar -xvf libva-intel-driver-1.0.20.tar.bz2
- 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/libva-intel-driver-1.0.20/ffmpeg
- cd /home/tc/libva-intel-driver-1.0.20
- ./configure
- make
- make DESTDIR=/tmp/driver install
- mksquashfs /tmp/driver/ /mnt/sda1/tce/optional/libva-intel-driver-1.0.20.tcz
- tce-load -i libva-intel-driver-1.0.20
- echo libva-intel-driver-1.0.20.tcz >> /mnt/sda1/tce/onboot.lst
- 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
-
You could try TC 5, as it has a newer Xorg, so you could test the newer Intel packages too.
-
You could try TC 5, as it has a newer Xorg, so you could test the newer Intel packages too.
Sorry so long in getting back to you - I have been sick for the last several days.
I finally got a chance to try TC5 and it worked like charm. Thanks so much for the suggestion!
I used the following (latest) versions and compiled exactly as I posted above:
- Xorg-7.7
- libva 1.2.1: http://www.freedesktop.org/software/vaapi/releases/libva/libva-1.2.1.tar.bz2
- libva-intel-driver 1.2.0: http://www.freedesktop.org/software/vaapi/releases/libva-intel-driver/libva-intel-driver-1.2.0.tar.bz2
- ffmpeg 2.0.1: http://ffmpeg.org/releases/ffmpeg-2.0.1.tar.bz2
-
No issue, we all have varying timescales here, a week is nothing ;)