adjust volume
This commit is contained in:
parent
ea91ec7659
commit
eff0576af3
1 changed files with 1 additions and 11 deletions
12
render.py
12
render.py
|
|
@ -157,11 +157,9 @@ def compose(clips, fragment, target=150, base=1024, voice_over=None, options=Non
|
|||
}
|
||||
})
|
||||
|
||||
volume_front = '-2.5'
|
||||
volume_rear = '-8.5'
|
||||
volume_front = '-17'
|
||||
if clip.get('volume') is not None:
|
||||
volume_front = '%0.2f' % (float(volume_front) + clip['volume'])
|
||||
volume_rear = '%0.2f' % (float(volume_rear) + clip['volume'])
|
||||
|
||||
'''
|
||||
'dynamic_loudness': [
|
||||
|
|
@ -187,14 +185,6 @@ def compose(clips, fragment, target=150, base=1024, voice_over=None, options=Non
|
|||
'src': audio,
|
||||
'filter': audio_filter.copy()
|
||||
})
|
||||
'''
|
||||
audio_filter['volume'] = volume_rear
|
||||
scene['audio-rear']['A2'].append({
|
||||
'duration': clip['duration'],
|
||||
'src': audio,
|
||||
'filter': audio_filter.copy()
|
||||
})
|
||||
'''
|
||||
used.append(clip)
|
||||
if not clips and target - length > 0:
|
||||
print("not enough clips, need to reset")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue