VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. Member
    Join Date
    May 2001
    Location
    USA
    Search Comp PM
    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.
    Quote Quote  
  2. There is nothing to deinterlace. It's a pretty hopeless mess IMO. Ditch it.
    Last edited by Sharc; 24th Jun 2025 at 05:17.
    Quote Quote  
  3. Member
    Join Date
    Dec 2005
    Location
    Finland
    Search Comp PM
    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.
    Image Attached Files
    Quote Quote  
  4. Member
    Join Date
    May 2001
    Location
    USA
    Search Comp PM
    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.
    Quote Quote  
  5. Member
    Join Date
    Dec 2005
    Location
    Finland
    Search Comp PM
    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")
    You can try the other modes also and see what looks best. After running that bit of script we now have the following sequence:



    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)
    The parameters instruct the filter to remove one frame out of every five and it will automatically pick one that most appears to be a duplicate. This brings the frame rate down to 4/5 of the original, i.e. from 29.97 to 23.976.

    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!
    Image Attached Thumbnails Click image for larger version

Name:	source.jpg
Views:	100
Size:	455.5 KB
ID:	87610  

    Click image for larger version

Name:	deblend.jpg
Views:	100
Size:	471.0 KB
ID:	87611  

    Last edited by ajk; 25th Jun 2025 at 02:22.
    Quote Quote  
  6. Try FixBlendIVTC() followed by TDecimate() in AviSynth:

    Code:
    LWLibavVideoSource("Sherrie Austin - Lucky In Love.vob") 
    FixBlendIVTC()
    TDecimate()
    It does have problems with the changing pattern near cuts though. And compression artifacts lead to artifacts in some of the unblending.
    Image Attached Files
    Quote Quote  
  7. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    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")
    2nd pass
    Code:
    d2vsource("C:\Users\davex\Desktop\avs_test\lucky1.d2v")
    exblend(mode=2)
    ov.txt contains
    Code:
    205
    260
    Image Attached Files
    Quote Quote  
  8. Member
    Join Date
    May 2001
    Location
    USA
    Search Comp PM
    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!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!