From owner-freebsd-ports@FreeBSD.ORG Thu Oct 9 12:28:43 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67E3B1065688 for ; Thu, 9 Oct 2008 12:28:43 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id EDD158FC1A for ; Thu, 9 Oct 2008 12:28:42 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.14.3/jtpda-5.4) with ESMTP id m99CSeUn093760 for ; Thu, 9 Oct 2008 14:28:41 +0200 (CEST) X-Ids: 168 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id 915DC89C58 for ; Thu, 9 Oct 2008 14:28:39 +0200 (CEST) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id 7765110A; Thu, 9 Oct 2008 14:28:39 +0200 (CEST) Date: Thu, 9 Oct 2008 14:28:39 +0200 From: Michel Talon To: freebsd-ports@freebsd.org Message-ID: <20081009122839.GA58927@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (shiva.jussieu.fr [134.157.0.168]); Thu, 09 Oct 2008 14:28:41 +0200 (CEST) X-Virus-Scanned: ClamAV 0.93.3/8398/Thu Oct 9 05:58:03 2008 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at jchkmail.jussieu.fr with ID 48EDF8F8.014 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 48EDF8F8.014/134.157.10.1/parthe.lpthe.jussieu.fr/parthe.lpthe.jussieu.fr/ X-j-chkmail-Score: MSGID : 48EDF8F8.014 on jchkmail.jussieu.fr : j-chkmail score : . : R=. U=. O=. B=0.020 -> S=0.020 X-j-chkmail-Status: Ham Subject: multimedia/xvid X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2008 12:28:43 -0000 Trying to encode with mencoder and the xvid codec(*), i discovered that it is awfully slow (around 3 frames/s on my P4 machine). So i played a little bit with the options in the Makefile without any success. Finally i understood that the cause was that the build system requires nasm, but doesn't use it! There are several assembly files in the xvid codec which are not used due to that. The solution i have found by looking at the configure script is to install the yasm port. Then the build system picks the yasm dependency and compiles the assembly files, which enables SSE instructions. The net result is that, without any other tweak, i now encode the same stuff at 11 frames/s. So to be short, multimedia/xvid should require a dependency on yasm. (*) in find that the end result is better (less artifacts at the same bitrate) with xvid than with lavc. -- Michel TALON