How to record a stream and start a new outputXXX.avi/mp3 for each new stream title ?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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 ???
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.