We are trying to remove ghosting from this video.
http://transfer.archivete.am/flKRZ/1.mp4
If you skip between the video frames you can see there is some ghosting of the frames as seen in this picture.
Using ChatGPT to look for a command to use to get rid of it we have got less ghosting to appear by making use of a command in ffmpeg
Yet ghosting still remains.Code:ffmpeg -i 1.mkv -vf "fieldmatch,decimate" -c:v libx264 -crf 18 -preset slow 2.mkv
Ive tried multiple filters generated with ChatGPT and this is the closest, but we want there to be more improvement
Any ideas would be appreciated
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 13 of 13
Thread
-
-
This is a standard PAL to NTSC field blend conversion
Use avisynth or vapoursynth filter: QTGMC+Srestore
You can still use ffmpeg to do the encoding and/or muxing part, but ffmpeg doesn't have any similar filters to srestore
Code:FFVideoSource("1.mp4") AssumeFPS(30000,1001) AssumeTFF() QTGMC(preset="faster") SRestore()
-
Im confused how to set up AviSynth, don't I need VirtualDub and a ton of plugin
-
Not quite a ton but it will feel like it after you've finished faffing around. You do need Virtual Dub; that's to open the AVISynth script (as shown above) that is in text file format (just with the "avs" extension. If you can wait a couple of days, I'm about to release a guide and a package with all the files you need to run common AVISynth scripts.
-
I figured it out by installing qtgmc using avsrepogui plus using virtualdub2, ghosting is gone now. Thank you. I want to make sure the video is deinterlaced using yadif2x when I do it. I tried adding yadifmod2(order=-1, field=-1, mode=0) which Im not sure is working. Also, is it possible to save this as the original format? I cant seem to find a mpeg2 vfw codec
-
-
yadif or yadifmod will produce more artifacts than QTGMC
If you use yadifmod instead of QTGMC; it has to using mode=1, order=1 , then srestore .
If you don't use srestore, you will get pretty much the same blends as before
Avisynth frameserves decoded (uncompressed) data - so you generally re-encode. Saving it as mpeg2 will not be ideal, because mpeg2 not a very modern or high compression format . You'd need a lot of bitrate (very large filesizes) for similar quality to a modern format like h264/h265/av1
If you need mpeg2 (e.g. maybe you need to author a PAL DVD) , you can use hcenc or ffmpeg. But hcenc is x86, and ffmpeg's mpeg2 encoder produced low quality
The output of the script is the original 25 fps, unique frames. So a pan would be perfectly smooth when viewing it frame by frame.
To achieve (I'm assuming you want 60000/1001 , or 59.94 ; not 60/1) . You can either (a) duplicate frames in a pattern - not smooth, introduces judder, (b) blend frames (counter productive, since your main issue was blends in the first place), or use (c) motion interpolation or optical flow (synthesize new frames, there are "AI" method or machine learning now) - but they can produce artifacts - ie. They all have pros/cons .
Similar Threads
-
Frame blending/ghosting - how do I remove it from a webrip video
By MTRX in forum RestorationReplies: 7Last Post: 25th Sep 2024, 15:36 -
Interlaced PAL DVD with tons of blended frames/ghosting. Can this be fixed?
By Bjomesphat in forum RestorationReplies: 0Last Post: 19th Nov 2023, 10:03 -
How do I remove ghosting& screendoor/canvas effect from a DVD(cartoon show)
By dinoman in forum Newbie / General discussionsReplies: 15Last Post: 1st Nov 2021, 20:11 -
remove heavy ghosting
By phelissimo_ in forum RestorationReplies: 6Last Post: 27th Apr 2021, 19:47 -
Remove halo/ghosting
By semel1 in forum Newbie / General discussionsReplies: 11Last Post: 15th Feb 2021, 17:50