From owner-freebsd-questions@FreeBSD.ORG Mon Jun 14 22:24:22 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1813A106567A for ; Mon, 14 Jun 2010 22:24:22 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id B33388FC0C for ; Mon, 14 Jun 2010 22:24:21 +0000 (UTC) Received: from r55.edvax.de (port-92-195-117-232.dynamic.qsc.de [92.195.117.232]) by mx01.qsc.de (Postfix) with ESMTP id 0C5663D54C; Tue, 15 Jun 2010 00:24:08 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o5EMO6Bk003812; Tue, 15 Jun 2010 00:24:06 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 15 Jun 2010 00:24:05 +0200 From: Polytropon To: Neil Short Message-Id: <20100615002405.b536ace2.freebsd@edvax.de> In-Reply-To: <944932.60687.qm@web56502.mail.re3.yahoo.com> References: <944932.60687.qm@web56502.mail.re3.yahoo.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: terrible mplayer performance X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2010 22:24:22 -0000 On Mon, 14 Jun 2010 15:13:38 -0700 (PDT), Neil Short wrote: > Ok. I'm stuck. Mplayer's performance is worse on this laptop than > it is on my Toshiba running with a half-speed processor. I have > attempted all the suggestions I can find re: getting the performance. You should use direct rendering when possible, it seems to be the fastest playback. > The video is slow - so it lags the audio by quite a bit. I keep > getting "Your processor is too slow..." stuff. Try -framedrop or -hardframedrop, but that's not the solution, just a workaround. > What to do? > > I built mplayer from ports (not package). > mplayer-1.0.r20100117_1 > > My computer is an HP Pavilion dv4 > > xorg.conf is set up to run the vesa driver. That's how X -configure > set it up. I have no idea what graphics device is actually on this > machine. This looks like the problem. You should use the correct driver for your graphics card; "vesa" can be seen as "last compatibility option", usually not very performant. > dmesg shows: > Copyright (c) 1992-2010 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 8.1-PRERELEASE #1: Mon Jun 7 10:53:01 MST 2010 > neshort@carmen:/usr/obj/usr/src/sys/CARMEN amd64 > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel(R) Core(TM) i3 CPU M 330 @ 2.13GHz (2127.92-MHz K8-class CPU) > Origin = "GenuineIntel" Id = 0x20652 Family = 6 Model = 25 Stepping = 2 > Features=0xbfebfbff ,PBE> > Features2=0x98e3bd > AMD Features=0x28000800 > AMD Features2=0x1 > TSC: P-state invariant > real memory = 4294967296 (4096 MB) > avail memory = 3892748288 (3712 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 SMT threads > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > cpu2 (AP): APIC ID: 4 > cpu3 (AP): APIC ID: 5 > ... > vgapci0: port 0x6050-0x6057 mem 0xd0000000-0xd03fffff,0xc0000000-0xcfffffff irq 16 at device 2.0 on pci0 > agp0: on vgapci0 > agp0: detected 32764k stolen memory > agp0: aperture size is 256M > ... > ====== You have a multicore processor and 4 GB of RAM and video playback is slow? Impossible! My P2/300 with 512 MB RAM plays video without any problems (running FreeBSD 5 and who knows what old version of mplayer)... Check the output of "pciconf -lv" to see what identification of your graphics hardware is output. Then change xorg.conf to use the proper driver for this. After this change (and a restart of X), mplayer should use the correct output driver. You can enter "mplayer -vo help" to get a list of the available output drivers (e. g. xv, x11, gl, gl2, dgl, sdl and so on). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...