VideoHelp Forum




+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 49 of 49
  1. Originally Posted by Selur View Post
    Code:
    A2 = last
    A2 = A2.QTGMC(Preset="slow", FPSDivisor=2)
    TDeint(edeint=A2,emask=TMM(mode=0),slow=2,chroma=true,MI=80,full=false,cthresh=9)
    looks fine here
    Thank you very much, this code surely works tremendously fine on my source
    Quote Quote  
  2. I've put my script this way in order to apply different filters to different section of the movie.

    Code:
    LoadPlugin("D:\Program Files\Megui\tools\dgindex\DGDecode.dll")
    v = DGDecode_mpeg2source("E:\yazhi\s\Raintree.County.1957.DVDRip.x264.AC3.d2v")
    
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\TIVTC.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\mvtools2.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\addgrainc.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\MaskTools2\mt_masktools-25.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\nnedi3.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\RemoveGrain\RemoveGrain.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\RemoveGrain\Repair.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\TIVTC.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\Average\src\Release\Average.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\VerticalCleaner\VerticalCleaner.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\fft3dfilter.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\dfttest.dll")
    Import("D:\Program Files\Megui\tools\avisynth_plugin\QTGMC-3.32.avs")
    Import("D:\Program Files\Megui\tools\avisynth_plugin\SRestore.avs")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\Film_Restoring\scripts\plugins\Deflicker.dll")
    Loadplugin("D:\Program Files\Megui\tools\avisynth_plugin\Film_Restoring\scripts\plugins\Depan.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\Film_Restoring\scripts\plugins\DepanEstimate.dll")
    Loadplugin("D:\Program Files\Megui\tools\avisynth_plugin\Film_Restoring\scripts\plugins\removegrain.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\Film_Restoring\scripts\plugins\removedirt.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\Film_Restoring\scripts\plugins\MVTools.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\Film_Restoring\scripts\plugins\MVTools2.dll")
    Loadplugin("D:\Program Files\Megui\tools\avisynth_plugin\Film_Restoring\scripts\plugins\warpsharp.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\Film_Restoring\scripts\plugins\autolevels_06.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\Film_Restoring\scripts\plugins\Motion_06Dec05B.dll")
    Import("D:\Program Files\Megui\tools\avisynth_plugin\Film_Restoring\scripts\plugins\03_RemoveDirtMC.avs")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\MaskTools2\mt_masktools-25.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\MaskTools.dll")
    Import("D:\Program Files\Megui\tools\avisynth_plugin\Masked_DHA.avs")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\EEDI2.dll")
    
    vid1 = v.trim(0,123967).AssumeTFF().QTGMC(Preset="fast", SourceMatch=2, InputType=0, ProgSADMask=0, sharpness=0.2, TR0=2, TR1=0, TR2=0, MatchEdi2="Bob", MatchEnhance=0.8, Denoiser="fft3dfilter", NoiseProcess=2, EZKeepGrain=1.0, Sigma=15, GrainRestore=0.4, NoiseRestore=0.2, NoiseDeint="Generate", StabilizeNoise=true).Merge(SelectEven(),SelectOdd()).RemoveDirtMC(30,false).Masked_DHA() 
    vid2 = v.trim(123968,124027).AssumeTFF().TFM().QTGMC(Preset="fast", SourceMatch=2, InputType=0, ProgSADMask=0, sharpness=0.2, TR0=2, TR1=0, TR2=0, MatchEdi2="Bob", MatchEnhance=0.8, Denoiser="fft3dfilter", NoiseProcess=2, EZKeepGrain=1.0, Sigma=15, GrainRestore=0.4, NoiseRestore=0.2, NoiseDeint="Generate", StabilizeNoise=true).Merge(SelectEven(),SelectOdd()).RemoveDirtMC(30,false).Masked_DHA()
    vid3 = v.trim(124028,239355).AssumeTFF().QTGMC(Preset="fast", SourceMatch=2, InputType=0, ProgSADMask=0, sharpness=0.2, TR0=2, TR1=0, TR2=0, MatchEdi2="Bob", MatchEnhance=0.8, Denoiser="fft3dfilter", NoiseProcess=2, EZKeepGrain=1.0, Sigma=15, GrainRestore=0.4, NoiseRestore=0.2, NoiseDeint="Generate", StabilizeNoise=true).Merge(SelectEven(),SelectOdd()).RemoveDirtMC(30,false).Masked_DHA()
    vid1 ++ vid2 ++ vid3
    
    EEDI2().Spline36Resize(width,height).turnleft().EEDI2().Spline36Resize(height,width).turnright()
    
    crop(12, 80, -14, -76)
    
    #resize
    #denoise
    But MeGUI report error:



    Got no idea what has been wrong since I've followed the structions in this post.
    Quote Quote  
  3. problem is that SelectEven() /SelectOdd()is fed with the default parameter (last as clip)
    -> you can't write it like that

    replacing:
    Code:
    vid1 = v.trim(0,123967).AssumeTFF().QTGMC(Preset="fast", SourceMatch=2, InputType=0, ProgSADMask=0, sharpness=0.2, TR0=2, TR1=0, TR2=0, MatchEdi2="Bob", MatchEnhance=0.8, Denoiser="fft3dfilter", NoiseProcess=2, EZKeepGrain=1.0, Sigma=15, GrainRestore=0.4, NoiseRestore=0.2, NoiseDeint="Generate", StabilizeNoise=true).Merge(SelectEven(),SelectOdd()).RemoveDirtMC(30,false).Masked_DHA()
    vid2 = v.trim(123968,124027).AssumeTFF().TFM().QTGMC(Preset="fast", SourceMatch=2, InputType=0, ProgSADMask=0, sharpness=0.2, TR0=2, TR1=0, TR2=0, MatchEdi2="Bob", MatchEnhance=0.8, Denoiser="fft3dfilter", NoiseProcess=2, EZKeepGrain=1.0, Sigma=15, GrainRestore=0.4, NoiseRestore=0.2, NoiseDeint="Generate", StabilizeNoise=true).Merge(SelectEven(),SelectOdd()).RemoveDirtMC(30,false).Masked_DHA()
    vid3 = v.trim(124028,239355).AssumeTFF().QTGMC(Preset="fast", SourceMatch=2, InputType=0, ProgSADMask=0, sharpness=0.2, TR0=2, TR1=0, TR2=0, MatchEdi2="Bob", MatchEnhance=0.8, Denoiser="fft3dfilter", NoiseProcess=2, EZKeepGrain=1.0, Sigma=15, GrainRestore=0.4, NoiseRestore=0.2, NoiseDeint="Generate", StabilizeNoise=true).Merge(SelectEven(),SelectOdd()).RemoveDirtMC(30,false).Masked_DHA() vid1 ++ vid2 ++ vid3
    with in example:
    Code:
    v = v.AssumeTFF()
    vid1 = v.trim(0,123967)
    vid2 = v.trim(123968,124027).TFM()
    vid3 = v.trim(124028,239355)
    vid1 ++ vid2 ++ vid3
    QTGMC(Preset="fast", SourceMatch=2, InputType=0, ProgSADMask=0, sharpness=0.2, TR0=2, TR1=0, TR2=0, MatchEdi2="Bob", MatchEnhance=0.8, Denoiser="fft3dfilter", NoiseProcess=2, EZKeepGrain=1.0, Sigma=15, GrainRestore=0.4, NoiseRestore=0.2, NoiseDeint="Generate", StabilizeNoise=true)
    Merge(SelectEven(),SelectOdd())
    RemoveDirtMC(30,false)
    Masked_DHA()
    should work
    Quote Quote  
  4. Thank you, it works perfectly well
    Quote Quote  
  5. May I ask a further question?

    If I find that frame 123967 and frame 123968 are same, how could I remove one of them? Should these two be regarded as duplicate frames? I just want to remove the certain frame 123968, just this one frame.
    Quote Quote  
  6. since it's at the end of your 1st trim:
    vid1 = v.trim(0,123967)
    simply use
    vid1 = v.trim(0,123966)
    instead
    Quote Quote  
  7. Originally Posted by xuguang_he View Post
    Originally Posted by Selur View Post
    Code:
    A2 = last
    A2 = A2.QTGMC(Preset="slow", FPSDivisor=2)
    TDeint(edeint=A2,emask=TMM(mode=0),slow=2,chroma=true,MI=80,full=false,cthresh=9)
    looks fine here
    Thank you very much, this code surely works tremendously fine on my source
    It left a lot of small comb artifacts when I tried it. And near horizontal edges weren't as smooth.
    Quote Quote  
  8. since it's at the end of your 1st trim:
    vid1 = v.trim(0,123967)
    simply use
    vid1 = v.trim(0,123966)
    instead
    This works fairly fine, thanks.
    But for a few duplicate frames which are not at the edge of my trim part, how could I clear them out? Just a few, not much.
    Quote Quote  
  9. Originally Posted by xuguang_he View Post
    May I ask a further question?

    If I find that frame 123967 and frame 123968 are same, how could I remove one of them? Should these two be regarded as duplicate frames? I just want to remove the certain frame 123968, just this one frame.
    Keep in mind that simply removing the frame will change the runtime of the video. If you mux with the original audio the video and audio will no longer be in sync.
    Quote Quote  
  10. But for a few duplicate frames which are not at the edge of my trim part, how could I clear them out?
    -> http://avisynth.org/mediawiki/DeleteFrame
    Quote Quote  
  11. Originally Posted by jagabo View Post
    Originally Posted by xuguang_he View Post
    Originally Posted by Selur View Post
    Code:
    A2 = last
    A2 = A2.QTGMC(Preset="slow", FPSDivisor=2)
    TDeint(edeint=A2,emask=TMM(mode=0),slow=2,chroma=true,MI=80,full=false,cthresh=9)
    looks fine here
    Thank you very much, this code surely works tremendously fine on my source
    It left a lot of small comb artifacts when I tried it. And near horizontal edges weren't as smooth.
    I may haven't noticed that
    But to be honest, TFM() seems more simple. Especially when I do trim() just apply the code to this few seconds.
    Quote Quote  
  12. Originally Posted by jagabo View Post
    Originally Posted by xuguang_he View Post
    May I ask a further question?

    If I find that frame 123967 and frame 123968 are same, how could I remove one of them? Should these two be regarded as duplicate frames? I just want to remove the certain frame 123968, just this one frame.
    Keep in mind that simply removing the frame will change the runtime of the video. If you mux with the original audio the video and audio will no longer be in sync.
    Oh... I've forgot this important matter. Thank you for informing. It seems that I shouldn't do too much extra work on this kind of bootleg source, maybe just deinterlaced and make sure there are no blended frames are enough. Too much extra effort may lead to unexpected result... isn't it?
    Quote Quote  
  13. Originally Posted by xuguang_he View Post
    Too much extra effort may lead to unexpected result... isn't it?
    If the duplicate frame bothers you, you can always interpolate to create a new frame to replace the duplicate. There's lots of information on this site about how to interpolate frames (create new frames using the good ones on either side) here on Videohelp. When I come across duplicate frames that's what I do.

    But, as jagabo said, you don't want to simply remove the frame.
    Last edited by manono; 26th Apr 2013 at 19:45.
    Quote Quote  
  14. May I ask If this code is wrong? A few frames was repeated two times and go on ...
    Code:
    LoadPlugin("D:\Program Files\Megui\tools\dgindex\DGDecode.dll")
    vid = DGDecode_mpeg2source("E:\yazhi\s\The.Tarnished.Angels.1957.DVDRip.x264.AC3.d2v")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\MaskTools2\mt_masktools-25.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\MaskTools.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\NicAudio.dll")
    Import("D:\Program Files\Megui\tools\avisynth_plugin\Masked_DHA.avs")
    vid = vid.Masked_DHA().crop(0, 74, 0, -66).GreyScale()
    aud=nicac3source("E:\yazhi\s\The.Tarnished.Angels.1957.DVDRip.x264.AC3 T80 1_0ch 448Kbps DELAY 0ms.ac3")
    audiodub(vid,aud)
    Trim(1,0)
    Quote Quote  
  15. Originally Posted by poisondeathray View Post
    Originally Posted by xuguang_he View Post
    Sometimes you need to apply different settings to different sections, different filter, or different approach entirely . QTGMC is a temporal filter and known to cause blends
    And may I ask how to apply different settings to one source? (Searching through the forum, I've learnt to use Trim(), but the preview in MeGUI seems miserable, the ending of the film comes to the middle and the length of the film increased to 5 hours!!! Totally horrible.)

    I'm ripping movies, so there is audio included. Is Trim() still available for this kind of situation?



    Search on how to apply different filters to different sections, there are many approaches and they are discussed in great detail with examples. e.g trim() with aligned splice, replaceframessimple() , clipclop() to name a few. The lenghts are unchanged when you use them properly


    Trim works on audio as well , if you include in your script e.g. audiodub()

    Code:
     
    vid=mpeg2source()
    aud=nicac3source()
    audiodub(vid,aud)
    trim(500,1000)
    This would return frames 500-1000 with audio



    e..g

    Code:
     
    orig=whateversource()
     
    orig
    trim(0,100)
    filter1()
    a=last
     
    orig
    trim(100,0)
    filter2()
    b=last
     
    a++b
    This would apply filter1 to 0-100, filter2 to 100-end, same length as original



    Code:
    LoadPlugin("D:\Program Files\Megui\tools\dgindex\DGDecode.dll")
    vid=DGDecode_mpeg2source("E:\yazhi\s\The.Tarnished.Angels.1957.DVDRip.x264.AC3.d2v")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\MaskTools2\mt_masktools-25.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\MaskTools.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\NicAudio.dll")
    Import("D:\Program Files\Megui\tools\avisynth_plugin\Masked_DHA.avs")
    vid=vid.Masked_DHA().crop(0, 74, 0, -66)
    aud=nicac3source("E:\yazhi\s\The.Tarnished.Angels.1957.DVDRip.x264.AC3 T80 1_0ch 448Kbps DELAY 0ms.ac3")
    audiodub(vid,aud)
    trim(1,0)
    #resize
    #denoise
    This is my script, I've done a test followed your instructions of apply different settings on different sections of a source. I want to trim away the first frame of the source. So, I modified the script. But there seems to be a mistake. I noticed the following changes in the sources when I look into the test rip. Please noticed the second capture, it becomes odd since it originally supposed to be a very natural fade in. And the original source don't have this problem. It occurs just after I change the script.



    Quote Quote  
  16. Originally Posted by xuguang_he View Post




    Code:
    LoadPlugin("D:\Program Files\Megui\tools\dgindex\DGDecode.dll")
    vid=DGDecode_mpeg2source("E:\yazhi\s\The.Tarnished.Angels.1957.DVDRip.x264.AC3.d2v")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\MaskTools2\mt_masktools-25.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\MaskTools.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\NicAudio.dll")
    Import("D:\Program Files\Megui\tools\avisynth_plugin\Masked_DHA.avs")
    vid=vid.Masked_DHA().crop(0, 74, 0, -66)
    aud=nicac3source("E:\yazhi\s\The.Tarnished.Angels.1957.DVDRip.x264.AC3 T80 1_0ch 448Kbps DELAY 0ms.ac3")
    audiodub(vid,aud)
    trim(1,0)
    #resize
    #denoise
    This is my script, I've done a test followed your instructions of apply different settings on different sections of a source. I want to trim away the first frame of the source. So, I modified the script. But there seems to be a mistake. I noticed the following changes in the sources when I look into the test rip. Please noticed the second capture, it becomes odd since it originally supposed to be a very natural fade in. And the original source don't have this problem. It occurs just after I change the script.



    I don't understand what you're saying or what you're trying to do

    What was the script before you changed it ?

    You 're not applying different settings to anything with that script - everything is applied to the whole video
    Quote Quote  
  17. Originally Posted by poisondeathray View Post
    Originally Posted by xuguang_he View Post




    Code:
    LoadPlugin("D:\Program Files\Megui\tools\dgindex\DGDecode.dll")
    vid=DGDecode_mpeg2source("E:\yazhi\s\The.Tarnished.Angels.1957.DVDRip.x264.AC3.d2v")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\MaskTools2\mt_masktools-25.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\MaskTools.dll")
    LoadPlugin("D:\Program Files\Megui\tools\avisynth_plugin\NicAudio.dll")
    Import("D:\Program Files\Megui\tools\avisynth_plugin\Masked_DHA.avs")
    vid=vid.Masked_DHA().crop(0, 74, 0, -66)
    aud=nicac3source("E:\yazhi\s\The.Tarnished.Angels.1957.DVDRip.x264.AC3 T80 1_0ch 448Kbps DELAY 0ms.ac3")
    audiodub(vid,aud)
    trim(1,0)
    #resize
    #denoise
    This is my script, I've done a test followed your instructions of apply different settings on different sections of a source. I want to trim away the first frame of the source. So, I modified the script. But there seems to be a mistake. I noticed the following changes in the sources when I look into the test rip. Please noticed the second capture, it becomes odd since it originally supposed to be a very natural fade in. And the original source don't have this problem. It occurs just after I change the script.



    I don't understand what you're saying or what you're trying to do

    What was the script before you changed it ?

    You 're not applying different settings to anything with that script - everything is applied to the whole video

    I want to trim away the first frame of the source
    Quote Quote  
  18. Originally Posted by xuguang_he View Post

    I want to trim away the first frame of the source
    That's what your script does . Are you saying if you remove trim(1,0) the artifacts are gone ?

    It will look the same in terms of artifacts whether or not you include trim. The damage is probably caused by your other filter Masked_DHA . Remove that.
    Quote Quote  
  19. Originally Posted by poisondeathray View Post
    Originally Posted by xuguang_he View Post

    I want to trim away the first frame of the source
    That's what your script does . Are you saying if you remove trim(1,0) the artifacts are gone ?

    It will look the same in terms of artifacts whether or not you include trim. The damage is probably caused by your other filter Masked_DHA . Remove that.
    Yeah, it surely works. I just wondered the reason.
    This filter works fine on all the sources I've met with. I don't think this one is a speciality.
    Last edited by xuguang_he; 3rd May 2013 at 23:30.
    Quote Quote  



Similar Threads

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