diff --git a/render.py b/render.py index 6420eb7..6fa425b 100644 --- a/render.py +++ b/render.py @@ -139,7 +139,7 @@ def compose(clips, target=150, base=1024, voice_over=None): elif 'Free' in voc['src']: a, b = '5.2', '-3.8' elif 'Ashley' in voc['src']: - a, b = '4.5', '-4.5' + a, b = '3.75', '-5.25' voc['filter'] = {'volume': a} scene['audio-center']['A1'].append(voc) vo_low = vo.copy() @@ -580,11 +580,14 @@ def update_subtitles(options): for clip in scene['audio-center']['A1']: if not clip.get("blank"): batch, fragment_id = clip['src'].replace('.wav', '').split('/')[-2:] - vo = item.models.Item.objects.filter(data__icontains='2-Whispered', data__title__startswith=fragment_id + '_').first() + vo = item.models.Item.objects.filter(data__batch__icontains=batch, data__title__startswith=fragment_id + '_').first() if vo: + #print("%s => %s %s" % (clip['src'], vo, vo.get('batch'))) for sub in vo.annotations.filter(layer="subtitles").exclude(value="").order_by("start"): sdata = get_srt(sub, offset) subs.append(sdata) + else: + print("could not find vo for %s" % clip['src']) offset += clip['duration'] path = folder / "front.srt" srt = ox.srt.encode(subs)