VideoHelp Forum




+ Reply to Thread
Results 1 to 13 of 13
  1. Hi, I have a very bad quality DVD. Looking for help to fix it up as much as possible. So far my script is based on previous scripts for movies which had similar issues.

    Im looking to remove dirt, improve picture quality, better colours and upscale slightly.

    Here is my script so far:
    Code:
    DirectShowSource("G:\SVL FILES\SAMPLE\VTS_01_1.VOB")
    Crop(10, 64, -6, -62)
    TFM()
    TDecimate(Cycle=5, CycleR=1)   #returns 23.976fps progressive frames
    ColorMatrix(mode="rec.601->rec.709")
    import("C:\Users\akuma\AviSynth+\plugins64+\RemoveDirtMC.avs")
    import("C:\Users\akuma\AviSynth+\plugins64+\spotless.avs")
    vinverse(sstr=2.7, amnt=255, uv=3, scl=0.25) #removes the residual combing artefacts
    ColorYUV(autowhite=true)
    MergeChroma(RemoveDirtMC(20, false), RemoveDirtMC(30, false))
    Spotless()
    
    nnedi3cl_rpow2(rfactor=2, nsize=3, nns=4)
    spline36resize(1280,582) #square pixels
    aWarpSharp2(depth=5)
    Sharpen(0.4)
    
    
    AssumeFPS(24000, 1001, sync_audio=true) # audio sample rate reduced from 48000 to 46080 (lossless)
    SSRC(48000) # convert audio to 48000 Hz samples
    prefetch(18)
    here is sample of video : https://easyupload.io/04l485

    Any advice from the proffesional will be appreciated. Thanks.
    Quote Quote  
  2. Also can this be fixed, see pic above his head.Image
    [Attachment 84575 - Click to enlarge]
    Quote Quote  
  3. I'm having issues with my script so far.

    Initially when I used DGIndex to demux the DVD, a message said: Order Transition Detected - A field order transition was detected. I chose to correct the field order transition and pressed YES.

    This is the fix notes I got:

    D2V Fix Output

    Field order transition: 1 -> 1
    d00 5 0 2048 0 1 1 d1 f1 f2 e3 f0 f1 e2
    corrected...
    d00 5 0 2048 0 1 1 d0 f1 f2 e3 f0 f1 e2

    Field order transition: 1 -> 1
    d00 5 2 139776000 0 1 6 d3 f0 f1 e2 f3 f0 e1
    d00 5 2 140019712 0 1 6 f1 d2
    corrected...
    d00 5 2 139776000 0 1 6 d3 f0 f1 e2 f3 f0 e0
    d00 5 2 140019712 0 1 6 f1 d2

    Field order transition: 2 -> 1
    900 5 2 1031178240 0 1 7 70 71 d2
    d00 5 2 1031323648 0 1 7 d2 f1 f2 e3 f0 f1 e2 f3 f0 e1 f2 f3 e0 f1 f2 e3
    corrected...
    900 5 2 1031178240 0 1 7 70 71 d2
    d00 5 2 1031323648 0 1 7 d3 f1 f2 e3 f0 f1 e2 f3 f0 e1 f2 f3 e0 f1 f2 e3

    Field order transition: 0 -> 3
    900 5 3 103677952 0 1 7 73 70 d1 f2 f3 e0 f1 f2 e3 f0 f1 e2 f3 f0 e1 f2 f3 e0
    900 5 3 104284160 0 1 7 73 70 d0
    corrected...
    900 5 3 103677952 0 1 7 73 70 d1 f2 f3 e0 f1 f2 e3 f0 f1 e2 f3 f0 e1 f2 f3 e1
    900 5 3 104284160 0 1 7 73 70 d0

    Field order transition: 0 -> 2
    d00 5 3 123070464 0 1 7 f0 d0
    d00 5 3 123127808 0 1 7 f2 f3 d0 f2 f3 e0
    corrected...
    d00 5 3 123070464 0 1 7 f0 d1
    d00 5 3 123127808 0 1 7 f2 f3 d0 f2 f3 e0

    Field order transition: 0 -> 2
    d00 5 3 123070464 0 1 7 f0 d1
    d00 5 3 123127808 0 1 7 f2 f3 d0 f2 f3 e0
    corrected...
    d00 5 3 123070464 0 1 7 f0 d1
    d00 5 3 123127808 0 1 7 f2 f3 d1 f2 f3 e0

    Field order transition: 0 -> 3
    d00 5 3 123127808 0 1 7 f2 f3 d1 f2 f3 e0
    900 5 3 123299840 0 1 7 73 70 d1 f2 f3 e0 f1 f2 e3 f0 f1 e2 f3 f0 e1 f2 f3 e0
    corrected...
    d00 5 3 123127808 0 1 7 f2 f3 d1 f2 f3 e1
    900 5 3 123299840 0 1 7 73 70 d1 f2 f3 e0 f1 f2 e3 f0 f1 e2 f3 f0 e1 f2 f3 e0

    Field order transition: 2 -> 1
    900 5 3 123910144 0 1 7 71 72 d3 f0 f1 e2 f3 f0 e1 f2 f3 e0 f1 f2 e3 f0 f1 e2
    900 5 3 124518400 0 1 7 71 72 d2
    corrected...
    900 5 3 123910144 0 1 7 71 72 d3 f0 f1 e2 f3 f0 e1 f2 f3 e0 f1 f2 e3 f0 f1 e3
    900 5 3 124518400 0 1 7 71 72 d2

    Field order transition: 2 -> 0
    900 5 3 124518400 0 1 7 71 72 d2
    d00 5 3 124647424 0 1 7 f0 f1 d2 f2 f3 e0 f1 f2 e3 f0 f1 e2 f3 f0 e1
    corrected...
    900 5 3 124518400 0 1 7 71 72 d3
    d00 5 3 124647424 0 1 7 f0 f1 d2 f2 f3 e0 f1 f2 e3 f0 f1 e2 f3 f0 e1
    My video has some kind of jagged lines after using the script, I cant figure out what I need to do, to correct this. I have attached a sample of output from my script. Please can anyone suggest where I'm going wrong. Thanks.

    https://easyupload.io/kgreru

    Also video has some kind of ghosting effect, how can this be fixed. See pic : Image
    [Attachment 84614 - Click to enlarge]
    Quote Quote  
  4. Did you look at the MP4 ? Looks like some dropped frames and jerky motion , with duplicated frames at the end in the MP4. Possibly from DirectShowSource, because those errors are not in the source sample

    The VOB sample uploaded gives no field order transition errors. If the full VOB has issues, and "fix" gives problems, then try not to fix then test again . (You don't have to encode to test, just comment out most of the filters after IVTC and preview)

    The ghosting/ blended frames in the screenshots are not in the sample(s) . No idea if you can fix them easily

    You can probably improve discolored band at the bottom (If not in avisynth , perhaps in an editor like Resolve)
    Quote Quote  
  5. Originally Posted by poisondeathray View Post
    Did you look at the MP4 ? Looks like some dropped frames and jerky motion , with duplicated frames at the end in the MP4. Possibly from DirectShowSource, because those errors are not in the source sample
    Yes that's sorted now changing to, Mpeg2Source, now no dropped frames or jerky motion.

    I've kept the script upto TDecimate as you suggested, see below:

    Code:
    a = LWlibavAudioSource("G:\SVL FILES\SvL sample  two Demux files\VTS_01_1 T80 2_0ch 192Kbps DELAY -59ms.ac3") # get audio (decompressed to PCM)
    v = Mpeg2Source("G:\SVL FILES\SvL sample  two Demux files\VTS_01_1.d2v", Info=3) # get video
    AudioDub(v,a) # join audio and video together
    Crop(10, 64, -6, -62)
    TFM()
    TDecimate(Cycle=5, CycleR=1)   #returns 23.976fps progressive frames
    
    
    prefetch(18)
    But still getting the ghosting/ blended frames. I've attached a 2nd sample, which I used the script on and the ghosting/ blended frames are easily visible.
    2nd sample : https://easyupload.io/wuje2u

    What can I do to remove the ghosting/ blended frames ?

    Thanks.
    Quote Quote  
  6. I don't see an easy way to fix the "ghosts/blends" .
    Quote Quote  
  7. Okay sure no worries. Can anything be done about the jagged lines or is that connected with the ghost/blend issue ?

    Also Ia want to know if the script is done correctly for the upscale part ?
    Also there is some weird distortion that appears randomly at top of the video. You notice it mainly in sky scenes. In sample one it's noticeable. Can that be fixed as its throughout the film on outdoor scenes mainly.
    Can anything be done to sharpen picture a bit more too ?
    Quote Quote  
  8. Can anything be done to sharpen picture a bit more too ?
    Sharpening != adding details, sharpening will just emphasize the visibility of stuff that is there.
    Adding details would require something machine learning stuff like CodeFormer or similar:

    Which is usually slow and only works well if you adjust settings (and filtering) per scene and otherwise might introduce new artifacts and look bad:


    Also there is some weird distortion that appears randomly at top of the video. You notice it mainly in sky scenes. In sample one it's noticeable. Can that be fixed as its throughout the film on outdoor scenes mainly.
    In this:

    scene, shots seem to be compression artifacts or data corruption.
    Scene (+ maybe region) based filtering using SpotLess, DeSpot and similar might help to lessen the effect.


    Can anything be done about the jagged lines or is that connected with the ghost/blend issue ?
    Not easily, using some motion masked filtering or some dehazing per scene might help, but like poisondeathray, nothing easy.

    Cu Selur
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  9. Thanks Selur for your input and suggestions, I appreciate it.

    How can i achieve the same sharpness you got from that screenshot you posted. Can that be done within Avisynth. Is there a script for that ?
    Quote Quote  
  10. Originally Posted by poisondeathray View Post
    You can probably improve discolored band at the bottom (If not in avisynth , perhaps in an editor like Resolve)
    To do this will I need to mask that band area only in Davinci and then tinker with colour adjustments ?
    Quote Quote  
  11. How can i achieve the same sharpness you got from that screenshot you posted.
    Not really sure which of the screenshots you are referring to.
    I used CodeFormer and FeMaSR, afaik there I no way to use either of them in Avisynth.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  12. I was refering to this screenshot:



    I like the sharpness in that screeshot. I check out CodeFormer and FeMaSR and see if i can play around for sharpness. Thanks Selur

    Overall the picture looks soo much better now with alot of the constant dust/ dirt being removed. I still have some annoying screen vertical scratches which appear at some scenes for 5/10 seconds. I would like to attempt to remove them if possible. See pic for vertical scratches. What can I do for them green Scratches. Any suggestions ?
    Image
    [Attachment 84672 - Click to enlarge]
    Quote Quote  
  13. DeScratch might work if you adjust the settings.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  



Similar Threads

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