adjust volume levels
- CF (-1.5 db) - Melody (Ban's vocals) (+ 1 db) - Soon Kim_Short Reverb ( Saxophone track ) (- 0.5 db) - Soon Kim “noise” (+0.5 db)
This commit is contained in:
parent
5f0bc63684
commit
9493eefaa3
2 changed files with 24 additions and 6 deletions
|
@ -141,7 +141,7 @@ def compose(clips, target=150, base=1024, voice_over=None):
|
|||
elif 'Ashley' in voc['src']:
|
||||
a, b = '3.75', '-5.25'
|
||||
elif 'Melody' in voc['src']:
|
||||
a, b = '3.25', '-5.75'
|
||||
a, b = '4.25', '-4.75'
|
||||
voc['filter'] = {'volume': a}
|
||||
scene['audio-center']['A1'].append(voc)
|
||||
vo_low = vo.copy()
|
||||
|
@ -284,15 +284,16 @@ def compose(clips, target=150, base=1024, voice_over=None):
|
|||
'filter': {'volume': '+0.2'},
|
||||
})
|
||||
# TBD: Foley
|
||||
cf_volume = '-5.5'
|
||||
scene['audio-front']['A2'].append({
|
||||
'duration': clip['duration'],
|
||||
'src': foley,
|
||||
'filter': {'volume': '-4'},
|
||||
'filter': {'volume': cf_volume},
|
||||
})
|
||||
scene['audio-rear']['A2'].append({
|
||||
'duration': clip['duration'],
|
||||
'src': foley,
|
||||
'filter': {'volume': '-4'},
|
||||
'filter': {'volume': cf_volume},
|
||||
})
|
||||
used.append(clip)
|
||||
print("scene duration %0.3f (target: %0.3f, vo_min: %0.3f)" % (length, target, vo_min))
|
||||
|
|
23
sax.py
23
sax.py
|
@ -8,7 +8,6 @@ def generate_sax_mix(root):
|
|||
|
||||
|
||||
root = os.path.abspath(".")
|
||||
project = KDEnliveProject(root)
|
||||
|
||||
long_wav = "Soon_Kim_Long_Reverb_Only2.wav"
|
||||
nois_wav = "Soon_Kim_Noise.wav"
|
||||
|
@ -28,6 +27,14 @@ i.files.all()[0].data.path
|
|||
'''
|
||||
|
||||
|
||||
reverb = {
|
||||
"src": reverb_wav,
|
||||
"duration": 3600.0,
|
||||
"filter": {
|
||||
"volume": "0.5"
|
||||
},
|
||||
}
|
||||
|
||||
long = {
|
||||
"src": long_wav,
|
||||
"duration": 3600.0,
|
||||
|
@ -39,20 +46,30 @@ noise = {
|
|||
"src": nois_wav,
|
||||
"duration": 3600.0,
|
||||
"filter": {
|
||||
"volume": "4.25"
|
||||
"volume": "4.75"
|
||||
},
|
||||
}
|
||||
|
||||
project = KDEnliveProject(root)
|
||||
project.append_clip('A1', long)
|
||||
project.append_clip('A2', noise)
|
||||
path = os.path.join(root, "sax-mix.kdenlive")
|
||||
with open(path, 'w') as fd:
|
||||
fd.write(project.to_xml())
|
||||
|
||||
project = KDEnliveProject(root)
|
||||
project.append_clip('A1', reverb)
|
||||
path = os.path.join(root, "sax-reverb-mix.kdenlive")
|
||||
with open(path, 'w') as fd:
|
||||
fd.write(project.to_xml())
|
||||
|
||||
cmds = []
|
||||
cmds.append([
|
||||
"melt", "sax-mix.kdenlive", '-quiet', '-consumer', 'avformat:sax-mix.wav'
|
||||
])
|
||||
cmds.append([
|
||||
"melt", "sax-reverb-mix.kdenlive", '-quiet', '-consumer', 'avformat:sax-reverb-mix.wav'
|
||||
])
|
||||
cmds.append([
|
||||
"ffmpeg", "-y",
|
||||
"-nostats", "-loglevel", "error",
|
||||
|
@ -60,7 +77,7 @@ cmds.append([
|
|||
])
|
||||
|
||||
for src, out1, out2 in (
|
||||
(reverb_wav, "fl.wav", "fr.wav"),
|
||||
('sax-reverb-mix.wav', "fl.wav", "fr.wav"),
|
||||
("sax-mix.wav", "bl.wav", "br.wav"),
|
||||
):
|
||||
cmds.append([
|
||||
|
|
Loading…
Reference in a new issue