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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue