sound mix

This commit is contained in:
j 2026-01-24 20:44:48 +01:00
commit b173025dc0

View file

@ -174,7 +174,7 @@ def compose(clips, fragment, target=150, base=1024, voice_over=None, options=Non
["channels", "2"], ["channels", "2"],
], ],
'loudness': [ 'loudness': [
["program", "-27"], ["program", "-17"],
["results", clip["loudnorm"]], ["results", clip["loudnorm"]],
], ],
'volume': volume_front, 'volume': volume_front,
@ -240,28 +240,8 @@ def compose(clips, fragment, target=150, base=1024, voice_over=None, options=Non
voice_overs.append(vo) voice_overs.append(vo)
voc = vo.copy() voc = vo.copy()
a, b = '-11', '-3' a, b = '-11', '-3'
if 'Whispered' in voc['src']:
a, b = '-8', '0'
elif 'Read' in voc['src']:
a, b = '-7.75', '0.25'
elif 'Free' in voc['src']:
a, b = '-8.8', '-0.8'
elif 'Ashley' in voc['src']:
a, b = '-9.5', '-1.50'
elif 'Melody' in voc['src']:
a, b = '-5.25', '-0.25'
if options.get('stereo_downmix'): if options.get('stereo_downmix'):
a, b = '-9', '-1' a, b = '-9', '-1'
if 'Whispered' in voc['src']:
a, b = '-6', '2'
elif 'Read' in voc['src']:
a, b = '-5.75', '2.25'
elif 'Free' in voc['src']:
a, b = '-6.8', '3.2'
elif 'Ashley' in voc['src']:
a, b = '-7.5', '0.50'
elif 'Melody' in voc['src']:
a, b = '-3.25', '1.75'
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()