View Single Post
  #8  
Old 06-03-2014, 04:36 AM
zer00 zer00 is offline
Junior Member
 
Join Date: Oct 2011
Posts: 12
zer00 is on a distinguished road
Default

Re: Renaming rtmpdump downloads automatically based on date and time (Windows, Linux)


Quote:
Originally Posted by Nori View Post
Hi
i have a problem with this script. the output flv file is always MyShow with no date and when restart the script the previous flv file is overwritten.
There is only a little mistake in the script.
This should work:

Code:
#! /bin/bash
FileName=`date +"MyShow - %0d-%0m-%0y - %0k-%0M-%0S.flv"`
rtmpdump -r rtmp://live1.seeon.tv/edge/nvcrd4lz4zs0w34 -p http://www.seeon.tv/view/11073 -W http://www.seeon.tv/jwplayer/player.swf --stop 3600 --live -o "$FileName"
Reply With Quote