|
|
@ -732,7 +732,9 @@ class FFmpegMergerPP(FFmpegPostProcessor):
|
|
|
|
args = ['-c', 'copy']
|
|
|
|
args = ['-c', 'copy']
|
|
|
|
for (i, fmt) in enumerate(info['requested_formats']):
|
|
|
|
for (i, fmt) in enumerate(info['requested_formats']):
|
|
|
|
if fmt.get('acodec') != 'none':
|
|
|
|
if fmt.get('acodec') != 'none':
|
|
|
|
args.extend(['-map', '%u:a:0' % (i)])
|
|
|
|
args.extend(['-map', f'{i}:a:0'])
|
|
|
|
|
|
|
|
if self.get_audio_codec(fmt['filepath']) == 'aac':
|
|
|
|
|
|
|
|
args.extend([f'-bsf:{i}:a:0', 'aac_adtstoasc'])
|
|
|
|
if fmt.get('vcodec') != 'none':
|
|
|
|
if fmt.get('vcodec') != 'none':
|
|
|
|
args.extend(['-map', '%u:v:0' % (i)])
|
|
|
|
args.extend(['-map', '%u:v:0' % (i)])
|
|
|
|
self.to_screen('Merging formats into "%s"' % filename)
|
|
|
|
self.to_screen('Merging formats into "%s"' % filename)
|
|
|
|