From owner-freebsd-x11@FreeBSD.ORG Thu Feb 5 00:03:30 2009 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CFF7106564A for ; Thu, 5 Feb 2009 00:03:30 +0000 (UTC) (envelope-from gofdx-freebsd-x11@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 9D1598FC14 for ; Thu, 5 Feb 2009 00:03:29 +0000 (UTC) (envelope-from gofdx-freebsd-x11@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LUriI-0002KD-Hm for freebsd-x11@freebsd.org; Thu, 05 Feb 2009 00:03:26 +0000 Received: from 81.210.237.210 ([81.210.237.210]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Feb 2009 00:03:26 +0000 Received: from saper by 81.210.237.210 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Feb 2009 00:03:26 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-x11@freebsd.org From: Marcin Cieslak Date: Thu, 05 Feb 2009 01:03:09 +0100 Lines: 111 Message-ID: <498A2CBD.2040205@system.pl> References: <1233456742.1534.14.camel@ferret.2hip.net> <498897CB.7080505@system.pl> <1233771426.3085.11.camel@ferret.2hip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 81.210.237.210 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.19) Gecko/20090131 SeaMonkey/1.1.14 In-Reply-To: <1233771426.3085.11.camel@ferret.2hip.net> Sender: news Subject: Re: [HEADS UP/CFT] Xserver 1.6: testing XvMC HOWTO X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2009 00:03:30 -0000 A short how-to: 1) Compile and configure Xserver 1.6 with xf86-video-intel driver 2.6.1 2) Add Option "XvMC" "on" to your /etc/X11/xorg.conf in the Section "Device" for the "intel" driver: Section "Device" Identifier "Intel945" Driver "intel" VendorName "Intel Corporation" BoardName "Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller" (...) Option "XvMC" "on" EndSection 3) Add two flags to your ports/multimedia/mplayer/Makefile, so it looks more or less like this: CONFIGURE_ARGS+= --disable-ssse3 \ --disable-directfb \ --disable-faac \ --disable-twolame \ --disable-mencoder \ --enable-xvmc \ --with-xvmclib=XvMCW 4) Verify that /usr/local/lib/libXvMCW.so is installed (should be required by the intel driver). 5) Recompile mplayer and reinstall 6) Get a pure MPEG-2 video stream (MPEG-2 TS for example) 7) Play it with: % mplayer -vo xvmc -vc ffmpeg12mc El_Rep_35.mpg MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team CPU: Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz (Family: 6, Model: 15, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 Playing El_Rep_35.mpg. MPEG-PS file format detected. VIDEO: MPEG2 640x480 (aspect 1) 25.000 fps 0.0 kbps ( 0.0 kbyte/s) xscreensaver_disable: Could not find XScreenSaver window. dcop: not found vo_xvmc: X-Video extension 2.2 vo_xvmc: X-Video MotionCompensation Extension version 1.1 ========================================================================== Forced video codec: ffmpeg12mc Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family [VD_FFMPEG] XVMC accelerated codec. Selected video codec: [ffmpeg12mc] vfm: ffmpeg (FFmpeg MPEG-1/2 (XvMC)) ========================================================================== (...) [VD_FFMPEG] XVMC-accelerated MPEG-2. [VD_FFMPEG] Trying pixfmt=0. VDec: vo config request - 640 x 480 (preferred colorspace: MPEG1/2 Motion Compensation and IDCT) VDec: using MPEG1/2 Motion Compensation as output csp (no 1) Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. VO: [xvmc] 640x480 => 640x480 MPEG1/2 Motion Compensation vo_xvmc: Port 80 grabed vo_xvmc: Found matching surface with id=434D5658 on 80 port at 0 adapter [intel_xvmc] info: decoder type is i915/945 MPEG2 MC decoder vo_xvmc: Allocated Direct Context vo_xvmc: data_blocks allocated vo_xvmc: mv_blocks allocated vo_xvmc: Motion Compensation context allocated - 8 surfaces vo_xvmc: idct=0 unsigned_intra=0 vo_xvmc: looking for OSD support vo_xvmc: No OSD support for this mode OSD does not work, and I probably don't have IDCT but other than that it seems to work, from -msglevel vo=9 output: vo_xvmc: query_format=1DC70002 vo_xvmc: Querying 2 adaptors vo_xvmc: Quering adaptor #0 vo_xvmc: probing port #80 vo_xvmc: XvMC list have 2 surfaces vo_xvmc: Found matching surface with id=434D5658 on 80 port at 0 adapter vo_xvmc: Querying 2 adaptors vo_xvmc: Quering adaptor #0 vo_xvmc: probing port #80 vo_xvmc: XvMC list have 2 surfaces vo_xvmc: Port 80 grabed vo_xvmc: Found matching surface with id=434D5658 on 80 port at 0 adapter vo_xvmc: Allocated Direct Context vo_xvmc: data_blocks allocated vo_xvmc: mv_blocks allocated vo_xvmc: surface[0] = 0xdb0c60 .rndr=0x80775d800 vo_xvmc: surface[1] = 0xdb0c80 .rndr=0x80775d870 vo_xvmc: surface[2] = 0xdb0ca0 .rndr=0x80775d8e0 vo_xvmc: surface[3] = 0xdb0cc0 .rndr=0x80775d950 vo_xvmc: surface[4] = 0xdb0ce0 .rndr=0x80775d9c0 vo_xvmc: surface[5] = 0xdb0d00 .rndr=0x80775da30 vo_xvmc: surface[6] = 0xdb0d20 .rndr=0x80775daa0 vo_xvmc: surface[7] = 0xdb0d40 .rndr=0x80775db10 vo_xvmc: Motion Compensation context allocated - 8 surfaces vo_xvmc: idct=0 unsigned_intra=0 vo_xvmc: looking for OSD support vo_xvmc: No OSD support for this mode --Marcin