[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: record stream using time limit, reconnecting as needed

From: Roger
Subject: Re: record stream using time limit, reconnecting as needed
Date: Wed, 22 Feb 2023 07:07:24 -0500

> On Wed, Feb 22, 2023 at 04:36:06PM +0900, Koichi Murase wrote:
>2023???2???22???(???) 16:15 Koichi Murase <>:
>> 2023???2???22???(???) 16:11 alex xmb ratchev <>:
>> > why not just timeout 30m ffmpeg
>> Because we want to rerun ffmpeg on the connection failures as far as
>> the time limit isn't reached.
>ffmpeg seems to have the option "-reconnect_streamed 1" [1,2], though
>I haven't tried it.
>If it works, I guess you can just do
>$ timeout 30m ffmepg -i http://some.url.m3u8 -reconnect_streamed 1
>although it's not the solution on the shell side for the general
>commands that might not necessarily have the retry option.

After reading through a 2022 article concerning ffmpeg reconnect options, I'm 
thinking the endless loop with safer timeout/kill likely best, until ffmpeg 
realizes and implements a "reconnect on any error/timeout" option.

However, ffmpeg reconnect options might currently flawlessly work.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]