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>
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.
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.
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
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
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://...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With