Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How would I use rtmpdump to download this stream?

Tags:

rtmp

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>
like image 747
David Vasandani Avatar asked Dec 30 '12 00:12

David Vasandani


People also ask

How do I get an RTMP stream?

To deliver an RTMP stream across the internet, you'll need to start with an RTMP-compatible camera or encoder. You may be using an IP camera, software encoder, or hardware encoder. We recommend the free OBS software for anyone getting started.


4 Answers

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.

like image 120
Paras Nath Chaudhary Avatar answered Oct 29 '22 06:10

Paras Nath Chaudhary


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

like image 22
Leonardo Ciaccio Avatar answered Oct 29 '22 05:10

Leonardo Ciaccio


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
like image 44
eyecatchUp Avatar answered Oct 29 '22 06:10

eyecatchUp


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://...

like image 38
Emre Karataşoğlu Avatar answered Oct 29 '22 06:10

Emre Karataşoğlu