SHARE
TWEET

AviSynth for Schorman's SW HDTV - TESB

a guest May 29th, 2014 279 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Schorman's Star Wars DVD/HDTV Preservation - The Empire Strikes Back
  2.  
  3. #SOURCES
  4.  
  5. #German HDTV Source
  6. AVCSource("emp hd deu.dga").Crop(0,0,0,-8).AssumeFPS(23.976024)
  7. A=last.Trim(0,177173)+last.BlankClip(3)+last.Trim(177174,0)
  8.  
  9. #British HDTV Source
  10. B=AVCSource("emp hd eng.dga").Spline64Resize(1916,816).AddBorders(2,132,2,132).AssumeFPS(23.976024).Trim(1,0)
  11.  
  12. #Blu Ray Source
  13. C=AVCSource("emp brd.dga").AssumeFPS(23.976024).Tweak(bright=-2,coring=false).Trim(27,183185)
  14.  
  15. #crawl
  16. D=C.ConvertToRGB().Letterbox(0,0,1,0).ConvertToYV12().MergeChroma(StackHorizontal(C.Crop(0,0,-1918,0),StackVertical(C.CropBottom(948),B.AddGrain(sse2=true).Crop(0,132,0,-132),C.Crop(0,948,0,0)).Crop(2,0,0,0)))
  17.  
  18. #patches
  19. E=C.ConvertToRGB().Letterbox(0,0,1,0).ConvertToYV12().MergeChroma(Median1(A.Trim(0,183158),B,C).AddGrain(sse2=true))
  20.  
  21. #FINAL ASSEMBLY
  22.  
  23. A.BlankClip(50)+A.Trim(0,484)+D.Trim(485,3079)+A.Trim(3080,6252)+E.Trim(6253,6260)+A.Trim(6261,63199)+E.Trim(63200,63216)+A.Trim(63217,76109)+E.Trim(76110,76124)+A.Trim(76125,135843)+E.Tweak(bright=1,coring=false).Trim(135844,135876)+A.Trim(135877,137943)+E.Tweak(bright=-0.6,coring=false).Trim(137944,137972)+A.Trim(137973,150992)+E.Trim(150993,151015)+A.Trim(151016,176299)+E.Trim(176300,176300)+A.Trim(176301,176944)+E.Trim(176945,176945)+A.Trim(176946,177152)+E.Trim(177153,177176)+A.Trim(177177,178770)+E.Trim(178771,178777)+A.Trim(178778,182093)+E.Trim(182094,182094)+A.Trim(182095,182621)+E.Trim(182622,182633)+A.Trim(182634,183185)
  24.  
  25. last.letterbox(130,130,0,0)
  26.  
  27.  
  28. #MEDIAN SCRIPT
  29.  
  30. Function Median1(clip input_1, clip input_2, clip input_3, string "chroma")
  31. {# median of 3 clips from Helpers.avs by G-force
  32.  
  33. chroma = Default(chroma,"process") #default is "process". Alternates: "copy first" or "copy second"
  34.  
  35. Interleave(input_1,input_2,input_3)
  36. chroma == "process" ? Clense(reduceflicker=false) : Clense(reduceflicker=false,grey=true)
  37. SelectEvery(3,1)
  38.  
  39. chroma == "copy first" ? last.MergeChroma(input_1) : chroma == "copy second" ? last.MergeChroma(input_2) : last
  40.  
  41. Return(last)
  42. }
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