From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200501201829.j0KITTC08053@zamenhof.cs.utwente.nl> To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] Where is mp3dec, pac4dec vorbisdec? In-reply-to: Your message of "Thu, 20 Jan 2005 08:42:58 -0500." References: From: Axel Belinfante MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8051.1106245764.1@zamenhof.cs.utwente.nl.cs.utwente.nl> Date: Thu, 20 Jan 2005 19:29:29 +0100 Topicbox-Message-UUID: 33b8c950-eace-11e9-9e20-41e7f4b1d025 > > This may concern with many others, not only myself, I thought. (-->Sape) > > > > Thanks Sape for your jukebox program. > > You're welcome. Pac4dec, regrettably, has not been released for > public consumption. Rob tried hard, some years ago, to allow it to > be made public, but the attempts failed. There are mp3 encoders > and decoders on Plan 9, ported from other platforms. Now that we have jukebox, and some ported decoders, would it make sense to agree on where they live on the system? The bell labs stuff (I think) all ends up in /sys/src/games, whereas the vorbis port (link below) ends up in /sys/src/cmd/audio at least last time I installed it which is some time ago. Below is my mp3dec. I have tried several players and left some garbage in the script :-( I added the cat and the dd to have some more buffering because my mp3 files are served over the network. In my experience, serving files from ken-fs worked fine, but I had some problems with u9fs (short gaps of silence) that went away after adding the cat. (I have also got my music files over the wlan, or even, from the office ken-fs and u9fs's to home). cpu% cat mp3dec #!/bin/rc # if (test -e /mnt/term/tmp/dev/audio) { ## cat $3 | minimad | sox -t .raw -w -r 44100 -c 2 -s - -t .au - # cat $3 | mpg123 -s - | sox -t .raw -w -r 44100 -c 2 -s - -t .au - #} #if not { ## cat $3 | minimad # cat $3 | mpg123 -s - cat $3 | dd -quiet 1 | dd -quiet 1 | madplay -q -o RAW:- - #} Same cat trick with vorbisdec. My realvorbisdec is the vorbisdec I took from any's port: http://www.cs.helsinki.fi/u/anyrhine/p9/ cpu% cat vorbisdec #!/bin/rc cat| /bin/games/realvorbisdec cpu% Axel.