SHARE
TWEET

AviSynth for Schorman's SW HDTV - ROTS

a guest May 29th, 2014 341 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Schorman's Star Wars DVD/HDTV Preservation - Revenge of the Sith
  2.  
  3. #SOURCES
  4.  
  5. #German HDTV Source
  6. A=AVCSource("sith hd deu.dga").Crop(0,0,0,-8).AssumeFPS(23.976024)
  7.  
  8. #Blu Ray Source
  9. B=AVCSource("sith brd.dga").Blur(.2).Tweak(hue=3,coring=false).AssumeFPS(23.976024)
  10.  
  11. #English HDTV Source
  12. C=AVCSource("sith hd eng.dga").AssumeFPS(23.976024).Spline64Resize(1916,816).AddGrain(sse2=true).AddBorders(2,132,2,132)
  13.  
  14. #Crawl
  15. D=B.Trim(72,2648).ConvertToRGB().Letterbox(0,0,1,0).ConvertToYV12().MergeChroma(StackHorizontal(B.Trim(72,2648).Crop(0,0,-1918,0),StackVertical(B.Trim(72,2648).CropBottom(948),C.Trim(3,2579).Crop(0,132,0,-132),B.Trim(72,2648).Crop(0,948,0,0)).Crop(2,0,0,0)))
  16.  
  17. #Patches
  18. E=B.Trim(72,192457).ConvertToRGB().Letterbox(0,0,1,0).ConvertToYV12().MergeChroma(Median1(A.Trim(0,192385),C.Trim(3,94421)+C.BlankClip(1)+C.Trim(94422,94499)+C.BlankClip(45)+C.Trim(94525,192367),B.Trim(72,192457))).MSharpen(7,50,highq=true)
  19.  
  20. F=B.ConvertToRGB().Letterbox(0,0,1,0).ConvertToYV12().MergeChroma(B.Tweak(sat=.8,coring=false))
  21.  
  22. G=StackHorizontal(A.Trim(0,192385).Crop(0,0,-1918,0),StackVertical(A.Trim(0,192385).Crop(2,0,0,-948),E.Crop(2,132,0,-132),A.Trim(0,192385).Crop(2,948,0,0)))
  23.  
  24.  
  25. #PIECES TO ENCODE
  26.  
  27. part1=A.BlankClip(56)+A.Trim(0,498)+G.Trim(499,628)+D.Trim(629,2574)+D.Trim(2575,2575).Merge(A.Trim(2575,2575),.25)+D.Trim(2576,2576).Merge(A.Trim(2576,2576))+D.Trim(2577,2577).Merge(A.Trim(2577,2577),.75)+A.Trim(2578,14954)+G.Trim(14955,15015)+A.Trim(15016,65957)+G.Trim(65958,66133)+A.Trim(66134,69699)+G.Trim(69700,69792)+A.Trim(69793,122375)+G.Trim(122376,122398)+A.Trim(122399,175716)
  28.  
  29. theater=B.Trim(175789,176141)
  30.  
  31. DVD=A.Trim(175717,176069)
  32.  
  33. part3=A.Trim(176070,176965)+G.Trim(176966,176968)+A.Trim(176969,177179)+G.Trim(177180,177733)+A.Trim(177734,192020)+G.Trim(192021,192382)+G.Trim(192383,192383).Merge(A.Trim(192383,192383),.25)+G.Trim(192384,192384).Merge(A.Trim(192384,192384))+G.Trim(192385,192385).Merge(A.Trim(192385,192385),.75)+A.Trim(192386,199633)+F.Trim(199706,199706)+A.Trim(199635,201277)+F.Trim(201350,201350)+A.Trim(201279,201373)+F.Trim(201446,201446)+A.Trim(201375,0)+F.Trim(201488,0)+A.BlankClip(27)
  34.  
  35.  
  36. #FINAL ASSEMBLY
  37.  
  38. #Theatrical Version
  39. TheaterFull=part1+theater+part3
  40.  
  41. #DVD Version
  42. DVDFull=part1+DVD+part3
  43.  
  44.  
  45.  
  46. DVDFull
  47.  
  48.  
  49.  
  50. last.Letterbox(130,130,0,0)
  51.  
  52.  
  53.  
  54. #Median Script
  55.  
  56. Function Median1(clip input_1, clip input_2, clip input_3, string "chroma")
  57. {# median of 3 clips from Helpers.avs by G-force
  58.  
  59. chroma = Default(chroma,"process") #default is "process". Alternates: "copy first" or "copy second"
  60.  
  61. Interleave(input_1,input_2,input_3)
  62. chroma == "process" ? Clense(reduceflicker=false) : Clense(reduceflicker=false,grey=true)
  63. SelectEvery(3,1)
  64.  
  65. chroma == "copy first" ? last.MergeChroma(input_1) : chroma == "copy second" ? last.MergeChroma(input_2) : last
  66.  
  67. Return(last)
  68. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top