Ars_M
1
Hello
we transcoding live stream and sending to wowza.
Every day (i don’t know why, may be input stream error) my ffmpeg hands 2-3 times and i should monitoring and restarting ffmpeg service.
Is there any way keep running ffmpeg, even if we don’t have input stream?
Or good script for monitoring, restarting and help keep running ffmpeg ?
thank you
Hi,
Would you share the ffmpeg command that you are using?
You should be able to monitor the error output of the ffmpeg command,
then kill and restart the ffmpeg command based on the error output results.
Daren
Ars_M
3
i need to run 50 like this commands :
ffmpeg -i http://111.111.111.111:8025/aaa -preset fast -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 96k -vcodec libx264 -b:v 900k -f flv rtmp://222.222.222.222:1935/live/sample1
Ars_M
4
i don’t really care for incoming stream error for now
I just need script for running 50 streams, monitoring, restarting and help keep running ffmpeg
Hi,
Another suggestion is to use a unix tool like monit.
It is able to monitor, stop and restart any process you choose
That way if any of your FFMPEG commands error out, and they would if the stream went away,
then monit should be able to pick it up and execute a restart.
Daren
I’d suggest adding the -loglevel debug parameter to your command line and log everything to file in hopes that you can capture the actual issue.