VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Results 1 to 14 of 14
Thread
  1. Member
    Join Date
    Feb 2016
    Location
    Europe
    Search PM
    I have a PAL DVD (25 FPS) with interlacing problems. I don't know what the real problem is. Frame blending? Ghosting? We can see the effect in the capture when the girl moves.

    Image
    [Attachment 35760 - Click to enlarge]


    I want to know how to deinterlace the video with an Avisynth script (maybe with plugin Srestore, but I don't know how to use it)

    Any help would be appreciated
    Image Attached Files
    Quote Quote  
  2. Yadif(Mode=1)###or the better QTGMC
    Srestore()


    But it doesn't do all that good of a job as there's just a massive amount of field-blending in it.
    Quote Quote  
  3. Member
    Join Date
    Feb 2016
    Location
    Europe
    Search PM
    Thanks for your help.

    I put "yadif.dll" on the avisynth's plugins folder but I can't use the script. I have this error:

    Script error:there is no function named "Yadif"

    What should I do?
    Quote Quote  
  4. Originally Posted by Enrik View Post
    What should I do?
    Maybe read the included doc where you will see:

    Must be loaded with Load_Stdcall_plugin("yadif.dll") or LoadCplugin("yadif.dll") (not LoadPlugin !). Do not use autoloading.
    Quote Quote  
  5. Member
    Join Date
    Feb 2016
    Location
    Europe
    Search PM
    Thanks, but I am newbie and I don't know how to write an Avisynth script, sorry. I'm using Windows XP SP2 32 bits and I've tried this:

    Load_Stdcall_Plugin("C:\AviSynth\plugins\Yadif.dll ")Yadif(Mode=1)###or the better QTGMC
    Srestore()


    Result:

    Script error: Invalid arguments to function "Yadif"

    Then, I've tried this:

    LoadCplugin("C:\AviSynth\plugins\Yadif.dll")Yadif( Mode=1)###or the better QTGMC
    Srestore()


    Result:

    Script error: Invalid arguments to function "Yadif"

    Then:

    Load_Stdcall_Plugin("Yadif.dll")Yadif(Mode=1)###or the better QTGMC
    Srestore()


    Result:

    Script error: Invalid arguments to function "Yadif"

    Then:

    LoadCplugin("Yadif.dll")Yadif(Mode=1)###or the better QTGMC
    Srestore()


    Result:

    Script error: Invalid arguments to function "Yadif"

    Then:

    Load_Stdcall_Plugin("Yadif.dll")Yadif(Mode=1)
    Srestore()


    Result:

    Script error: Invalid arguments to function "Yadif"

    Then:

    Load_Stdcall_Plugin Yadif(Mode=1)
    Srestore()


    Result: Avisynth open failure: I don't know what "Load_Stdcall_Plugin" means

    How can I write the script?
    Quote Quote  
  6. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Load_Stdcall_plugin("c:\Program Files\AviSynth 2.5\plugins\other_path\yadif.dll")
    Yadif(mode=1)
    Quote Quote  
  7. Member
    Join Date
    Feb 2016
    Location
    Europe
    Search PM
    Thank you for your help.

    I used these scripts:

    SCRIPT 1:

    FFMpegSource2("C:\VIDEO2.vob")
    Load_Stdcall_plugin("c:\AviSynth\plugins\yadif.dll")
    Yadif(mode=1)


    SCRIPT 2:

    FFMpegSource2("C:\VIDEO2.vob")
    Load_Stdcall_plugin("c:\AviSynth\plugins\yadif.dll ")
    Yadif(Mode=1)###or the better QTGMC
    Srestore()


    I do not know if they really work because I got three errors when I load them, as I said in a post about resizing:

    This application has failed to start because d3dx9_30.dll was not found. Reinstall the application may fix that problem.

    This application has failed to start because MSVCP110.dll was not found. Reinstall the application may fix that problem.

    This application has failed to start because MSVCR110.dll was not found. Reinstall the application may fix that problem.


    Can anyone try these scripts? Do you see "VIDEO2" the same way I do? I still see the same ghosting on the video.

    Is it impossible to get rid of the massive amount of field-blending or ghosting on this video?
    Quote Quote  
  8. Originally Posted by Enrik View Post
    Thank you for your help.

    I used these scripts:

    SCRIPT 1:

    FFMpegSource2("C:\VIDEO2.vob")
    Load_Stdcall_plugin("c:\AviSynth\plugins\yadif.dll")
    Yadif(mode=1)
    Most people open DVD video using MPEG2Source. Read the docs included with the DGMPGDec package and try again. That's how I and many, if not most, people open DVD video.

    Is it impossible to get rid of the massive amount of field-blending or ghosting on this video?
    It'll be improved but I already told you it's impossible to completely remove it.
    Quote Quote  
  9. Member
    Join Date
    Feb 2016
    Location
    Europe
    Search PM
    I think it could be possible with McTemporaDenoise:

    FFMpegSource2("C:\VIDEO2.vob")
    Load_Stdcall_plugin("c:\AviSynth\plugins\yadif.dll")
    Yadif(mode=1, order=1)
    SRestore(frate=23.976, thresh=35)
    McTemporalDenoise(settings="very high")


    But when I try to load the script I get this error:

    Avisynth open failure:

    Import:UTF-8 source files are not supported, re-save script with ANSI encoding! : "Deblock_QED_MT2.avsi"

    I save on Notepad with ANSI and .avs, I don't understand where the problem is.
    Quote Quote  
  10. Originally Posted by Enrik View Post
    I save on Notepad with ANSI and .avs, I don't understand where the problem is.
    You saved what in ANSI? The message refers to Deblock_QED_MT2.avsi.

    I put a Deblock_QED mod in UTF-8 into my AviSynth script with an 'Import' line and didn't get that message. Strange. Maybe your AviSynth version is old?
    Quote Quote  
  11. Member
    Join Date
    Feb 2016
    Location
    Europe
    Search PM
    I have resolved the problem, all I had to do was delete the file Deblock_QED_MT2.avsi.

    Well, I've found here a similar case with ghosting (but with animation):

    https://forum.videohelp.com/threads/361206-Frame-Blending-Ghosting-Bad-Interlacing-Help

    I used the script by Jagabo with the video file "Trigun.m2v"

    Code:
    Mpeg2Source("C:\BC\Trigun.d2v", CPU=6, Info=3) 
    RequestLinear(rlim=50,clim=50)
    Load_Stdcall_plugin("c:\AviSynth\plugins\yadif.dll")
    Yadif(mode=1, order=1)
    Crop(10,2,-6,-0).AddBorders(8,2,8,0)
    SRestore(frate=23.976, thresh=35)
    McTemporalDenoise(settings="very high")
    Toon(0.5)
    But I get an error with RequestLinear, I don't know what RequestLinear is. So I decided to delete the line with ReaquestLinear:

    Code:
    Mpeg2Source("C:\BC\Trigun.d2v", CPU=6, Info=3) 
    Load_Stdcall_plugin("c:\AviSynth\plugins\yadif.dll")
    Yadif(mode=1, order=1)
    Crop(10,2,-6,-0).AddBorders(8,2,8,0)
    SRestore(frate=23.976, thresh=35)
    McTemporalDenoise(settings="very high")
    And the script works!!! The script seems to remove completely the ghosting on the video "Trigun". Then, I used a very similar script with my "VIDEO2":

    Code:
    Mpeg2Source("C:\VIDEOS\VIDEO2.d2v", CPU=6, Info=3)
    Load_Stdcall_plugin("c:\AviSynth\plugins\yadif.dll")
    Yadif(mode=1, order=1)
    SRestore(frate=23.976, thresh=35)
    McTemporalDenoise(settings="very high")
    The result is not bad but I donīt know what parameters of SRestore (or McTemporalDenoise) should I try in order to improve the final result like in the video (Trigun) of the other thread. Maybe with a higher frame rate? with other thresh? I think the original DVD is a bad conversion NTSC-PAL
    Quote Quote  
  12. Member
    Join Date
    Feb 2016
    Location
    Europe
    Search PM
    Let's go with another situation, a transition.

    On the image we can see two shots at the same time (due to the interlace, this is not a dissolve. You can see
    it on the original "video3", frame by frame):

    Image
    [Attachment 36082 - Click to enlarge]


    And, of course, there is a massive amount of ghosting when the woman moves:

    Image
    [Attachment 36083 - Click to enlarge]


    We can see "the double woman" better here:

    Image
    [Attachment 36084 - Click to enlarge]


    With the other situation, the girl on the bed, the script I used is almost good:

    Code:
    Mpeg2Source("C:\VIDEO\VIDEO3.d2v", CPU=6, Info=3)
    Load_Stdcall_plugin("c:\AviSynth\plugins\yadif.dll")
    Yadif(mode=1, order=1)
    SRestore(frate=23.976, thresh=35)
    McTemporalDenoise(settings="very high")
    But now is almost useless. Do you have any other ideas on how I could improve it? (of course, I know it is probably impossible to remove the ghosting effect 100%)
    Image Attached Files
    Quote Quote  
  13. You'll get blending at scene changes even if the script otherwise works pretty well.

    Something like this added after the SRestore line:

    A=Last
    prev = A.selectevery(1,-1)
    next = A.selectevery(1,1)
    SCclean = A.SCSelect(next,prev,A,dfactor=2.0) # 2.0 ~ 5.0
    return(SCclean)

    Works to FreezeFrame the blending, but it will do it on both sides of the scene change, whether it's blended or not. And it might do it from time to time elsewhere as well. Unless you're willing to go through the video frame-by-frame (as I do), you may as well not even worry about it.

    To work, the code above needs the RemoveDirt.dll.

    Your source has way too much blending for any unblender to remove it all. About all you can hope for is that it plays smoothly.
    Quote Quote  
  14. Member
    Join Date
    Feb 2016
    Location
    Europe
    Search PM
    Thanks a lot, manono. I like the result.
    Quote Quote  



Similar Threads