sound mix
This commit is contained in:
parent
ab45117ab0
commit
b173025dc0
1 changed files with 1 additions and 21 deletions
22
render.py
22
render.py
|
|
@ -174,7 +174,7 @@ def compose(clips, fragment, target=150, base=1024, voice_over=None, options=Non
|
|||
["channels", "2"],
|
||||
],
|
||||
'loudness': [
|
||||
["program", "-27"],
|
||||
["program", "-17"],
|
||||
["results", clip["loudnorm"]],
|
||||
],
|
||||
'volume': volume_front,
|
||||
|
|
@ -240,28 +240,8 @@ def compose(clips, fragment, target=150, base=1024, voice_over=None, options=Non
|
|||
voice_overs.append(vo)
|
||||
voc = vo.copy()
|
||||
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'):
|
||||
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}
|
||||
scene['audio-center']['A1'].append(voc)
|
||||
vo_low = vo.copy()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue