adjust volume

This commit is contained in:
j 2026-01-24 19:55:40 +01:00
commit eff0576af3

View file

@ -157,11 +157,9 @@ def compose(clips, fragment, target=150, base=1024, voice_over=None, options=Non
} }
}) })
volume_front = '-2.5' volume_front = '-17'
volume_rear = '-8.5'
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'])
volume_rear = '%0.2f' % (float(volume_rear) + clip['volume'])
''' '''
'dynamic_loudness': [ 'dynamic_loudness': [
@ -187,14 +185,6 @@ def compose(clips, fragment, target=150, base=1024, voice_over=None, options=Non
'src': audio, 'src': audio,
'filter': audio_filter.copy() '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) used.append(clip)
if not clips and target - length > 0: if not clips and target - length > 0:
print("not enough clips, need to reset") print("not enough clips, need to reset")