VideoHelp Forum
+ Reply to Thread
Results 1 to 8 of 8
Thread
  1. Hi, these 3 samples:

    https://www.dropbox.com/sh/bya3hfrw8887xgw/AAAB3JSsTKs7Wc7qp06vN1UXa?dl=0

    number 1 and 2 seems they use the same interlace mode. 3 frames are ok + 3 interlaced.
    number 3 seems it has 5 frames interlaced + 1 frame ok.

    in both cases I have tried all the commands I've learned until now, but still cant fix them correctly.
    please help. I just need the 2 appropriate commands for these 3 samples.
    Quote Quote  
  2. 1 and 3 are field blended PAL to NTSC conversions. Use

    Code:
    AssumeTFF()
    Yadif(mode=1) # or QTGMC()
    SRestore()
    to restore the progressive 25p frames.

    2 is more complicated. It will take something different...

    <edit>
    Try this with #2:

    Code:
    AssumeTFF()
    Yadif(mode=0)
    TDecimate(Cycle=6, CycleR=1)
    Spline36Resize(720,288)
    QTGMC(InputType=2)
    nnedi3_rpow2(4, cshift="Spline36Resize", fwidth=1920, fheight=1080)
    That will leave you with 24.975 fps. Use TDecimate(mode=2, rate=25) for 25p.

    </edit>
    Last edited by jagabo; 3rd May 2022 at 23:36.
    Quote Quote  
  3. ok thanks, I'm trying right now, as soon as I use the QTGMC() command,
    avspmod hangs, get stuck in the "wait for frame" window..
    it doesn't crash, it just loading each frame forever or so..

    It seems Yadif is not recognized as a command.


    about the 3rd sample:
    the same, there's no function called Yadif..
    also, why "Spline36Resize(720,288)" in the middle of the script?

    I always used QTGMC(), but this time it makes all loading for long time..

    https://www.dropbox.com/s/zkhhj7y1a8a6brq/stuck.png?dl=0
    Last edited by maudit; 4th May 2022 at 05:14.
    Quote Quote  
  4. http://avisynth.nl/index.php/Yadif

    You may need to use LoadCPlugin("C:\path\to\yadif.dll") in your script. Or try yadifmod2 instead:

    http://avisynth.nl/index.php/Yadifmod2
    Quote Quote  
  5. hi jagabo, sry for the delay.

    just to make all clear:
    samples 1 and 2 have the same interlace mode.
    the number 3 has a different one.

    anyway I've tried the script you mentioned:

    AssumeTFF()
    Yadifmod2(mode=1)
    SRestore()

    and it works good for 1 and 2.
    then I tried the same script with the sample 3 and seems it works too.

    thanks dude, you have been very precious.
    Quote Quote  
  6. No, 1 and 3 are the same. 2 is different. Here's what 2 looks like with the script I gave in post #2 (using TDecimate(mode=2, rate=25)):
    Image Attached Files
    Quote Quote  
  7. Originally Posted by jagabo View Post
    No, 1 and 3 are the same. 2 is different. Here's what 2 looks like with the script I gave in post #2 (using TDecimate(mode=2, rate=25)):
    hi jagabo,

    sorry for the delay, all these instructions make the process very slow, only for change frame it takes 10s or more, anyway..
    ..you're right 1 and 3 are the same, 2 is different..

    I'll use this script for the sample 1:

    Code:
    AssumeTFF()
    Yadifmod2(mode=1)
    SRestore()
    
    crop(2,10,-2,-6)
    bbmod(2,2,2,2,128,8)

    and the same but with this crop for the sample 3

    Code:
    crop(0,2,-0,-2)
    bbmod(2,2,0,0,128,8)
    only one question: better to put crop and bbmod lines before or after the deinterlace code?
    or is the same?


    -----------------


    about the sample 2, it is quite complicated, I don't pretend to understand it. I just copy and paste it.
    but please tell me if the code below is correct, specifically are both the Spline36Resize parameters correct?
    I don't know how this resolution has been calculated but maybe have I to change (720,288) with other values?
    again: better to put crop and bbmod lines before or after the deinterlace code?

    Code:
    crop(20,22,-16,-30)
    bbmod(2,2,2,2,128,8)
    
    AssumeTFF()
    Yadifmod2(mode=0)
    TDecimate(mode=2, rate=25)
    Spline36Resize(720,288)
    QTGMC(InputType=2)
    nnedi3_rpow2(4, cshift="Spline36Resize", fwidth=1884, fheight=1028)
    thanks
    Quote Quote  
  8. Originally Posted by maudit View Post
    about the sample 2, it is quite complicated, I don't pretend to understand it. I just copy and paste it.
    but please tell me if the code below is correct, specifically are both the Spline36Resize parameters correct?
    I don't know how this resolution has been calculated but maybe have I to change (720,288) with other values?
    again: better to put crop and bbmod lines before or after the deinterlace code?

    Code:
    crop(20,22,-16,-30)
    bbmod(2,2,2,2,128,8)
    
    AssumeTFF()
    Yadifmod2(mode=0)
    TDecimate(mode=2, rate=25)
    Spline36Resize(720,288)
    QTGMC(InputType=2)
    nnedi3_rpow2(4, cshift="Spline36Resize", fwidth=1884, fheight=1028)
    The reason I resized to 720x288 was because the video appeared to have originally been 576 line PAL but it had been deinterlaced with a "discard field" algorithm. That left it with 288 lines (the later resized). So I was returning it to the original size before cleaning it with QTGMC. Then I scaled it back up to 1920x1080. I recommend you crop at the end to avoid any confusion.

    Regarding what the script does: Yadifmod2() is used to deinterlace the video. TDecimate() to discard duplicate frames, restore the original 25 fps. Spline36Resize() restores the original PAL field size. QTGMC() is used to clean up the jaggy, flickery edges. nnedi3_rpow2() is used to scale back up to HD.
    Last edited by jagabo; 14th May 2022 at 11:37.
    Quote Quote  



Similar Threads

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