adjust volume after decode

This commit is contained in:
j 2021-08-10 16:41:08 +02:00
parent c48ac8fe61
commit 9bd581cb46

View file

@ -115,11 +115,11 @@ for clip in edit:
else:
aid = src_info['audio'][0]['id']
audio = []
audio_map = ['-map', '0:%s,0:0' % aid, '-map', '0:%s,0:1' % vid]
if clip.get('volume', 1) != 1:
audio += [
audio_map += [
'-filter:a', 'volume=%s' % clip['volume']
]
audio_map = ['-map', '0:%s,0:0' % aid, '-map', '0:%s,0:1' % vid]
cmd = [
'ffmpeg',
'-nostats', '-loglevel', 'error',