VideoHelp Forum
+ Reply to Thread
Page 3 of 3
FirstFirst 1 2 3
Results 61 to 71 of 71
Thread
  1. This is the script I've created. Added MDegrain2, but don't know what to do now. I have no idea what numbers i need to add where there are question marks.

    a = LWlibavAudioSource("D:\Videos\Kung Fu Genius Project Files\New folder\DGIndex files\Kung Fu Genius T80 2_0ch 192Kbps DELAY 0ms.ac3") # get audio (decompressed to PCM)
    v = Mpeg2Source("D:\Videos\Kung Fu Genius Project Files\New folder\DGIndex files\Kung Fu Genius.d2v", Info=3) # get video
    AudioDub(v,a) # join audio and video together
    import("C:\Users\akuma\AviSynth+\plugins64+\Remove DirtMC.avs")
    TFM()
    TDecimate(Cycle=6, CycleR=1) #returns 23.976fps progressive frames
    ColorMatrix(mode="rec.601->rec.709")
    Crop(0,82,0,-82) #
    MDegrain2(?, ?, ?, ?, ?, thSAD=?, thSADC=?, plane=?, limit=?, limitC=?, thSCD1=?, thSCD2=?, isse=?, planar=?, lsb=?, mt=?, out16=?, out32=?)
    Spline36Resize(640, 316) # 364 * 2.35 =
    AssumeFPS(24000, 1001, sync_audio=true) # audio sample rate reduced from 48000 to 46080 (lossless)
    SSRC(48000) # convert audio to 48000 Hz samples
    prefetch(24)
    Quote Quote  
  2. A quick attempt:

    Code:
    Mpeg2Source("VTS_01_1.d2v") 
    Crop(0,80,-0,-80)
    TFM(d2v="VTS_01_1.d2v") 
    TDecimate(Cycle=6, CycleR=1)
    
    MergeChroma(RemoveDirtMC(30, false), RemoveDirtMC(60, false))
    SMDegrain(thsad=300, tr=5, PreFilter=2, plane=0)
    SMDegrain(thsad=1000, tr=5, PreFilter=2, plane=3)
    A lot of the flashes are eliminated but some are not.
    Quote Quote  
  3. Originally Posted by jagabo View Post
    A quick attempt:

    Code:
    Mpeg2Source("VTS_01_1.d2v") 
    Crop(0,80,-0,-80)
    TFM(d2v="VTS_01_1.d2v") 
    TDecimate(Cycle=6, CycleR=1)
    
    MergeChroma(RemoveDirtMC(30, false), RemoveDirtMC(60, false))
    SMDegrain(thsad=300, tr=5, PreFilter=2, plane=0)
    SMDegrain(thsad=1000, tr=5, PreFilter=2, plane=3)
    A lot of the flashes are eliminated but some are not.
    Thank you so much.

    So I was trying - ready to run samples from the link you sent and testing with different numbers like trial and error kind of thing.

    This is what i have on script:

    a = LWlibavAudioSource("D:\Videos\Kung Fu Genius Project Files\New folder\DGIndex files\Kung Fu Genius T80 2_0ch 192Kbps DELAY 0ms.ac3") # get audio (decompressed to PCM)
    v = Mpeg2Source("D:\Videos\Kung Fu Genius Project Files\New folder\DGIndex files\Kung Fu Genius.d2v", Info=3) # get video
    AudioDub(v,a) # join audio and video together
    import("C:\Users\akuma\AviSynth+\plugins64+\RemoveDirtMC.avs")
    TFM()
    TDecimate(Cycle=6, CycleR=1) #returns 23.976fps progressive frames
    ColorMatrix(mode="rec.601->rec.709")
    Crop(0,82,0,-82) # after this cropping you have a 704x364 frame
    pre=fluxsmootht(3).removegrain(11)
    SMDegrain(tr=6,thSAD=1000,contrasharp=30,prefilter =pre,str=4.8,refinemotion=true,lsb=true)
    Spline36Resize(640, 316) # 364 * 2.35 = 855.4, round up to 856 for a mod 8 width
    AssumeFPS(24000, 1001, sync_audio=true) # audio sample rate reduced from 48000 to 46080 (lossless)
    SSRC(48000) # convert audio to 48000 Hz samples
    prefetch(24)


    I will add your lines to script as surely they will be better as I have no real clue what i was doing.

    Once again thanks for your help.
    Quote Quote  
  4. MDegrain2 is part of MVtools2

    Scroll down to find the denoising examples in my link above and simply use one of those examples. If you are operating on your video after you deinterlaced it, the use this code (copy/pasted from above link):

    Code:
    AVISource("c:\test.avi") # or MPEG2Source, DirectShowSource, some previous filter, etc
    super = MSuper(pel=2, sharp=1)
    backward_vec2 = MAnalyse(super, isb = true, delta = 2, overlap=4)
    backward_vec1 = MAnalyse(super, isb = true, delta = 1, overlap=4)
    forward_vec1 = MAnalyse(super, isb = false, delta = 1, overlap=4)
    forward_vec2 = MAnalyse(super, isb = false, delta = 2, overlap=4)
    MDegrain2(super, backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=400)
    You want to add DCT=1 in each of the four MAnalyse calls, right after "overlap=4".
    Quote Quote  
  5. Originally Posted by Akuma786 View Post

    This is what i have on script:

    a = LWlibavAudioSource("D:\Videos\Kung Fu Genius Project Files\New folder\DGIndex files\Kung Fu Genius T80 2_0ch 192Kbps DELAY 0ms.ac3") # get audio (decompressed to PCM)
    v = Mpeg2Source("D:\Videos\Kung Fu Genius Project Files\New folder\DGIndex files\Kung Fu Genius.d2v", Info=3) # get video
    AudioDub(v,a) # join audio and video together
    import("C:\Users\akuma\AviSynth+\plugins64+\RemoveDirtMC.avs")
    TFM()
    TDecimate(Cycle=6, CycleR=1) #returns 23.976fps progressive frames
    ColorMatrix(mode="rec.601->rec.709")
    Crop(0,82,0,-82) # after this cropping you have a 704x364 frame
    pre=fluxsmootht(3).removegrain(11)
    SMDegrain(tr=6,thSAD=1000,contrasharp=30,prefilter =pre,str=4.8,refinemotion=true,lsb=true)
    Spline36Resize(640, 316) # 364 * 2.35 = 855.4, round up to 856 for a mod 8 width
    AssumeFPS(24000, 1001, sync_audio=true) # audio sample rate reduced from 48000 to 46080 (lossless)
    SSRC(48000) # convert audio to 48000 Hz samples
    prefetch(24)
    Cosmetics only:
    TDecimate(Cycle=6, CycleR=1) #returns 24.975fps progressive frames
    Quote Quote  
  6. MDegrain2 is part of MVtools2

    Scroll down to find the denoising examples in my link above and simply use one of those examples. If you are operating on your video after you deinterlaced it, the use this code (copy/pasted from above link):
    Will try this. Thank you
    Quote Quote  
  7. Cosmetics only:
    TDecimate(Cycle=6, CycleR=1) #returns 24.975fps progressive frames
    Sorry, don't understand what you mean.
    Quote Quote  
  8. It's the comment only after the #

    The framerate in your script:
    TDecimate(Cycle=6, CycleR=1) #returns 23.976fps progressive frames

    should be:
    TDecimate(Cycle=6, CycleR=1) #returns 24.975fps progressive frames

    It's not relevant for the function, it's just misleading. Never mind.
    Quote Quote  
  9. Originally Posted by Sharc View Post
    It's the comment only after the #

    The framerate in your script:
    TDecimate(Cycle=6, CycleR=1) #returns 23.976fps progressive frames

    should be:
    TDecimate(Cycle=6, CycleR=1) #returns 24.975fps progressive frames

    It's not relevant for the function, it's just misleading. Never mind.
    Oh yes I understand what you mean now. Sorry that was me when i copied the line from a different script, I should have removed the comment as they dont apply to this script as you have pointed out. Thank you.
    Quote Quote  



Similar Threads

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