outpoint
This commit is contained in:
parent
635184f8ad
commit
98b94fade8
1 changed files with 7 additions and 1 deletions
|
@ -42,9 +42,15 @@ def loadFrame(afile, position):
|
||||||
|
|
||||||
def loadClip(afile, position):
|
def loadClip(afile, position):
|
||||||
position = basename(position).replace(':', '.')
|
position = basename(position).replace(':', '.')
|
||||||
|
positions = position.split(';')
|
||||||
|
if len(positions) > 1:
|
||||||
|
position = positions[0]
|
||||||
|
outpoint= positions[1]
|
||||||
|
else:
|
||||||
|
outpoint = -1
|
||||||
flash = join(afile.frameFolder, '%s.%s' % (position, 'flv'))
|
flash = join(afile.frameFolder, '%s.%s' % (position, 'flv'))
|
||||||
if not exists(flash):
|
if not exists(flash):
|
||||||
afile.extractClip(position)
|
afile.extractClip(position, outpoint)
|
||||||
if exists(flash):
|
if exists(flash):
|
||||||
return loadFile(flash)
|
return loadFile(flash)
|
||||||
return ''
|
return ''
|
||||||
|
|
Loading…
Reference in a new issue