timeline names changed

This commit is contained in:
j 2011-10-21 01:19:45 +02:00
parent bc9cc2df3b
commit a4fd27c711

View file

@ -18,8 +18,12 @@ import Image
import video
import audio
def getTiles(timeline_prefix, height=64):
files = glob('%s%sp*.png' % (timeline_prefix, height))
return sorted(filter(lambda f: f!='%s%sp.png' % (timeline_prefix, height), files))
def loadTimeline(timeline_prefix, height=64):
files = sorted(glob('%s%sp*.png' % (timeline_prefix, height)))
files = getTiles(timeline_prefix, height)
f = Image.open(files[0])
width = f.size[0]
f = Image.open(files[-1])
@ -127,7 +131,7 @@ def makeTimelineOverview(timeline_prefix, width, inpoint=0, outpoint=0, duration
timeline.save(timeline_file)
def makeTiles(timeline_prefix, height=16, width=3600):
files = glob('%s64p*.png' % timeline_prefix)
files = getTiles(timeline_prefix, 64)
fps = 25
part_step = 60
output_width = width