fix ffmpeg: Unrecognized option 'absf'.

This commit is contained in:
ifui 2024-01-09 09:53:41 +08:00
parent 16b75f0497
commit c7e5a29747

View File

@ -175,7 +175,7 @@ def ffmpeg_concat_flv_to_mp4(files, output='output.mp4'):
if FFMPEG == 'avconv':
params += ['-c', 'copy']
else:
params += ['-c', 'copy', '-absf', 'aac_adtstoasc']
params += ['-c', 'copy', '-bsf:a', 'aac_adtstoasc']
params.extend(['--', output])
if subprocess.call(params, stdin=STDIN) == 0:
@ -229,7 +229,7 @@ def ffmpeg_concat_mp4_to_mp4(files, output='output.mp4'):
if FFMPEG == 'avconv':
params += ['-c', 'copy']
else:
params += ['-c', 'copy', '-absf', 'aac_adtstoasc']
params += ['-c', 'copy', '-bsf:a', 'aac_adtstoasc']
params.extend(['--', output])
subprocess.check_call(params, stdin=STDIN)