khardwick

trim and VFR avs file

Aug 9th, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. LoadPlugin("Z:\AviSynthPlugins\DGDecode.dll")
  2. LoadPlugin("Z:\AviSynthPlugins\TIVTC\TIVTC.dll")
  3. LoadPlugin("Z:\AviSynthPlugins\vinverse\Release\vinverse.dll")
  4. LoadPlugin("Z:\AviSynthPlugins\TDeint\TDeint.dll")
  5.  
  6. MPEG2Source("Z:\Nothing But a Man (Michael Roemer, 1964)\Forty Years Later.d2v", cpu=0)
  7.  
  8. a=trim(0, 108)
  9. b=trim(109, 480).greyscale()
  10. c=trim(481, 8820)
  11. d=trim(8821, 9147).greyscale()
  12. e=trim(9148, 19369)
  13. f=trim(19370, 19635).greyscale()
  14. g=trim(19636, 0)
  15. a+b+c+d+e+f+g
  16.  
  17. #A: analysis------------------------------------
  18. #tfm(output="matches.txt")
  19. #tdecimate(mode=4,output="metrics.txt")
  20.  
  21. #B: encoding------------------------------------
  22. #tfm(input="matches.txt")
  23. #tdecimate(mode=5,hybrid=2,vfrDec=0,input="metrics.txt",tfmIn="matches.txt",mkvOut="mkv-timecodesfile.txt")
  24. #TDeint(full=false)
  25. #vinverse()
  26.  
  27. Crop(2, 0, -4, -2)
  28.  
  29. #: Discussion: The info I found suggested running "A" as a first pass then "B" as a second pass.
  30. # I ended up running A as an analysis pass in meGui then B as a regular automated 2-pass job. So I
  31. # probably could have commented out the trim and crop statements for that analysis pass for a slight
  32. # speed increase. The source was hybrid, mostly videotape but with 3 short black and white film
  33. # sections that needed to be greyscaled to remove rainbowing and of course needed an IVTC.
Advertisement
Add Comment
Please, Sign In to add comment