Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
personal:portfolio:vcat-script [2019/01/02 14:12]
antonello
personal:portfolio:vcat-script [2019/01/02 14:52] (current)
antonello Allowed decimal of seconds
Line 47: Line 47:
     clips=[]     clips=[]
     for iFile in iFiles:     for iFile in iFiles:
-        subclip = re.search(r"\[([0-9\-]+)\]", iFile)+        subclip = re.search(r"\[([0-9\-\.]+)\]", iFile)
         if subclip is None:         if subclip is None:
             clips.append(VideoFileClip(iFile))             clips.append(VideoFileClip(iFile))
Line 55: Line 55:
                 printerror("If a specific segment of a file is specified, this should be given as [startseconds-endseconds]")                 printerror("If a specific segment of a file is specified, this should be given as [startseconds-endseconds]")
             iFile = iFile.replace("["+subclip.group(1)+"]",'')             iFile = iFile.replace("["+subclip.group(1)+"]",'')
-            clips.append(VideoFileClip(iFile).subclip(int(dims[0]),int(dims[1])))+            clips.append(VideoFileClip(iFile).subclip(float(dims[0]),float(dims[1])))
  
     f = concatenate_videoclips(clips)     f = concatenate_videoclips(clips)
personal/portfolio/vcat-script.txt · Last modified: 2019/01/02 14:52 by antonello
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0