From 7ea2e4456d01e708f0b5eb37f4f5d35d26660db5 Mon Sep 17 00:00:00 2001 From: amq Date: Thu, 23 Jan 2014 18:36:57 +0100 Subject: [PATCH] temporary fix for the time jumps I have added -t 72000 (20 hours) to force ffmpeg to mux the file when a "time jump" happens. For some reason every job I've seen so far (at least 6 in total) was to 20 hours or more. I think It's a safe value, which won't cause any troubles. There is no chance recording a live stream for 20 hours without interruptions anyway (my record is 3 hours). https://github.com/rg3/youtube-dl/issues/2213 --- youtube_dl/downloader/hls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/downloader/hls.py b/youtube_dl/downloader/hls.py index fa983462b..1516ab923 100644 --- a/youtube_dl/downloader/hls.py +++ b/youtube_dl/downloader/hls.py @@ -13,7 +13,7 @@ class HlsFD(FileDownloader): self.report_destination(filename) tmpfilename = self.temp_name(filename) - args = ['-y', '-i', url, '-f', 'mp4', '-c', 'copy', + args = ['-y', '-i', url, '-t', '72000', '-f', 'mp4', '-c', 'copy', '-bsf:a', 'aac_adtstoasc', tmpfilename] for program in ['avconv', 'ffmpeg']: