From owner-freebsd-x11@freebsd.org Mon Oct 19 13:58:23 2015 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 41D77A18659 for ; Mon, 19 Oct 2015 13:58:23 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from mail.kapsi.fi (mx1.kapsi.fi [IPv6:2001:1bc8:1004::1:25]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 00F606A9 for ; Mon, 19 Oct 2015 13:58:22 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from 91-159-15-56.elisa-laajakaista.fi ([91.159.15.56] helo=[192.168.255.112]) by mail.kapsi.fi with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1ZoAx8-0008VZ-T3; Mon, 19 Oct 2015 16:58:18 +0300 Subject: Re: Success! Was: Testing the new i915 driver (HD Graphics 4400) To: =?UTF-8?Q?Juan_Ram=c3=b3n_Molina_Menor?= References: <5624F31E.4090904@club.fr> Cc: freebsd-x11@freebsd.org From: Arto Pekkanen X-Enigmail-Draft-Status: N1110 Message-ID: <5624F6F3.1090901@kapsi.fi> Date: Mon, 19 Oct 2015 16:58:11 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <5624F31E.4090904@club.fr> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="SUPXT46FV8x7aiCt41Kmde70EPLBnoqxI" X-SA-Exim-Connect-IP: 91.159.15.56 X-SA-Exim-Mail-From: isoa@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 13:58:23 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --SUPXT46FV8x7aiCt41Kmde70EPLBnoqxI Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I am glad I was able to be of assistance :) Does Vimb use multimedia/gstreamer1 or multimedia/gstreamer as codec back= end? If it uses multimedia/gstreamer, then there's nothing you can do, since m= ultimedia/gstreamer does NOT have VAAPI plugin. multimedia/gstreamer has = only VDPAU plugin (for nVidia GPUs), but not VAAPI. On the otherhand, multimedia/gstreamer1 has multimedia/gstreamer1-vaapi p= lugin, which should enable hardware decoding.=20 So, if Vimb uses multimedia/gstreamer1, then just install multimedia/gstr= eamer1-vaapi package and you should get proper hardware decoding. If this= does not help, then the fault is in GStreamer1 filter priorities. On 19.10.2015 16:41, Juan Ram=C3=B3n Molina Menor wrote: >> Oh yeah, and one more thing that I forgot to mention. >> >> Now that you have the codec backend (multimedia/ffmpeg) and player >> (multimedia/mpv) both built with VAAPI option and the player configure= d >> to use VAAPI in decoding and as output, you must also install the VAAP= I >> driver for intel GPU: >> # pkg install libva-intel-driver >> >> After this you should be able to play full HD video files with less th= an >> 10% CPU usage (average 1-5% on my laptop). That's how it works on my >> machine at least. >> >> Arto Pekkanen kirjoitti 18.10.2015 16:55: >>> To get VAAPI acceleration for video, you should do as follows: >>> - enable the VAAPI option for ports multimedia/ffmpeg and multimedia/= mpv >>> - build and install the aforementioned ports >>> - edit file ~/.config/mpv/mpv.conf, add the following lines: >>> vo=3Dvaapi >>> hwdec=3Dvaapi >>> - use mpv to play video files, preferably full HD >>> >>> The same applies to other players too. >=20 > Hey, thanks, this is working perfectly with Haswell 4400! Low CPU, full= screen, no tearing=E2=80=A6 Here is the output of mpv: >=20 > libva info: VA-API version 0.38.0 > libva info: va_getDriverName() returns 0 > libva info: Trying to open /usr/local/lib/va/i965_drv_video.so > libva info: Found init function __vaDriverInit_0_38 > libva info: va_openDriver() returns 0 > AO: [oss] 44100Hz stereo 2ch s32 > Using hardware decoding (vaapi). > VO: [vaapi] 1280x720 vaapi >=20 > Unfortunately, this is not working with the vimb web browser, even if w= hen opening the same file, I have a similar output: >=20 > libva info: VA-API version 0.38.0 > libva info: va_getDriverName() returns 0 > libva info: Trying to open /usr/local/lib/va/i965_drv_video.so > libva info: Found init function __vaDriverInit_0_38 > libva info: va_openDriver() returns 0 >=20 > I=E2=80=99ve played for a moment with GStreamer debug levels but not fo= und anything (and it=E2=80=99s over my head anyway). >=20 > Nevertheless, thanks again! >=20 > Best regards, > Juan --SUPXT46FV8x7aiCt41Kmde70EPLBnoqxI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (MingW32) iF4EAREIAAYFAlYk9vcACgkQTBivhqtJa24XKQEAmUvstEhBuB+hvxWgAVxm1Zlq eMmykHJe0LJcDs82NH4BAJiuxvD3IqG/bIxX5nZrYnkS04dYxdEvtkVOy9+cKXGV =tm/S -----END PGP SIGNATURE----- --SUPXT46FV8x7aiCt41Kmde70EPLBnoqxI--