Sample clip - https://mega.nz/file/EfMG0KKY#kpUVgn4E3-3v-Js0kHkhVguI_ztuaU-zly6cIaxS3ss
I've been using FFMPEG to attempt a progressive output of what appears to be a hard telecine source. Three utilities flag this as a BFF interlace but ffmpeg "idet" indicates only about 1% as BFF/TFF (26/4). After about 30 attempts of wildly different combinations of attempted deinterlacing, detelecining (hard & soft), yadif, fieldmatching, including 20-switch scripts the best I can do is get it reduced to 2+2 with minor ghosting.
I'm hoping someone can show me where I'm overlooking something simple.
+ Reply to Thread
Results 1 to 8 of 8
-
-
There is nothing to deinterlace. It's a pretty hopeless mess IMO. Ditch it.
Last edited by Sharc; 24th Jun 2025 at 05:17.
-
This doesn't seem to be an interlaced source, it's progressive 29.97 with blended frames. Assuming it was shot on film, it needs to be brought back down to 23.976. I don't know if you can do that with FFMPEG by itself, but an AviSynth script using Srestore can get rid of at least the majority of the blends. Quick test attached.
-
Appreciate the replies!
ajk - You actually did a fine job on that clip. As you imply, not perfect, but a very acceptable output. Seems to blend artifact for a single frame only at select scene transitions. Unfortunately it doesn't seem to hold true to a sequence. I'm tempted to ask to borrow the script you used but I've not tinkered with Avisynth since last using VirtualDubMod more than 15 years ago. -
Sure, I can go through the process in a bit more detail. So what we start with is a sequence such as this:
We've got a clean frame "A", then another "B", but then what follows are a pair of blended frames. I've marked these as "B+C" and "C+D". The last frame is again clean, "D". So we need to extract frame "C", which currently only exists as a "ghost" in the blended frames. Srestore() has a post-processing mode for this purpose and that is actually all we need, since the video is not interlaced.
Code:Srestore(omode="pp2")
Frame "C" has been extracted from the blended frames with some clever substraction using the clean "B" and "D" frames for reference. Observe for example the man's left hand as it approaches the bottom of the frame.
All that remains is to remove one of the now duplicated "D" frames to achieve smooth motion. TDecimate() is good for this purpose:
Code:TDecimate(cycleR=1, cycle=5)
Some blends will inevitably remain after this processing. I don't know for sure but I suspect the editing for the video has been done after it was transferred from film. This means that the blend pattern shifts at most scene changes, and there are a lot of scene changes in music videos. You could manually go in and replace the remaining blended frames with other means, e.g. using motion interpolation to recreate the missing frames but this is a topic in itself.
Now as for getting started with AviSynth itself, it can indeed seem intimidating. Fortunately though the filters needed here are not particularly bad in their dependencies, probably about 5-6 things need to be downloaded. The filters are described here:
http://avisynth.nl/index.php/Srestore
http://avisynth.nl/index.php/TIVTC/TDecimate
Additionally you will need a source filter for importing the video into AviSynth, in this case I used FFMpegSource() since I had it installed, but there are others that may work even better with .vob/mpeg2 sources.
http://avisynth.nl/index.php/FFmpegSource
If you install AviSynth+ and those filters it shouldn't be too hard to get this video sorted out.
I hope this helps!Last edited by ajk; 25th Jun 2025 at 02:22.
-
Try FixBlendIVTC() followed by TDecimate() in AviSynth:
Code:LWLibavVideoSource("Sherrie Austin - Lucky In Love.vob") FixBlendIVTC() TDecimate()
-
It must be my turn now! I tried exblend:
1st pass
Code:d2vsource("C:\Users\davex\Desktop\avs_test\lucky1.d2v") exblend(mode=1,show=1,override="c:\users\davex\desktop\ov.txt")
Code:d2vsource("C:\Users\davex\Desktop\avs_test\lucky1.d2v") exblend(mode=2)
Code:205 260
-
Much appreciate the replies!
ajk - The explanations of insight and process are very welcomed. Yes, it definitely helps.
jagabo & davexnet - Those are quite good outputs. Surprising how well some of those filters work with what look to be default settings.
All of you have definitely supplied me with a bit more knowledge, insight and tools to accomplish my task(s). Many thanks!
Similar Threads
-
Deinterlace on the fly...
By Bartoloni in forum Newbie / General discussionsReplies: 4Last Post: 12th May 2025, 11:22 -
Help with VHS deinterlace
By Danic in forum Video ConversionReplies: 24Last Post: 15th Jul 2023, 23:24 -
Deinterlace or not?
By leed17 in forum Newbie / General discussionsReplies: 5Last Post: 30th Sep 2022, 17:42 -
FFMPEG Deinterlace
By Tom4 in forum EditingReplies: 3Last Post: 2nd Jun 2022, 03:28 -
deinterlace help
By maudit in forum Newbie / General discussionsReplies: 7Last Post: 13th May 2022, 22:40