On 09/11/2014 10:34 AM, Grant wrote:
> When you get a chance, I'd be interested to know which opengl package
> has vaapi/vdpau USE and also your output for:
> 
> # eselect opengl list
> 
> - Grant
> 

Hi Grant,

I haven't forgotten, just been really busy with work.

Here's some info -

Card:

00:02.0 VGA compatible controller: Intel Corporation ValleyView Gen7
(rev 0c)
        Subsystem: Intel Corporation Device 2055
        Kernel driver in use: i915


opengl & mesa:

~ # eselect opengl list
Available OpenGL implementations:
  [1]   xorg-x11 *
~ # eselect mesa list
i915 (Intel 915, 945)
  [1]   classic
  [2]   gallium *
i965 (Intel GMA 965, G/Q3x, G/Q4x, HD)
  [1]   classic *
r300 (Radeon R300-R500)
r600 (Radeon R600-R700, Evergreen, Northern Islands)
sw (Software renderer)
  [1]   classic
  [2]   gallium *

USE flags:
USE="-ldap -ipv6 -gnome -kde X lirc python mmx sse sse2 ssse3 sse3 sse4
sse4_1 sse4_2 aac alsa mp3 rtmp vorbis x264 xvid threads theora vaapi
libass opengl flac mad jpeg png gif xv mpeg qt3support cec dvd ass
consolekit"

Some installed versions:
# equery list opengl mesa ffmpeg
 * Searching for opengl ...
[IP-] [  ] virtual/opengl-7.0-r1:0

 * Searching for mesa ...
[IP-] [  ] media-libs/mesa-10.0.4:0

 * Searching for ffmpeg ...
[IP-] [  ] media-video/ffmpeg-1.2.6-r1:0

# emerge -pv opengl mesa ffmpeg mplayer2

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-libs/mesa-10.0.4  USE="classic egl gallium llvm
nptl -bindist -debug -gbm -gles1 -gles2 -llvm-shared-libs -opencl
-openvg -osmesa -pax_kernel -pic -r600-llvm-compiler (-selinux) -vdpau
-wayland -xa -xvmc" ABI_X86="(64) (-32) (-x32)" VIDEO_CARDS="intel
(-freedreno) -i915 -i965 -ilo -nouveau -r100 -r200 -r300 -r600 -radeon
-radeonsi -vmware" 0 kB
[ebuild   R    ] virtual/opengl-7.0-r1  ABI_X86="(64) (-32) (-x32)" 0 kB
[ebuild   R    ] media-video/ffmpeg-1.2.6-r1  USE="X aac alsa bzip2
encode hardcoded-tables iconv libass mmx mp3 network rtmp sdl ssse3
theora threads truetype vaapi vorbis x264 xvid zlib -3dnow -3dnowext
-aacplus (-altivec) -amr -avx -bindist -bluray -cdio (-celt)
-cpudetection -debug -doc -examples -faac -fdk -flite -fontconfig
-frei0r -gnutls -gsm -iec61883 -ieee1394 -jack -jpeg2k -libcaca -libsoxr
-libv4l -mmxext -modplug (-neon) -openal -openssl -opus -oss -pic
-pulseaudio -schroedinger -speex -static-libs {-test} -twolame -v4l
-vdpau (-vis) -vpx" ABI_X86="(64) (-32) (-x32)" FFTOOLS="aviocat cws2fws
ffescape ffeval fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart
trasher" 0 kB
[ebuild   R    ] media-video/mplayer2-2.0_p20130126  USE="X a52 alsa
cdio dts dv dvd dvdnav enca faad gif iconv jpeg lcms libass lirc mad mmx
mng mp3 network opengl png postproc rar rtc sdl shm speex sse sse2 ssse3
theora unicode vorbis xscreensaver xv xvid -3dnow -3dnowext (-altivec)
(-aqua) -bluray -bs2b -cddb -cpudetection -debug -directfb -doc -dvb
-fbcon -ftp -ipv6 -jack -joystick -ladspa -libcaca -md5sum -mmxext -nut
-oss -pnm -portaudio -pulseaudio -pvr -quvi -radio -samba (-selinux)
-symlink -tga -v4l -vcd -vdpau -xanim -xinerama -yuv4mpeg" 0 kB

# uname -a
Linux htpcbedroom 3.14.14-gentoo #3 SMP Sat Aug 30 14:51:20 PDT 2014
x86_64 Intel(R) Celeron(R) CPU N2820 @ 2.13GHz GenuineIntel GNU/Linux

As you can see, ffmpeg is built with vaapi and threading support. I'm
pretty sure mplayer2 uses ffmpeg. I also seem to remember kernels >3.13
are required, as is mesa >9.2 (in the case of the NUC.)

I don't remember why I switched to mplayer2 now, but quite a while back
I was having a problem with mplayer and someone on IRC somewhere said to
try mplayer2. It solved whatever issue I had and I've been using it
since. Wish I could remember what it was though...

As I said, CPU usage as reported by top while playing 1080p with
mplayer2 was 80-90% so it must be doing it on the CPU. I tried playing a
1080i recording with mplayer with 5 channel audio and it takes 5-10%. I
know for sure xbmc and mythtv are using vaapi and it works beautifully.


Dan

Reply via email to