I made a batch file allowing the program livestreamer and VLC to automatically record the stream when a streamer is online. If he is not online the batch file repeat itself until the streamer is online.
My Code is:
Code: Select all
:start
livestreamer http://www.twitch.tv/mrllamasc best -o "streams/mrllamasc.flv" -O --retry-streams 1 --retry-open 86400
goto start
If the streamer is or go online everything work well but if he doesn't go online after a while I have this error:
Also, If in my folder (streams in this exemple) I already have a file named mrllamasc.flv it doesn't record and ask me if I want to overwrite the file. I would want to tell to the program to change the file name if there is already a file with this name. Like putting a number after the name or the date.
Can someone help me please .