adjust volume

This commit is contained in:
j 2026-02-02 11:16:05 +01:00
commit 86dc72ec01

View file

@ -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:
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])
voice_overs.append(vo)
voc = vo.copy()
a, b = '0', '0'
a, b = '5', '-1'
if options.get('stereo_downmix'):
a, b = '0', '0'
a, b = '5', '-1'
voc['filter'] = {'volume': a}
scene['audio-center']['A1'].append(voc)
vo_low = vo.copy()