[FFmpeg-user] How to silently ignore inexistent inputs

Yevgen Voronetskyy yevgen.v at webgroup-limited.com
Tue May 19 10:40:30 CEST 2015


I’ve tried to use this approach with ffprobe to check the aliveness of streams.
Unfortunately, the streams unpublishing are quite often, so the time gap is rather big and often I still getting the same error…

Anyway, thank you for your response :)
--
Yev


> On May 19, 2015, at 10:41, Anatol <anatol2002 at gmail.com> wrote:
> 
> On startup, run a quick 'is alive' detection call ("ffmpeg -i rtmp://
> server.com/stream <http://server.com/stream1>X") through all the streams
> that u have, then build your cmd line only for those that that are alive.
> 
> On Tue, May 19, 2015 at 9:40 AM, Yevgen Voronetskyy <
> yevgen.v at webgroup-limited.com> wrote:
> 
>> Hi,
>> 
>> I would like to generate a mosaic video from multiple RTMP streams.
>> I have a working ffmpeg CMD starting with the list of 25-30 online streams:
>> 
>> ffmpeg -i rtmp://server.com/stream1 <rtmp://server.com/stream1> -i rtmp://
>> server.com/stream2 <rtmp://server.com/stream2> … -i rtmp://
>> server.com/stream30 <rtmp://server.com/stream30> THE_REST_IS_OMMITTED
>> 
>> This command works well only if all streams are present.
>> If one of the stream is dead, the ffmpeg complaints “Server error: Failed
>> to play stream15; stream not found.” and stops.
>> 
>> Is there any ffmpeg option to by-pass inexistent sources?
>> 
>> Thanks in advance,
>> --
>> Yev
>> 
>> 
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user



More information about the ffmpeg-user mailing list