Advertisement
ANIMOUS

Untitled

Jul 12th, 2021
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. import vapoursynth as vs
  2. import fvsfunc as fvf
  3. import lvsfunc as lvf
  4. import sgvsfunc as sgf
  5. core = vs.get_core()
  6.  
  7. src = core.ffms2.Source('D:/E.N.D/Kimetsu no Yaiba Movie - Mugen Ressha-hen 2020 1080p Blu-ray Remux AVC DTS-HD MA 5.1-E.N.D.mkv')
  8. src = fvf.Depth(src, 32)
  9.  
  10. descale_a = lvf.scale.descale(src, height=855, kernel=lvf.kernels.Bilinear())
  11. descale_b = core.std.ShufflePlanes([descale_a, src], [0,1,2], vs.YUV)
  12. descale_c = fvf.Depth(descale_b, 16)
  13.  
  14. deband = core.neo_f3kdb.Deband(descale_c, range=16, y=70, cb=70, cr=70, grainy=40, grainc=40, dynamic_grain=False, output_depth=16)
  15. filtered = sgf.ReplaceFrames(descale_c, deband, mappings="[3251 3662][5636 5692][6480,6695][7278 7349][9950 9987][12850 13237][14382 14413][16288 16380][18008 18111][18234 18305][21522 21858][22071 22230][23801 23868][24437 24568][24790 24853][28984 29120][29436 29818][34690 34935][36075 36152][36787 36846][37655 37726][39236 39591][40729 40788][41200 41480][43905 43964][45055 45334][49103 49684][50442 50534][50898 51248][51661 52002][52149 52400][53373 53426][54631 54792][55411 55506][59814 61266][61294 61566][68774 68845][70344 70529][70704 70847][71124 71189][72214 72247][72953 73066][73372 73659][73802 74400][74569 74670][74952 75678][75970 76383][76477 76799][76938 77111][77328 77907][78279 78684][78815 79407][79480 80083][81528 81553][81691 81829][81870 82595][82701 85437][85592 85917][86040 86558][86746 87013][87718 87965][88329 88380][88731 88786][89784 89900][92756 92833][95415 95562][95677 95744][95853 95933][96006 96056][97168 97553][98516 98657][98865 98939][101095 101138][101307 101435][101460 101531][102155 102190][103394 103453][103572 103622][104021 104082][104358 104491][104808 104916][106022 106153][107145 107186][111056 111181][111470 111601][112715 112876][114200 114321][114437 114508][116271 116336][116605 116838][119417 119547][120384 120593][121311 121359][122108 122197][122240 122311][122535 122552][122641 122712][123530 123642][123682 123768][123939 124010][124358 124451][126133 126199][128435 128679][137431 137613][139947 140042][140752 140807][141629 141850][143541 143711][144458 144508][144707 144832][145101 145174][148726 148815][151492 151671][154195 154290][155923 155970][158248 158319][161301 161474]")
  16.  
  17. final = fvf.Depth(filtered, 8)
  18.  
  19. core.max_cache_size=1024
  20.  
  21. test_encode = sgf.SelectRangeEvery(final, every=1600, length=100, offset=1024)
  22.  
  23. test_encode.set_output()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement