fix sound
This commit is contained in:
parent
f2a160d63e
commit
a08e0b7331
2 changed files with 4 additions and 4 deletions
|
|
@ -1106,9 +1106,9 @@ def reshoot_item(item, extra_prompt=None, first_frame=None, keep=False, prompt=N
|
|||
return ai
|
||||
|
||||
|
||||
def reshoot_item_segments(item, character, age=None, keep=False):
|
||||
def reshoot_item_segments(item, character, age=None, keep=False, offset=0):
|
||||
if isinstance(item, str):
|
||||
item = Item.objects.get(public_id=item)
|
||||
etem = Item.objects.get(public_id=item)
|
||||
max_duration = 12
|
||||
source = item.files.all()[0].data.path
|
||||
info = ox.avinfo(source)
|
||||
|
|
@ -1153,7 +1153,7 @@ def reshoot_item_segments(item, character, age=None, keep=False):
|
|||
segment_character = character
|
||||
if segment_character:
|
||||
segment_first_frame = replace_character(
|
||||
item, segment_character, position, seed=seed, age=age
|
||||
item, segment_character, position+offset, seed=seed, age=age
|
||||
)
|
||||
segment_first_frame_url = public_document_url(segment_first_frame)
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -269,7 +269,7 @@ def compose(clips, fragment, target=150, base=1024, voice_over=None, options=Non
|
|||
if vo_b:
|
||||
a, b = '2', '-4'
|
||||
vo_b_a = '1'
|
||||
vo_b_b = '5'
|
||||
vo_b_b = '-5'
|
||||
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