LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to record a stream and start a new outputXXX.avi/mp3 for each new stream title ? (https://www.linuxquestions.org/questions/linux-general-1/how-to-record-a-stream-and-start-a-new-outputxxx-avi-mp3-for-each-new-stream-title-652231/)

frenchn00b 06-28-2008 09:02 AM

How to record a stream and start a new outputXXX.avi/mp3 for each new stream title ?
 
How to record a stream and start a new outputXXX.avi/mp3 for each new stream title ?
thanks

opc 06-29-2008 01:38 AM

FrenchNoob,

I use mplayer to capture record radio streams regularly. I have a script for each stream I want to capture, and use crontab to execute the scripts. The scripts write unique file names based on the current date.

The syntax is:
/usr/bin/mplayer <url> -ao pcm:file=outfile.wav -vc dummy -vo null -quiet

As you might have guessed, this dumps the stream to a WAV. Each script uses LAME to convert to MP3.

A quick Google search shows that a combination of the -ao and -vo switches are required to record a multimedia stream to an AVI file. I have never recorded video, so I can't help you there.

Hope this helps at least a little.

Regards,
opc

frenchn00b 06-29-2008 05:43 AM

thx I ll look

--
mplayer -vo null -vc dummy -dumpstream 'http://streaming.radionomy.com:8000/Retro-House-Belgium-' -dumpfile techno-radio-one-hour-only.mp3

mencoder movie.wmv -o movie.avi -ovc lavc -oac mp3lame -lameopts vbr=2:q=3

frenchn00b 08-04-2008 05:33 AM

Quote:

Originally Posted by opc (Post 3198250)
FrenchNoob,

I use mplayer to capture record radio streams regularly. I have a script for each stream I want to capture, and use crontab to execute the scripts. The scripts write unique file names based on the current date.

The syntax is:
/usr/bin/mplayer <url> -ao pcm:file=outfile.wav -vc dummy -vo null -quiet

As you might have guessed, this dumps the stream to a WAV. Each script uses LAME to convert to MP3.

A quick Google search shows that a combination of the -ao and -vo switches are required to record a multimedia stream to an AVI file. I have never recorded video, so I can't help you there.

Hope this helps at least a little.

Regards,
opc


I would like to get in my :
~/music

all the new MP3 that are played...

to sort of dump the stream mp3 for my pendrive ...

can mplayer or a console mode program do the job ???

tahnks

frenchn00b 08-04-2008 05:40 AM

I found this http://www.bitcartel.com/radiolover/ ; but a backend (console only) would be what linux needs.


All times are GMT -5. The time now is 10:18 PM.