mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-24 11:22:58 +08:00
[external:ffmpeg] In test harness, Limit to 10k download size
Otherwise, if you screw up a playlist test by including a playlist dictionary key, you'll be there for eons while it downloads all the files before erroring out. Squashed per @dstftw: [external:ffmpeg] (whitespace botch) [external:ffmpeg] fixes per @dstftw [external:ffmpeg] compat_str() [external:ffmpeg] excess whitespace
This commit is contained in:
parent
afa4597618
commit
ce670629ef
@ -270,6 +270,10 @@ class FFmpegFD(ExternalFD):
|
||||
args += ['-rtmp_live', 'live']
|
||||
|
||||
args += ['-i', url, '-c', 'copy']
|
||||
|
||||
if self.params.get('test', False):
|
||||
args += ['-fs', compat_str(self._TEST_FILE_SIZE)] # -fs limit_size (output), expressed in bytes
|
||||
|
||||
if protocol in ('m3u8', 'm3u8_native'):
|
||||
if self.params.get('hls_use_mpegts', False) or tmpfilename == '-':
|
||||
args += ['-f', 'mpegts']
|
||||
|
Loading…
Reference in New Issue
Block a user