timeline names changed
This commit is contained in:
parent
bc9cc2df3b
commit
a4fd27c711
1 changed files with 6 additions and 2 deletions
|
@ -18,8 +18,12 @@ import Image
|
||||||
import video
|
import video
|
||||||
import audio
|
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):
|
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])
|
f = Image.open(files[0])
|
||||||
width = f.size[0]
|
width = f.size[0]
|
||||||
f = Image.open(files[-1])
|
f = Image.open(files[-1])
|
||||||
|
@ -127,7 +131,7 @@ def makeTimelineOverview(timeline_prefix, width, inpoint=0, outpoint=0, duration
|
||||||
timeline.save(timeline_file)
|
timeline.save(timeline_file)
|
||||||
|
|
||||||
def makeTiles(timeline_prefix, height=16, width=3600):
|
def makeTiles(timeline_prefix, height=16, width=3600):
|
||||||
files = glob('%s64p*.png' % timeline_prefix)
|
files = getTiles(timeline_prefix, 64)
|
||||||
fps = 25
|
fps = 25
|
||||||
part_step = 60
|
part_step = 60
|
||||||
output_width = width
|
output_width = width
|
||||||
|
|
Loading…
Reference in a new issue