I have found that on some live streams there may be a video interruption for a short time after which it resumes and keeps going.
My scripts use ffmpeg to download nightly videos in 1-2 hour chunks, but sometimes the resulting files are much shorter and I believe that the stream has a short interruption, which made ffmpeg stop.
Is there some way I can set a "wait-timeout" in this situation so that ffmpeg waits until the video resumes again and continues its download?
For example I have seen when watching directly that there are some 1-2 minute long interruptions whereupon the video resumes normally again.
I do not want ffmpeg to stop until the -t 3600 argument has timed out even if the video stream stops for a while.
Is this possible?
+ Reply to Thread
Results 1 to 2 of 2
-
-
Here is an example of an ffmpeg command, which normally works fine but sometimes (30% maybe) aborts before the actual requested time:
Code:ffmpeg -hide_banner -referer "https://wwwwwwwww.com/yyyy.html" -i "https://xxxxxxxx.org/2fwljiCVp2jdxA63hnS-ng==,1636958338/LS-ATL-54548-10/index.m3u8" -vf scale=w=-4:h=480 -c:v libx264 -preset fast -crf 26 -c:a copy -t 7680 input22.mp4
The -i xxx.m3u8 argument has been extracted using another script with this command where the ffmpeg -referer argument is used as STREAMURL:
Code:curl -s \"${STREAMURL}\" | grep -o -e \"https://.\+m3u8\" | head -n 1
Similar Threads
-
keyframe interval recommended for h264 video at 50 fps
By codemaster in forum Video ConversionReplies: 15Last Post: 24th Sep 2020, 21:51 -
How to set ffmpeg File Path on Batch File
By Daringbaaz in forum Newbie / General discussionsReplies: 2Last Post: 28th Jul 2019, 05:55 -
Suggestion camcorder with slowmo, single frame and interval timelapse?
By larioso in forum Camcorders (DV/HDV/AVCHD/HD)Replies: 0Last Post: 4th Jun 2019, 04:44 -
Adding Delay Interval with MPC-HC
By mavhamm in forum SubtitleReplies: 4Last Post: 18th Oct 2017, 14:42 -
FFMpeg setsar and setdar video filter does not exactly set the sar and dar
By alexander121 in forum Video ConversionReplies: 2Last Post: 15th Oct 2017, 08:57