help-bash
[Top][All Lists]
Advanced

[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 <myoga.murase@gmail.com>:
>>
>> 2023???2???22???(???) 16:11 alex xmb ratchev <fxmbsw7@gmail.com>:
>> > 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.
>
>[1] 
>https://stackoverflow.com/questions/59793451/issue-restreaming-with-ffmpeg-if-source-destination-drops
>[2] https://ffmpeg.org/ffmpeg-protocols.html
>
>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.
>
>--
>Koichi

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.

Roger




reply via email to

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