From owner-freebsd-multimedia Sun Mar 9 8:18:30 2003 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 43A3E37B401 for ; Sun, 9 Mar 2003 08:18:27 -0800 (PST) Received: from heaven.gigo.com (heaven.gigo.com [64.57.102.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B96243FE1 for ; Sun, 9 Mar 2003 08:18:26 -0800 (PST) (envelope-from lioux@brturbo.com) Received: from 200-193-225-073.bsace7003.dsl.brasiltelecom.net.br (200-193-225-073.bsace7003.dsl.brasiltelecom.net.br [200.193.225.73]) by heaven.gigo.com (Postfix) with ESMTP id 2BA1EB86D for ; Sun, 9 Mar 2003 08:18:25 -0800 (PST) Received: (qmail 5087 invoked by uid 1001); 9 Mar 2003 15:57:21 -0000 Message-ID: <20030309155721.5086.qmail@exxodus.fedaykin.here> Date: Sun, 9 Mar 2003 12:56:59 -0300 From: Mario Sergio Fujikawa Ferreira To: Paul Pathiakis Cc: freebsd-multimedia@FreeBSD.org Subject: Re: Ogle 0.8.5 and beyond (audio and aRts) References: <200303091023.48004.paul@pathiakis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200303091023.48004.paul@pathiakis.com> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 4.8-RC X-Disclaimer: I hope you find what you are looking for... in life :) Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, Okay, you're running KDE aRts daemon. It uses /dev/dsp to play audio. Unfortunaly, 2 different applications cannot share the same /dev/dsp device. Therefore, ogle cannot use the device since aRts already holds it. There a couple of things we can try though. For instance, the "KDE on FreeBSD" FAQ has a similar response for xmms (which has the same problem): - KDE on FreeBSD http://freebsd.kde.org/faq.shtml ---- Q9: How can I make arts play nicely with xmms (or any other sound application)? A9.1: Let's start with ls /dev/dsp*. If you get a list like this (and you probably will, most modern sound cards will be auto set up this way) you're already good to go: /dev/dsp /dev/dsp0.0 /dev/dsp0.2 /dev/dsp0 /dev/dsp0.1 /dev/dsp0.3 If you only have dsp + dsp0, or possibly dsp0.0, you need to set some things up by hand. Put the following two lines into /etc/sysctrl.conf: hw.snd.pcm0.vchans=4 hw.snd.maxautovchans=4 In the KDE Control Center, tell arts to use /dev/dsp0.1. If you use esd, tell it to use /dev/dsp0.2 (just don't ask me how to do that, I don't use esd). Applications like XMMS and others will continue to use the defaults (/dev/dsp0 or /dev/dsp0.0) and you will still have /dev/dsp0.3 if you come up with anything else that still clashes. ---- You see? It's a way to have 4 different dsp devices. If you tell aRts to not use the default /dev/dsp one, all other applications can use it since it's no longer being held. To change the default dsp device for aRts, go to KDE Control Center -> Sound & Multimedia -> Sound System -> Sound I/O -> -> Use custom sound device -> [enter something like /dev/dsp0.3] This should "fix" the aRts vs ogle sound conflict. Let me know if you still have problems. Regards, On Sun, Mar 09, 2003 at 10:23:25AM -0500, Paul Pathiakis wrote: > Hi, > > I've searched the archives, gone on the net, I just can't find out what's > wrong. > > I'm running Freebsd 4.7. > > On ogle 0.8.0, I just did a make install from the ports collection and it > just worked after tweaking the kernel to have the required shm and other > parameters. > > Since then, I've upgraded twice and found that it no longer works. > > I used to just type "ogle" at the command prompt. I'd get the console (btw, > most of the buttons have never worked.) and "open disc" and everything would > just run. > > Now, when I type ogle, it initializes: > > ogle > libdvdread: Using libdvdcss version 1.2.5 for DVD access > libdvdread: Using libdvdcss version 1.2.5 for DVD access > > libdvdread: Attempting to retrieve all CSS keys > libdvdread: This can take a _long_ time, please be patient > > libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000013c > libdvdread: Elapsed time 0 > libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00007d2c > libdvdread: Elapsed time 0 > libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000bd8f > libdvdread: Elapsed time 0 > libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x0002fea7 > libdvdread: Elapsed time 0 > libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00033e27 > libdvdread: Elapsed time 0 > libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x0005b82a > libdvdread: Elapsed time 0 > libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0005f855 > libdvdread: Elapsed time 0 > libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x000818b5 > libdvdread: Elapsed time 0 > libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x000858f4 > libdvdread: Elapsed time 0 > libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x000a6189 > libdvdread: Elapsed time 0 > libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x000adf70 > libdvdread: Elapsed time 0 > libdvdread: Found 5 VTS's > libdvdread: Elapsed time 0 > Using djbfft for IMDCT transform > FATAL[ogle_audio]: failed opening the oss audio driver at /dev/dsp > > > I have a KDE desktop, so I found I can start with: artsdsp ogle > > The sound quality is horrible, the performance is choppy and terrible and the > frame rate, which used to be about 29fps is now 13-14 fps. What have I done > wrong? I'm at a loss. > > Thank you, > > Paul Pathiakis -- Mario S F Ferreira - DF - Brazil - "I guess this is a signature." Computer Science Undergraduate | FreeBSD Committer | CS Developer flames to beloved devnull@someotherworldbeloworabove.org feature, n: a documented bug | bug, n: an undocumented feature To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message