trds

Untitled

Jun 30th, 2022
2,289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.74 KB | None | 0 0
  1. LoadPlugin("D:\Encode\DG\DGDecodeNV.dll")
  2. # Hybrid start
  3. baseclip=DGsource("D:\Encode\ironman2.dgi").crop(0,132,0,-132)
  4. sourceClip=BlankClip(-335, 1920, 1080, "YV12", 24000, 1001).KillAudio().crop(0,128,0,-136)+DGsource("D:\Encode\ger.dgi").crop(0,128,0,-136).Fixer(1,0,1,0)+BlankClip(64, 1920, 1080, "YV12", 24000, 1001).KillAudio().crop(0,128,0,-136)
  5. ReplaceFramesSimple(baseClip, sourceClip, mappings="[1793 2412][2610 2964][54018 54379][61218 61269]")
  6. # Hybrid end
  7.  
  8. # Dirty lines fixing start
  9. ConditionalFilter(last, luvBB_magic, "SceneType", "<", "1")
  10. ConditionalReader("D:\encode\scenes.txt", "SceneType")
  11.  
  12. function luvBB_magic (clip c) {
  13.  
  14. safe = c.Crop(0, 6, 0, -6)
  15. c.ConvertToYV24()
  16.  
  17. base1 = Crop(0, 6, 0, 0)
  18.  
  19. t1 = Crop(0, 0, 0, 1 - Height()).Tweak(cont=1.16)
  20. t2 = Crop(0, 1, 0, 2 - Height()).Tweak(cont=0.93)
  21. t3 = Crop(0, 2, 0, 3 - Height()).Tweak(cont=1.05)
  22. t4 = Crop(0, 3, 0, 4 - Height()).Tweak(cont=1.01)
  23. t5 = Crop(0, 4, 0, 5 - Height())
  24. t6 = Crop(0, 5, 0, 6 - Height()).Tweak(cont=1.03)
  25.  
  26. StackVertical(t1, t2, t3, t4, t5, t6, base1)
  27.  
  28. base2 = Crop(0, 0, 0, -6)
  29.  
  30. b1 = Crop(0, Height() - 1, 0, 0).Tweak(cont=1.16)
  31. b2 = Crop(0, Height() - 2, 0, -1).Tweak(cont=0.92)
  32. b3 = Crop(0, Height() - 3, 0, -2).Tweak(cont=1.03)
  33. b4= Crop(0, Height() - 4, 0, -3).Tweak(cont=0.99)
  34. b5 = Crop(0, Height() - 5, 0, -4).Tweak(cont=0.99)
  35. b6 = Crop(0, Height() - 6, 0, -5).Tweak(cont=1.01)
  36. StackVertical(base2, b6, b5, b4, b3, b2, b1)
  37.  
  38. ConvertToYV12()
  39.  
  40. Overlay(last, safe, x=0, y=6)
  41. return last
  42. }
  43. #Dirty lines fixing end
  44.  
  45. #Opening logo debanding start
  46. replaceframessimple(last, last.f3kdb(sample_mode=2, range=15, Y=110, dither_algo=3
  47. \ , dynamic_grain=false, grainY=30, grainC=40)
  48. \ , mappings="[131 884]")
  49. #Opening logo debanding start
Advertisement
Add Comment
Please, Sign In to add comment