Results 1 to 7 of 7

Thread: ffmpeg stream monitoring, restarting

  1. #1

    Question ffmpeg stream monitoring, restarting

    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

  2. #2
    Join Date
    Jun 2011
    Posts
    1,037

    Default

    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

  3. #3

    Default

    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

  4. #4
    Join Date
    May 2013
    Posts
    680

    Default

    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.

  5. #5

    Default

    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

  6. #6
    Join Date
    Jun 2011
    Posts
    1,037

    Default

    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

  7. #7

    Default

    thank you, i will try

Similar Threads

  1. UDP input stream keeps restarting
    By karelboek in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 06-24-2013, 05:29 AM
  2. Stream Source lost on Wowza Restarting
    By testaccount in forum General Forum
    Replies: 2
    Last Post: 04-03-2012, 12:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •