WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] Intel HD + VAAPI + Mplayer  (Read 9347 times)

Offline fodder

  • Newbie
  • *
  • Posts: 45
[SOLVED] Intel HD + VAAPI + Mplayer
« 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:

  • 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


« Last Edit: August 28, 2013, 06:31:00 PM by fodder »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11046
Re: Intel HD + VAAPI + Mplayer
« Reply #1 on: August 24, 2013, 03:40:18 AM »
You could try TC 5, as it has a newer Xorg, so you could test the newer Intel packages too.
The only barriers that can stop you are the ones you create yourself.

Offline fodder

  • Newbie
  • *
  • Posts: 45
Re: Intel HD + VAAPI + Mplayer
« Reply #2 on: August 28, 2013, 06:30:42 PM »
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:


Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11046
Re: [SOLVED] Intel HD + VAAPI + Mplayer
« Reply #3 on: August 29, 2013, 06:14:21 AM »
No issue, we all have varying timescales here, a week is nothing ;)
The only barriers that can stop you are the ones you create yourself.