David Vasandani
David Vasandani

Reputation: 1930

How would I use rtmpdump to download this stream?

I'm new to rtmpdump and trying to learn. Any ideas how I could go about downloading this stream using rtmpdump?

<script type="text/javascript" src="http://castalba.tv/js/jwplayer.js"></script>
    <script type="text/javascript">
        jwplayer("mediaspace").setup({
        'flashplayer': "http://static.castalba.tv/player.swf",
        'width': '650',
        'height': '400',
        'allowfullscreen':'true',
        'allowscriptaccess':'always',
        'wmode':'opaque',
        'controlbar':'over',
        'dock':'true',
        'dock.position':'left',
        'mute':'false',
        'stretching':'uniform',
        'autostart': 'true',
        'rtmp.subscribe': 'true',
        'file': 'ChelTV_Ch01_1000k@26291',
        'streamer': 'rtmpe://cp96798.live.edgefcs.net/live/',
        'rtmp.tunneling': 'false',
        'logo.file':'http://castalba.tv/images/playerlogo.png',
        'logo.hide':'false',
        'logo.position':'top-right',
        'logo.link':'http://castalba.tv',
        'abouttext':'CastAlba.TV - Stream Live Video',
        'aboutlink':'http://castalba.tv',
        'skin':'http://static.castalba.tv/bluez.zip'
        });
    </script>

Upvotes: 10

Views: 39946

Answers (6)

vibs2006
vibs2006

Reputation: 6518

If the stream is Live then you have to use -v switch

For example if a sample url is rtmp://serverip/live/streamname then use the following commandline of rtmpdump to start the download of Live stream

rtmpdump -r "rtmp://serverip/live/streamname" -o "anyfileNameforOutput.mp4" -v

Please note that you can view all the detail commandline parameters of rtmpdump by typing following in command line

rtmpdump --help

You can download RTMPDUMP using this link.

Upvotes: 1

Paras Nath Chaudhary
Paras Nath Chaudhary

Reputation: 876

I was unable to stream the url, mentioned in the above code snippet, anyways How I do in my Ubuntu system is:

$ sudo apt-get install rtmpdump

This installs rtmpdump. And then to download a rtmp stream to a file 'downloaded_file.mp4', I use:

$ rtmpdump -r rtmp://example.com/path/to/video -o downloaded_file.mp4

-r is followed by the rtmp stream and -o is followed by a filename to which the stream will be saved.

Upvotes: 9

eyecatchUp
eyecatchUp

Reputation: 10560

Based on Emre's answer and for those who want to save mp4 files with ffmpeg (rather than flv), you can use the following command:

ffmpeg -i "rtmp://domain.com/path/to/video.mp4" -vcodec copy -acodec copy out.mp4

Upvotes: 12

Emre Karataşoğlu
Emre Karataşoğlu

Reputation: 1719

You can save live stream with ffmpeg , similar to rtmp dump. Download zeranoe ffmpeg build for windows or linux . Reach the dir with cmd line .

ffmpeg -i "stream_link" -y -f flv emre.flv

where the stream_link can be udp:// ... rtmp://... rtsp://... http://...

Upvotes: 7

Leonardo Ciaccio
Leonardo Ciaccio

Reputation: 3126

For Google Chrome i have developed an extension, can help you for capture any streaming link. This is good assistent, the name is Grab Any Media, i hope help you to capture this link, on the main site you can find more video tutorial

Upvotes: 4

2pha
2pha

Reputation: 10155

Use rtmp explorer to view the page. http://www.videohelp.com/tools/RTMPExplorer

Upvotes: 0

Related Questions