1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-11 07:22:51 +08:00

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
This commit is contained in:
amq 2014-01-23 18:36:57 +01:00
parent 975d35dbab
commit 7ea2e4456d

View File

@ -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']: