LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Streaming and recording internet radio (http://www.linuxquestions.org/questions/slackware-14/streaming-and-recording-internet-radio-4175442465/)

g4ry 12-21-2012 12:01 PM

Streaming and recording internet radio
 
I've been using streamtuner from slackbuilds and streamripper to record. Now I'm using vlc and wondered if anyone knew of a way to record whilst listening through vlc?

Thanks.

4Strings 12-22-2012 08:01 AM

Hi,

You could try by using "mplayer":
Code:

mplayer -dumpstream [url_stream]
You will get the output file "stream.dump".

slacktroll 12-22-2012 08:37 AM

ffmpeg -f alsa -i plughw output.wav

note: won't work with sda-hda-intel >= AD1984 due to 1984.

g4ry 12-22-2012 09:53 AM

Thanks 4Strings and slacktroll, I'll give those a go.

mrclisdue 12-22-2012 01:51 PM

VLC will play your file locally *and* save to file out-of-the-box.

Media>Stream>Choose Source>Stream>Destination Setup>File Add>...check Display Locally

This can also be accomplished via cli using clvc.

cheers,

Alien Bob 12-22-2012 03:31 PM

Quote:

Originally Posted by mrclisdue (Post 4855054)
VLC will play your file locally *and* save to file out-of-the-box.

Media>Stream>Choose Source>Stream>Destination Setup>File Add>...check Display Locally

This can also be accomplished via cli using clvc.

cheers,

This commandline for instance will run VLC in a curses interface (i.e. you can start it in a terminal or the Linux console) and it will record 5 minutes (300 seconds) of the stream into an output file called "streamcapture.mp3" after which VLC will stop automatically:

Code:

$ nvlc http://taper.alienbase.nl/slackware14 --sout "#duplicate{dst=std{access=file,mux=raw,dst=streamcapture.mp3}" --stop-time 300 vlc://quit
You can of course use cvlc instead of nvlc but the ncurses interface is more informational.

Eric


All times are GMT -5. The time now is 08:52 AM.