adjust volume after decode
This commit is contained in:
parent
c48ac8fe61
commit
9bd581cb46
1 changed files with 2 additions and 2 deletions
|
@ -115,11 +115,11 @@ for clip in edit:
|
||||||
else:
|
else:
|
||||||
aid = src_info['audio'][0]['id']
|
aid = src_info['audio'][0]['id']
|
||||||
audio = []
|
audio = []
|
||||||
|
audio_map = ['-map', '0:%s,0:0' % aid, '-map', '0:%s,0:1' % vid]
|
||||||
if clip.get('volume', 1) != 1:
|
if clip.get('volume', 1) != 1:
|
||||||
audio += [
|
audio_map += [
|
||||||
'-filter:a', 'volume=%s' % clip['volume']
|
'-filter:a', 'volume=%s' % clip['volume']
|
||||||
]
|
]
|
||||||
audio_map = ['-map', '0:%s,0:0' % aid, '-map', '0:%s,0:1' % vid]
|
|
||||||
cmd = [
|
cmd = [
|
||||||
'ffmpeg',
|
'ffmpeg',
|
||||||
'-nostats', '-loglevel', 'error',
|
'-nostats', '-loglevel', 'error',
|
||||||
|
|
Loading…
Reference in a new issue