remove possible timeline tiles before extracting new once
This commit is contained in:
parent
e71dbf3bc9
commit
b373d21272
1 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
from glob import glob
|
||||
from optparse import OptionParser
|
||||
|
||||
import Image
|
||||
|
@ -29,6 +30,9 @@ if __name__ == '__main__':
|
|||
if None in (opts.prefix, opts.input):
|
||||
parser.print_help()
|
||||
sys.exit()
|
||||
for f in glob('%s*.png' % opts.prefix):
|
||||
os.unlink(f)
|
||||
|
||||
opts.input = os.path.abspath(opts.input)
|
||||
|
||||
info = ox.avinfo(opts.input)
|
||||
|
@ -36,6 +40,7 @@ if __name__ == '__main__':
|
|||
audio.Timeline(opts.input, opts.prefix, opts.width, opts.height)
|
||||
else:
|
||||
video.Timeline(opts.input, opts.prefix, opts.width, opts.height)
|
||||
|
||||
oxtimeline.createTimelineMultiline(opts.prefix)
|
||||
oxtimeline.makeTiles(opts.prefix, 16, 3600)
|
||||
oxtimeline.makeTimelineOverview(opts.prefix, 1920, height=16)
|
||||
|
|
Loading…
Reference in a new issue