LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
Search this Thread
Old 06-28-2008, 09:02 AM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 50
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
 
Old 06-29-2008, 01:38 AM   #2
opc
LQ Newbie
 
Registered: Mar 2007
Posts: 20

Rep: Reputation: 0
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
 
Old 06-29-2008, 05:43 AM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 50
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
 
Old 08-04-2008, 05:33 AM   #4
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by opc View Post
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
 
Old 08-04-2008, 05:40 AM   #5
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
transcode an AVI into an MPEG-2 and stream it over the LAN cccc Linux - Software 1 09-05-2007 06:21 AM
Howto transcode & relay a MPEG stream to a WMV stream?? crazyivan Linux - Software 0 06-15-2007 03:18 AM
Record adio stream? linmix Linux - Software 21 01-19-2006 01:14 PM
stream desktop as mpg/avi? lukebeales Linux - Software 1 07-04-2005 06:37 AM
AVI video stream won't run in RH8 bluestar Linux - Newbie 2 12-05-2003 06:30 AM


All times are GMT -5. The time now is 03:25 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration