From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B689D13838B for ; Fri, 19 Sep 2014 02:40:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A2027E091A; Fri, 19 Sep 2014 02:40:29 +0000 (UTC) Received: from mail-pd0-f177.google.com (mail-pd0-f177.google.com [209.85.192.177]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 87B80E086E for ; Fri, 19 Sep 2014 02:40:28 +0000 (UTC) Received: by mail-pd0-f177.google.com with SMTP id y10so1586008pdj.22 for ; Thu, 18 Sep 2014 19:40:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=XMN9x+yuEgw9HwdZUMImmHPvJcXqRCz2blV1zP1yOsw=; b=KDGO+VBfSm15jRTA9v+3LbVQJ6xpXUMsNk5UWolqGuocBN+9Grrgjxsd8v+6yDNuLV o7GanI2JTgm03VXEgyamuowPVZNl66XXJZ8Nh2+0OBnaCO4YIMD3lYyA2Mwbly6l67p0 FuMryj2pd6UQuoZysfZZycIiTuUPhMw+rtFOFXCtHG2HXjBbiS8uvn95FWRYPJKC0Bt4 jJ0RbDzMIRcBwR/JoQaz9d1sB+OhtXRLQgs/AX//WcKwk8mSb6yPLwMbkH6QymMrxkZB Nv8CdK76cVE5n7brmGgNKN7b9VFqE/cdFYhbWmCPb7KHdlu30ZtJL+XdraHSl22ISVk0 3zwQ== X-Received: by 10.66.90.162 with SMTP id bx2mr11143763pab.39.1411094427441; Thu, 18 Sep 2014 19:40:27 -0700 (PDT) Received: from [192.168.247.60] (76-10-185-200.dsl.teksavvy.com. [76.10.185.200]) by mx.google.com with ESMTPSA id yr3sm357039pac.1.2014.09.18.19.40.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Sep 2014 19:40:26 -0700 (PDT) Message-ID: <541B9795.9000405@gmail.com> Date: Thu, 18 Sep 2014 19:40:21 -0700 From: Daniel Frey User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] i965 (Valley View) video acceleration References: <540D3415.1000008@gmail.com> <540FB4D1.6000004@gmail.com> <5410F8F5.5090700@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: b27f018b-969c-4048-a201-d4deb59ecc44 X-Archives-Hash: 73caa241bc3b9d930b231014144d45d9 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