Rancher
11-27-2013, 10:35 PM
Can somebody create a RTMPDump script for the following stream: http://ntv.rs/live/
I managed to find a RTMP URL, but I don't know how to find swfUrl, pageUrl and other needed stuff. How do I know what is required in order to play the stream in the first place? Thank you in advance.
dublin
11-28-2013, 02:32 AM
Can somebody create a RTMPDump script for the following stream: http://ntv.rs/live/
Play with vlc:
rtmpdump -r "rtmp://92.60.231.48:1935/live/" -a "live/" -W "http://ntv.rs/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf" -y "livestream" | vlc -
Download:
rtmpdump -r "rtmp://92.60.231.48:1935/live/" -a "live/" -W "http://ntv.rs/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf" -y "livestream" -o ntv.flv
I managed to find a RTMP URL, but I don't know how to find swfUrl, pageUrl and other needed stuff.
For that particular stream you can find all the necessary info simply by viewing the webpages source code.
How do I know what is required in order to play the stream in the first place?
Maybe you should start by reading the rtmpdump manpage (http://rtmpdump.mplayerhq.hu/rtmpdump.1.html)
Rancher
11-28-2013, 04:11 PM
Thank you! By the way, is it possible to define multiple output filenames, so that files don't get overwritten? I'm using the Task Scheduler to trigger the .bat scripts, but I'm afraid I won't get a chance to rename the files every time, especially when I'm away from keyboard. Can you think of any solution to overcome this?
dublin
11-29-2013, 02:02 AM
Thank you! By the way, is it possible to define multiple output filenames, so that files don't get overwritten? I'm using the Task Scheduler to trigger the .bat scripts, but I'm afraid I won't get a chance to rename the files every time, especially when I'm away from keyboard. Can you think of any solution to overcome this?
One way is to use %random% environment variable in the output filename. It generates random number between 0 and 32767.
rtmpdump -r "rtmp://92.60.231.48:1935/live/" -a "live/" -W "http://ntv.rs/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf" -y "livestream" -o %random%ntv.flv
Or you can use %time::=% It will use current time as filename.
rtmpdump -r "rtmp://92.60.231.48:1935/live/" -a "live/" -W "http://ntv.rs/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf" -y "livestream" -o %time::=%.flv
vBulletin® , Copyright ©2000-2025, Jelsoft Enterprises Ltd.