views:

5112

answers:

4

Hello all,

I have looked everywhere to find a linux utility that will allow me to download rtmp streams. Not flv video but MP3 streams. The location of the streams I want to download are in this format.

rtmp://live.site.com/loc/45/std_fc74a6b7f79c70a5f60.mp3

Anyone know of such a command line tool? Or even anything close to what I am asking for?

I do not want full software applications and it would be great if it worked on Linux via Shell or something.

Thanks all

A: 

according to this, you don't have much choice...

LB
+5  A: 

One of the following should do, if you have mplayer or vlc compiled with RTMP access.

mplayer -dumpstream rtmp://live.site.com/loc/45/std_fc74a6b7f79c70a5f60.mp3

This will generate a ./stream.dump.

vlc -I dummy rtmp://live.site.com/loc/45/std_fc74a6b7f79c70a5f60.mp3 \
    --sout file/ts:output.mpg vlc://quit

This will generate a ./output.mpg. You'll have to demux it to extract just the audio stream out.

ephemient
Great, thanks! I have installed mplayer but I am not sure how to add or include rtmp support. Is there a command I can use to install it. I am using Fedora 10, yum as installer.
Abs
Hmm, actually it seems like mainline mplayer does not have RTMP support. Unless you want to try patching and compiling mplayer yourself, I suggest using VLC instead.
ephemient
+3  A: 

http://lkcl.net/rtmp/ and google rtmpdump to get the general picture why it was taken down from Sourceforge.

A: 

ffmpeg will do almost everything

none