From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 19 10:22:34 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DE20106566C for ; Tue, 19 Jan 2010 10:22:34 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by mx1.freebsd.org (Postfix) with ESMTP id BCF488FC1A for ; Tue, 19 Jan 2010 10:22:33 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 19so212324fgg.13 for ; Tue, 19 Jan 2010 02:22:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=lEHDyK6Pv6PRNZGn4LJK5qPL/rIT3uQIMBw+EZpuO5I=; b=O8qDz8Jp2n5xPA3E2LGWdgv/X+kQXBR42tBqGeXZ44sBSj3Q8IqNg8gXaJFEm3T9Xv tuKKUEWoQaOYE/uBGle1VO+Zuz8UokXFehks8dW1fRvImxq9Jbf86b6OoL4k0VqrPiVU XUznW/Pj1WSoHZ2OxsMlARHoqWAo2C9zbk83E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=HxaOoRYKoD/Frhtua9h7hkWhBJ2p8BVeLiboyHJBYm4YmecfULizanUPqIAu1AmBl5 LPu/p9cNztj9kn9Pl4JyAHmQINwn6anrJWkWs1ypEdPD5KytG9+0EUyjGQkeZ2GFWUUH XN9IGPspoTpNCUnOR9Ztn+xY+zW3ueJh/Demc= Received: by 10.87.46.12 with SMTP id y12mr9530932fgj.47.1263896552611; Tue, 19 Jan 2010 02:22:32 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 14sm2730077fxm.11.2010.01.19.02.22.31 (version=SSLv3 cipher=RC4-MD5); Tue, 19 Jan 2010 02:22:31 -0800 (PST) Sender: Alexander Motin Message-ID: <4B5587B4.5030903@FreeBSD.org> Date: Tue, 19 Jan 2010 12:21:40 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Thomas Hummel References: <1263849783.00208555.1263838202@10.7.7.3> <4B54E026.8050301@FreeBSD.org> <4B5581EA.3020007@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Sound Interrupts with mplayer/snd_hda on 8-STABLE amd64 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2010 10:22:34 -0000 Thomas Hummel wrote: > On Tue, Jan 19, 2010 at 10:56 AM, Alexander Motin > wrote: > Some applications may control sound buffer size by themselves. > > Right. However, buffering an mp3 file should work out of the box in > 2010, shouldn't it ? ;-) > But what's weird, is that mplayer, with which the problem occurs, uses > ffmpeg as a backend. But the same file played directly with ffplay > (which comes with ffmpeg) works perfectly. > However, I think ffplay uses sdl instead of oss. SDL is just a wrapper around OSS. OSS is the only real sound interface. But SDL may add some additional buffering and processing. > Am I correct in assuming the following architecture layers : > > Amarok : xine -> oss -> snd_hda > xine -> oss -> snd_hda > mplayer -> ffmpeg -> oss|sdl -> snd_hda > vlc -> oss -> snd_hda > ? mplayer uses OSS directly in my case. Not sure about SDL there. > Can you think of some debug options in mplayer or vlc which could help > me isolating the problem ? > > Or could it be related to the SMP architecture of my system (quad core > intel) ? I think it could be related to scheduling, but on such a powerful system it is surprising. AFAIR /dev/sndstat reports number of underruns occured. Have you tried to look there? -- Alexander Motin