Is there a filter that can remove such comets? They occur on the top field, relatively small on the bottom field. I tried the DePulse filter, but managed to achieve about a 50% reduction.
+ Reply to Thread
Results 1 to 26 of 26
Thread
-
-
One possible workaround is to use only the good field:
Code:LWLibavVideoSource("out.m2ts") QTGMC(FPSDivisor=2) # lossless and sourcematch might help here
Code:LWLibavVideoSource("out.m2ts") QTGMC(FPSDivisor=2) # lossless and sourcematch might help here InterFrame(GPU=false, cores=4)
Code:LWLibavVideoSource("out.m2ts") QTGMC(FPSDivisor=2) # lossless and sourcematch might help here DePulse(whatever) InterFrame(cores=4)
-
InterFrame:
Script error: There is no function named 'SVSuper'.
(C:IProgram Files (x86)/AviSynth+/plugins64+/lnterFrame2.avsi, line 152)
(CzlProgram Files (x86)/AviSynth+/plugins64+/lnterFrame2.avsi, line 58)
Anyway... I checked the whole video. It won't be easy though. Sometimes comets are in the top field and sometimes in the bottom field depending on the scene, so they are probably caused by the source camera. -
SVSuper comes with the SVPFlow package.
https://us.cnn.com/videos/business/2023/05/18/guy-fieri-celebrity-chef-food-politics-c...-cprog-vpx.cnn
There might be a way to automatically detect which field is bad and switch accordingly. If you can provide a clip that switches a few times I'll take a look. -
-
Here's my first attempt. It works most of the time but there are a few shots where it's not so good.
Code:LWLibavVideoSource("out3.mpg") QTGMC(preset="fast", lossless=1) even = SelectEven() odd = SelectOdd() ConditionalFilter(Subtract(even, odd), even, odd, "AverageLuma", "greaterthan", "126.0", show=false) # use show=true to see stats # follow up with DePulse and motion interpolation #StackHorizontal(even, odd, last) # enable this line if you want to see the two candidates and the chosen frame side by side (even, odd, chosen)
-
Good idea. I've done some tweaking, but I still don't know how to make the ConditionalFilter pick a brighter frame.
Code:#LWLibavVideoSource("out3.mpg") ffms2("out3.mpg") QTGMC(preset="fast", lossless=1) even = SelectEven() odd = SelectOdd() #my even1 = crop(even,8,0,20,576) odd1 = crop(odd,8,0,20,576) even1 = coloryuv(even1,gamma_y=2000) odd1 = coloryuv(odd1,gamma_y=2000) ConditionalFilter(Subtract(even1, odd1), even, odd, "AverageLuma", "greaterthan", "126.0", show=true) # use show=true to see stats #ConditionalFilter(Subtract(even, odd), even, odd, "AverageLuma", "greaterthan", "126.0", show=true) # use show=true to see stats StackHorizontal(even1, odd1, last) # enable this line if you want to see the two candidates and the chosen frame side by side (even, odd, chosen) #StackHorizontal(even, odd, last) # enable this line if you want to see the two candidates and the chosen frame side by side (even, odd, chosen)
-
Here's something that works better:
Code:LWLibavVideoSource("out3.mpg") t_even = SeparateFields().SelectEven().mt_edge(mode="0 -1 0 0 2 0 0 -1 0", thy1=25, thy2=25, chroma="-128") t_odd = SeparateFields().SelectOdd().mt_edge(mode="0 -1 0 0 2 0 0 -1 0", thy1=25, thy2=25, chroma="-128") #Return(StackHorizontal(t_even.ScriptClip("Subtitle(String(AverageLuma))"), t_odd.ScriptClip("Subtitle(String(AverageLuma))"))) # for analysis QTGMC(preset="fast", lossless=1) even = SelectEven() odd = SelectOdd() ConditionalFilter(Subtract(t_even, t_odd), even, odd, "AverageLuma", "lessthan", "126.0", show=false) #StackHorizontal(even, odd, last) # for analysis
Last edited by jagabo; 19th May 2023 at 11:51. Reason: fixed typo on frame number, added video sample
-
-
SVSmoothFps no longer requires the url string. In Interframe2.avsi (version 2.8.2) on line 156 remove the url argument from the call to SVSmoothFps. Ie change:
Code:smooth_video = SVSmoothFps(Input, Super, Vectors, SmoothString, url="www.svp-team.com", mt=Cores)
Code:smooth_video = SVSmoothFps(Input, Super, Vectors, SmoothString, mt=Cores)
-
Thanks.
I tested it, but the result is quite poor compared to VEAI.
https://imgsli.com/MTgxMjc4 -
Interframe defaults to blending when it doesn't find a lot of motion vectors. I would have expected better from a simple panning shot like that. From what I've seen (I've never used it, only seen samples) VEAI is generally better.
-
RIFE is probably the best overall for interpolation. There is an avisynth version that runs on NCNN/Vulkan .
http://avisynth.nl/index.php/RIFE
https://github.com/Asd-g/AviSynthPlus-RIFE/releases/
If you have Nvidia card, vapoursynth tensor or cuda version recommended, it can be 1-4x faster under Tensor
SVP uses RIFE too now. AVS version of SVP is using older non RIFE version
https://www.svp-team.com/wiki/RIFE_AI_interpolation -
Last edited by rgr; 25th May 2023 at 11:08.
-
-
Put the models folder inside the plugins folder where you have rife.dll:
[Attachment 71235 - Click to enlarge]
Inside that folder there should be many other folders that contain the model data files.
After setting up the models folder... RIFE in AviSynth requires planar RGB32. So call it with:
Code:ConvertToPlanarRGB().ConvertBits(32).Rife(gpu_thread=1).ConvertBits(8).ConvertToYV12()
Last edited by jagabo; 25th May 2023 at 09:49.
-
Which one should I download?
https://github.com/Asd-g/AviSynthPlus-RIFE/tree/main/models
Is it the same as Flowframes? -
I have all of them in my models folder. The default is rife_v2.3. By the way, this is the first time I've used it.
-
https://github.com/Asd-g/AviSynthPlus-RIFE/releases/tag/1.0.0 comes with all the models, so downloading v1.0.0 and taking the models from there might be more convenient than downloading them one by one.
-> okay forget that, Asd-g seems to want users to download them from the folder,..users currently on my ignore list: deadrats, Stears555 -
Download the whole project as a zip.
(https://github.com/Asd-g/AviSynthPlus-RIFE/tree/main -> Code -> Download as zip)
users currently on my ignore list: deadrats, Stears555 -
When converting to RGB float, avsresize (zimg library) is about 2x faster in benchmarks if you have AVX2 . Internal avisynth ConvertToXX /Convertbits functions are not as optimized. (Most vpy ported machine learning projects to avisynth need RGB float)
Code:blankclip(10000,1920,1080, "YV12") z_ConvertFormat(pixel_type="RGBPS", colorspace_op="709:709:709:l=>rgb:709:709:f") #fastest #ConvertToPlanarRGB(matrix="rec709").ConvertBits(32) #slower #ConvertBits(32).ConvertToPlanarRGB(matrix="rec709") #slowest
-
-
I put the rife-v2.3 folder in the models folder (in plugin64+). No longer 'no models error' but: 'System Exception -- Access Violation'
ffms2("10000000_924752528810545_132584178015633738 9_n.mp4")
convertbits(bits=32)
ConvertToPlanarRGBA(matrix="rec709")
RIFE() -
Did you fulfill the requirements list ? Especially the Microsoft VisualC++ Redistributable Package 2022 ?
http://avisynth.nl/index.php/RIFE#Requirements -
Similar Threads
-
Fixing Comets
By Andreselos in forum RestorationReplies: 13Last Post: 28th Jul 2022, 18:22 -
Any new drop out sripts
By mammo1789 in forum RestorationReplies: 2Last Post: 2nd May 2021, 23:45 -
which filters to remove dropout or comets, and where get them
By spiritgumm in forum RestorationReplies: 13Last Post: 24th Feb 2021, 21:02 -
Create a drop shadow as well as a transparent drop shadow?
By Bass_Soul in forum SubtitleReplies: 0Last Post: 26th Nov 2020, 00:28 -
Fixing Comets
By Okiba in forum RestorationReplies: 20Last Post: 19th Nov 2020, 00:56