VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. Member
    Join Date
    Feb 2021
    Location
    Sweden
    Search Comp PM
    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?
    Quote Quote  
  2. Member
    Join Date
    Feb 2021
    Location
    Sweden
    Search Comp PM
    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
    Actual url domains obfuscated for privacy.

    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
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!