normalize outpoint too
This commit is contained in:
parent
98b94fade8
commit
73bb16c31d
3 changed files with 4 additions and 2 deletions
|
@ -45,7 +45,7 @@ def loadClip(afile, position):
|
||||||
positions = position.split(';')
|
positions = position.split(';')
|
||||||
if len(positions) > 1:
|
if len(positions) > 1:
|
||||||
position = positions[0]
|
position = positions[0]
|
||||||
outpoint= positions[1]
|
outpoint = positions[1]
|
||||||
else:
|
else:
|
||||||
outpoint = -1
|
outpoint = -1
|
||||||
flash = join(afile.frameFolder, '%s.%s' % (position, 'flv'))
|
flash = join(afile.frameFolder, '%s.%s' % (position, 'flv'))
|
||||||
|
|
|
@ -65,7 +65,7 @@ def identify(fname):
|
||||||
if fname.endswith('ogg') or fname.endswith('ogv'):
|
if fname.endswith('ogg') or fname.endswith('ogv'):
|
||||||
return oggzinfo(fname)
|
return oggzinfo(fname)
|
||||||
|
|
||||||
cmd = 'midentify "%s"' % fname
|
cmd = '/usr/local/bin/midentify "%s"' % fname
|
||||||
f = os.popen(cmd.encode('utf-8'))
|
f = os.popen(cmd.encode('utf-8'))
|
||||||
data = f.read().strip()
|
data = f.read().strip()
|
||||||
f.close()
|
f.close()
|
||||||
|
|
|
@ -452,6 +452,8 @@ class ArchiveFile(SQLObject):
|
||||||
outpoint = s['stop']
|
outpoint = s['stop']
|
||||||
else:
|
else:
|
||||||
outpoint = shift_time(5000, inpoint)
|
outpoint = shift_time(5000, inpoint)
|
||||||
|
else:
|
||||||
|
outpoint = outpoint.replace('.', ':')
|
||||||
extract_flash(movie_file, flash_movie, inpoint, outpoint, width, height, offset = 0)
|
extract_flash(movie_file, flash_movie, inpoint, outpoint, width, height, offset = 0)
|
||||||
#extract_flash_ng(self.absolutePath, flash_movie, inpoint, outpoint, width, height, offset)
|
#extract_flash_ng(self.absolutePath, flash_movie, inpoint, outpoint, width, height, offset)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue