Advertisement
Seedmanc

Second pass - reconstruct from keyframes

Apr 30th, 2013
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. source=ffmpegsource2("C:\Users\Seedmanc\Desktop\vector.mp4")     #again your source unprocessed video here
  2. length=source.FrameCount()
  3. fps=source.FrameRate
  4.  
  5. dir="c:\users\seedmanc\desktop\"  
  6. filename="file.txt"  
  7.  
  8. imagesource(dir+"%d.png",end=length-1,fps=fps)              
  9.   #path to processed images. Make sure they have the same names as source images.
  10.    
  11. scriptclip("freezeframe(0,framecount-1,ref)")                    #combining images back to video
  12. ConditionalReader(dir+filename, "ref", show=false)              
  13. #reading the logfile - yes, it needs to be after the variable gets used
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement