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:
here is sample of video : https://easyupload.io/04l485Code: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)
Any advice from the proffesional will be appreciated. Thanks.
+ Reply to Thread
Results 1 to 13 of 13
-
-
Also can this be fixed, see pic above his head.
[Attachment 84575 - Click to enlarge] -
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
https://easyupload.io/kgreru
Also video has some kind of ghosting effect, how can this be fixed. See pic :
[Attachment 84614 - Click to enlarge] -
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) -
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)
2nd sample : https://easyupload.io/wuje2u
What can I do to remove the ghosting/ blended frames ?
Thanks. -
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 ? -
Can anything be done to sharpen picture a bit more too ?
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.
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 ?
Cu Selurusers currently on my ignore list: deadrats, Stears555 -
-
How can i achieve the same sharpness you got from that screenshot you posted.
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 -
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 ?
[Attachment 84672 - Click to enlarge] -
DeScratch might work if you adjust the settings.
users currently on my ignore list: deadrats, Stears555
Similar Threads
-
question about picture quality
By jyeh74 in forum Off topicReplies: 6Last Post: 16th Sep 2024, 06:43 -
720p Option Missing in the Quality Settings in Potplayer How do i fix?
By ayzick in forum Software PlayingReplies: 0Last Post: 30th Apr 2023, 13:24 -
maximizing picture quality
By thekenoshakid in forum Newbie / General discussionsReplies: 24Last Post: 21st Sep 2022, 22:38 -
can i fix video quality
By cns00 in forum Video ConversionReplies: 2Last Post: 15th Apr 2020, 12:53 -
VLC picture quality
By Anon11009 in forum Software PlayingReplies: 0Last Post: 20th Feb 2020, 04:42