From owner-freebsd-multimedia@FreeBSD.ORG Sat Feb 26 00:12:38 2005 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECC4616A4CE for ; Sat, 26 Feb 2005 00:12:38 +0000 (GMT) Received: from uucp.dinoex.sub.de (uucp.dinoex.sub.de [194.45.71.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F8EA43D3F for ; Sat, 26 Feb 2005 00:12:37 +0000 (GMT) (envelope-from pmc@citylink.dinoex.sub.org) Received: from uucp.dinoex.sub.de (uucp@uucp.dinoex.sub.de [194.45.71.2] (may be forged)) by uucp.dinoex.sub.de (8.13.3/8.13.3) with ESMTP id j1Q0CMiP091581 for ; Sat, 26 Feb 2005 01:12:23 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) X-MDaemon-Deliver-To: Received: from citylink.dinoex.sub.org (uucp@localhost)j1Q0CMwT091580 for freebsd-multimedia@freebsd.org; Sat, 26 Feb 2005 01:12:22 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) Received: from gate.oper.dinoex.org (gate-e [192.168.98.2]) j1PNjGhN023918 for ; Sat, 26 Feb 2005 00:45:16 +0100 (CET) (envelope-from pmc@dyn.oper.dinoex.org) Received: from dyn.oper.dinoex.org (dyn-e.oper.dinoex.org [192.168.98.12]) by gate.oper.dinoex.org (8.13.1/8.13.1) with ESMTP id j1PNhGFo023758 for ; Sat, 26 Feb 2005 00:43:17 +0100 (CET) (envelope-from pmc@dyn.oper.dinoex.org) Received: from dyn.oper.dinoex.org (localhost [127.0.0.1]) by dyn.oper.dinoex.org (8.12.6/8.12.6) with ESMTP id j1PNgnKK018367 for ; Sat, 26 Feb 2005 00:42:49 +0100 (CET) (envelope-from pmc@dyn.oper.dinoex.org) Received: (from pmc@localhost) by dyn.oper.dinoex.org (8.12.6/8.12.6/Submit) id j1PNgnDS018366 for freebsd-multimedia@freebsd.org; Sat, 26 Feb 2005 00:42:49 +0100 (CET) (envelope-from pmc) Date: Sat, 26 Feb 2005 00:42:49 +0100 From: Peter Much To: freebsd-multimedia@freebsd.org Message-ID: <20050225234249.GA8500@dyn.oper.dinoex.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Milter: Spamilter (Reciever: uucp.dinoex.sub.de; Sender-ip: 194.45.71.2; Sender-helo: uucp.dinoex.sub.de;) Subject: sound problem with 5.2.1 + aviplay X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Feb 2005 00:12:39 -0000 Hi all, I have very distorted sound with aviplay on 5.2.1. The problem can be reproduced when aviplay is started without video output - then the sound is not as much distorted, but still very distorted, while I see about 8% CPU usage. When running Release 4.4 on the same system, the problem does not appear. Also there is no problem on 5.2.1 when playing mp3 files. On /dev/sndstat I see figures like these: FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0x220 irq 5 drq 1:0 bufsz 4096 (1p/1r/0v channels duplex default) [pcm0:record:0]: spd 0, fmt 0x00000000/0x00000008, flags 0x00000000, 0x00000000 interrupts 0, overruns 0, hfree 4096, sfree 0 {hardware} -> feeder_root(0x00000000) -> {userland} [pcm0:play:0]: spd 48000, fmt 0x10000010, flags 0x00007030, 0x00000000, pid 768 interrupts 3322, underruns 3190, ready 4036 {userland} -> feeder_root(0x10000010) -> {hardware} Obviousely these underruns are the problem. And -interesting- as long as I move the mouse over the aviplay control window, the sound is ok and the underrun counter does not increase (but this helps only when video is switched off). It seems like aviplay (I tried avifile-0.7.38_4,2 and 0.7.41,2) is having some problem with the scheduling of its threads... But how to fix? PMc