normalize outpoint too
This commit is contained in:
parent
98b94fade8
commit
73bb16c31d
3 changed files with 4 additions and 2 deletions
|
@ -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