Re: recording streams with OpenBSD
On Wed, Jun 14, 2006 at 12:57:48PM -0700, Bryan wrote: > Does anyone have a good way of taking streams from the web (like music > streams) and record them to whatever format, specifically .ogg or > .mp3? I first tried to use Mplayer and "dd if=/dev/sound > of=/var/audio.raw" like in the FAQ, but it kept saying that the audio > device was busy. $ man mplayer [...] $ mplayer -dumpstream http://your.stream.com/stream.mp3 -dumpfile stream.mp3 -- o--{ Will Maier }--o | jabber:[EMAIL PROTECTED] | [EMAIL PROTECTED] | | freenode:..lt_kije | freenode:#madlug,#wilug | *--[ BSD Unix: Live Free or Die ]--*
Re: recording streams with OpenBSD
Will Maier wrote: On Wed, Jun 14, 2006 at 12:57:48PM -0700, Bryan wrote: Does anyone have a good way of taking streams from the web (like music streams) and record them to whatever format, specifically .ogg or .mp3? I first tried to use Mplayer and "dd if=/dev/sound of=/var/audio.raw" like in the FAQ, but it kept saying that the audio device was busy. $ man mplayer [...] $ mplayer -dumpstream http://your.stream.com/stream.mp3 -dumpfile stream.mp3 I did find that, but the stream is not an .mp3 file. here is one of links that I connect to... San Diego KIOZ-FM 105.3 FM http://64.62.193.13:80/D/260/19768/v0001/reflector:42778/ This is an .asf file. Opening this in a browser gives me the same link. I read the FAQ about that as well. Mplayer has no qualms about running this file as is. Can I dump the stream directly as an .mp3 file? I didn't think that was possible without using some kind of encoder like LAME (which I have installed). Bryan
Re: recording streams with OpenBSD
Sam Chill wrote: On 6/14/06, Bryan <[EMAIL PROTECTED]> wrote: Does anyone have a good way of taking streams from the web (like music streams) and record them to whatever format, specifically .ogg or .mp3? Try using audio/streamripper from ports. It worked quite well for me. -Sam I would use that, but stream ripper won't do .asf files...
Re: recording streams with OpenBSD
On Wed, Jun 14, 2006 at 03:01:58PM -0700, Bryan wrote: | >$ man mplayer | >[...] | >$ mplayer -dumpstream http://your.stream.com/stream.mp3 -dumpfile | >stream.mp3 | > | | | I did find that, but the stream is not an .mp3 file. | | here is one of links that I connect to... San Diego KIOZ-FM 105.3 FM | | http://64.62.193.13:80/D/260/19768/v0001/reflector:42778/ | | This is an .asf file. Opening this in a browser gives me the same | link. I read the FAQ about that as well. Mplayer has no qualms about | running this file as is. | | Can I dump the stream directly as an .mp3 file? I didn't think that | was possible without using some kind of encoder like LAME (which I | have installed). You could try using mencoder. Read the manpage (it's the same as mplayer(1)) for more details. Another option is to play the stream and output to a file "device". This will give you a raw dump of the audio stream which you can then convert with lame (or again with mencoder). Cheers, Paul 'WEiRD' de Weerd -- >[<++>-]<+++.>+++[<-->-]<.>+++[<+ +++>-]<.>++[<>-]<+.--.[-] http://www.weirdnet.nl/ [demime 1.01d removed an attachment of type application/pgp-signature]
Re: recording streams with OpenBSD
Check out http://www.nmedia.net/~chris/mp3ivo/ I did this a while ago when I got tired of missing my favorite radio shows. There's also a web front end there for easily playing stuff that you record. It's all driven by cron and very, very basic. Bryan [EMAIL PROTECTED] wrote: > Does anyone have a good way of taking streams from the web (like music > streams) and record them to whatever format, specifically .ogg or > .mp3? I first tried to use Mplayer and "dd if=/dev/sound > of=/var/audio.raw" like in the FAQ, but it kept saying that the audio > device was busy. > > I then looked around on google and found something promising. It is > called "shstream" (http://shstream.sourceforge.net/). Basically, it > is a shell script that downloads the stream using Mplayer, then takes > the file and converts it. While the script appears sound, it is over > 2 years old, and while it creates the "incomplete" directory, and the > pipe file, but will not create the .mp3. Mplayer is not even started, > as when I am running "top", Mplayer never appears. > > I found Streamripper as well, but the audio feeds are .asf. Mplayer > plays them just fine, but it would appear Streamripper can't. > > If anyone has any ideas, I would appreciate hearing them. > > Bryan -- There is no certainty, there is only opportunity
Re: recording streams with OpenBSD
On Wed, Jun 14, 2006 at 03:01:58PM -0700, Bryan wrote: > Will Maier wrote: > >$ mplayer -dumpstream http://your.stream.com/stream.mp3 -dumpfile > >stream.mp3 > > I did find that, but the stream is not an .mp3 file. So? Mplayer will dump an ASF stream. In fact, I tried that with your stream, and it worked fine. What's the problem? > Can I dump the stream directly as an .mp3 file? Prolly not directly with Mplayer, but you could dump to a FIFO and read the FIFO in your encoder (or decoder first) of choice. Or just reencode the dumped ASF file later on, although that will likely degrade file quality. -- o--{ Will Maier }--o | jabber:[EMAIL PROTECTED] | [EMAIL PROTECTED] | | freenode:..lt_kije | freenode:#madlug,#wilug | *--[ BSD Unix: Live Free or Die ]--*