Quote:
Originally Posted by Rancher
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