adjust volume
This commit is contained in:
parent
eaf95133d6
commit
86dc72ec01
1 changed files with 3 additions and 3 deletions
|
|
@ -153,7 +153,7 @@ def compose(clips, fragment, target=150, base=1024, voice_over=None, options=Non
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
volume_front = '-17'
|
volume_front = '-15'
|
||||||
if clip.get('volume') is not None:
|
if clip.get('volume') is not None:
|
||||||
volume_front = '%0.2f' % (float(volume_front) + clip['volume'])
|
volume_front = '%0.2f' % (float(volume_front) + clip['volume'])
|
||||||
|
|
||||||
|
|
@ -263,9 +263,9 @@ def compose(clips, fragment, target=150, base=1024, voice_over=None, options=Non
|
||||||
print('%07.3f-%07.3f %07.3f' % (sub_offset, sub_offset+vo["duration"], vo["duration"]), vo["src"].split('/')[-1])
|
print('%07.3f-%07.3f %07.3f' % (sub_offset, sub_offset+vo["duration"], vo["duration"]), vo["src"].split('/')[-1])
|
||||||
voice_overs.append(vo)
|
voice_overs.append(vo)
|
||||||
voc = vo.copy()
|
voc = vo.copy()
|
||||||
a, b = '0', '0'
|
a, b = '5', '-1'
|
||||||
if options.get('stereo_downmix'):
|
if options.get('stereo_downmix'):
|
||||||
a, b = '0', '0'
|
a, b = '5', '-1'
|
||||||
voc['filter'] = {'volume': a}
|
voc['filter'] = {'volume': a}
|
||||||
scene['audio-center']['A1'].append(voc)
|
scene['audio-center']['A1'].append(voc)
|
||||||
vo_low = vo.copy()
|
vo_low = vo.copy()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue