RTMP: Is there such a linux command line tool?

command-line, linux, rtmp, shell, utilities

Solution

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.

Problem

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

Original source