View Single Post
  #4  
Old 11-29-2013, 02:02 AM
dublin dublin is offline
Junior Member
 
Join Date: Jan 2013
Posts: 29
dublin is on a distinguished road
Default

Re: JW Player based RTMP


Quote:
Originally Posted by Rancher View Post
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
Reply With Quote