I have this batch script running perfectly on Windows:
C:\ffmpeg\bin\ffmpeg -i http://ipaddress/stream -deinterlace -c:v libx264 -pix_fmt yuv420p -s 960x540 -preset superfast -vb 1200k -maxrate 1200k -r 30 -g 60 -bufsize 8000k -c:a aac -b:a 64k -ar 44100 -ac 2 -f flv rtmp://ipaddress/live/
Sometimes ffmpeg crashes, how can I edit the batch script or what can i add to the batch file to restart the stream.
Thanks advance!