Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

JW Player based RTMP

(http://stream-recorder.com/forum/showthread.php?t=16757)

Rancher 11-27-2013 10:35 PM

JW Player based RTMP


 
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

Re: JW Player based RTMP


 
Quote:

Originally Posted by Rancher (Post 64004)
Can somebody create a RTMPDump script for the following stream: http://ntv.rs/live/

Play with vlc:
Code:

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:
Code:

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
Quote:

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.

Quote:

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

Rancher 11-28-2013 04:11 PM

Re: JW Player based RTMP


 
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

Re: JW Player based RTMP


 
Quote:

Originally Posted by Rancher (Post 64009)
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.

Code:

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.

Code:

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


All times are GMT -6. The time now is 07:54 AM.