[ffmpeg] Set max probesize to workaround AAC HLS stream issues (#1109)

Fixes: #618, #998, #1039

Authored by: shirt-dev
This commit is contained in:
shirt 2021-09-27 18:42:33 -04:00 committed by GitHub
parent f1d42a83ab
commit 250a938de8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,7 +262,7 @@ def real_run_ffmpeg(self, input_path_opts, output_path_opts, *, expected_retcode
oldest_mtime = min(
os.stat(encodeFilename(path)).st_mtime for path, _ in input_path_opts if path)
cmd = [encodeFilename(self.executable, True), encodeArgument('-y')]
cmd = [encodeFilename(self.executable, True), encodeArgument('-y'), encodeArgument('-probesize'), encodeArgument('max')]
# avconv does not have repeat option
if self.basename == 'ffmpeg':
cmd += [encodeArgument('-loglevel'), encodeArgument('repeat+info')]