[FFmpeg-user] How to make FFMEPG ignore errors and keep encoding
Bryce McLeod
bryce.mcleod at codory.com
Mon Oct 28 14:45:51 EET 2019
Hi,
This isn't something you can do with command line flags. If you cannot
resolve the problem with the stream then have your calling process/script
restart ffmpeg when this happens. Depending on the error checking the exit
code is usually enough.
On Mon, Oct 28, 2019 at 5:34 AM Chuck Love <ztvqui1090 at gmail.com> wrote:
> Hi,
>
> I have an m3u8 Live streaming here.
> http:// 23.237.2.66 : 2209/Local10.m3u8
>
> Please remove spaces in the URL
>
> Basically I can use VLC to stream this HLS link for several hours with no
> problem. However when using ffmpeg to restream to my local RTMP server,
> after a while it disconnect and give error like this
>
> av_interleaved_write_frame(): Unknown error
> Last message repeated 1 times
> [flv @ 000001cb6deba5c0] Failed to update header with correct duration.
> [flv @ 000001cb6deba5c0] Failed to update header with correct filesize.
>
> The command I use is
> ffmpeg -err_detect ignore_err -re -i "http://23.237.2.66:2209/Local10.m3u8
> "
> -async 1 -vsync -1 -c:v copy -c:a aac -strict 2 -bsf:a aac_adtstoasc -b:a
> 128k -max_muxing_queue_size 1024 -tune zerolatency -f flv "rtmpServer"
>
> I am using Windows Server 2016 and ffmpeg static complied on 10-28-2019
>
> What flags should I add to the command to tell ffmpeg to ignore all errors
> and keep doing the job, provided that, the m3u8 file is working
> continuously in VLC? If VLC does not stop the streams, then FFMPEG should
> not stop encoding too.
>
> Thanks
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
--
Bryce McLeod
Codory Software Limited
email: bryce.mcleod at codory.com
skype: bmcleodcd
web: http://www.codory.com
Codory Software Limited is registered in England and Wales, no. 08711579.
Registered office: First Floor, Telecom House 125-135 Preston Road,
Brighton, BN1 6AF.
More information about the ffmpeg-user
mailing list