From owner-freebsd-x11@freebsd.org Mon Oct 19 13:42:07 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 66325A18FEA for ; Mon, 19 Oct 2015 13:42:07 +0000 (UTC) (envelope-from listjm@club.fr) Received: from smtp26.services.sfr.fr (smtp26.services.sfr.fr [93.17.128.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2DC5F186D for ; Mon, 19 Oct 2015 13:42:06 +0000 (UTC) (envelope-from listjm@club.fr) Received: from filter.sfr.fr (localhost [78.118.197.112]) by msfrf2601.sfr.fr (SMTP Server) with ESMTP id 862A41C001016; Mon, 19 Oct 2015 15:41:58 +0200 (CEST) Authentication-Results: sfrmc.priv.atos.fr; dkim=none (no signature); dkim-adsp=none (no policy) header.from=listjm@club.fr Received: from [192.168.1.51] (112.197.118.78.rev.sfr.net [78.118.197.112]) by msfrf2601.sfr.fr (SMTP Server) with ESMTP id A06BD1C001007; Mon, 19 Oct 2015 15:41:56 +0200 (CEST) X-SFR-UUID: 20151019134156657.A06BD1C001007@msfrf2601.sfr.fr Subject: Re: Success! Was: Testing the new i915 driver (HD Graphics 4400) To: Arto Pekkanen References: Cc: freebsd-x11@freebsd.org From: Juan =?iso-8859-1?b?UmFt824=?= Molina Menor Message-ID: <5624F31E.4090904@club.fr> Date: Mon, 19 Oct 2015 15:41:50 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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:42:07 -0000 > 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 configured > to use VAAPI in decoding and as output, you must also install the VAAPI > driver for intel GPU: > # pkg install libva-intel-driver > > After this you should be able to play full HD video files with less than > 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=vaapi >> hwdec=vaapi >> - use mpv to play video files, preferably full HD >> >> The same applies to other players too. Hey, thanks, this is working perfectly with Haswell 4400! Low CPU, full screen, no tearing… Here is the output of mpv: 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 Unfortunately, this is not working with the vimb web browser, even if when opening the same file, I have a similar output: 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 I’ve played for a moment with GStreamer debug levels but not found anything (and it’s over my head anyway). Nevertheless, thanks again! Best regards, Juan