There are many variations of RemoveDirtMC floating around. The one I used is attached to this post:Code:a = LWlibavAudioSource("VTS_01_1.VOB", stream_index=2) # get audio (decompressed to PCM) v = Mpeg2Source("VTS_01_1.d2v", Info=3) # get video AudioDub(v,a) # join audio and video together QTGMC() # to 59.94p SRestore() #discard blended frames, to 25p Crop(10,58,-6,-58) # after this cropping you have a 704x364 frame dehalo_alpha(rx=2, ry=2, BrightStr=1.2, DarkStr=1.2) # reduce oversharpening halos (damages picture a bit too) RemoveDirtMC(20, false) # remove spots (from dust, delamination) MergeChroma(last, aWarpSharp2(depth=20)) # sharpen the chroma Spline36Resize(856, 364) # 364 * 2.35 = 855.4, round up to 856 for a mod 8 width AssumeFPS(24000, 1000, sync-audio=true) # audio sample rate reduced from 48000 to 46080 (lossless) SSRC(48000) # convert audio to 48000 Hz samples
https://forum.videohelp.com/threads/408211-How-to-find-the-tags-on-a-video#post2706809
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 31 to 60 of 71
Thread
-
-
Thanks Jagabo, your script worked nicely. Much appreciated. This script should be useful on at least 10 DVDs I have which are similar from same company.
-
I have another dvd, same issue here too. It's also 29.97fps and i want to deinterlace it properly and change it to 24fps please.
sample:
https://easyupload.io/t9g3uj -
It's not the same. Looks like a broken telecine pattern to me.
You may try something along the line
Code:TFM() TDecimate(Cycle=85,CycleR=17) #returns 23.976fps progressive frames
Last edited by Sharc; 1st Oct 2023 at 15:12.
-
ou may try something along the line
Code:
TFM()
TDecimate(Cycle=85,CycleR=17) #returns 23.976fps progressive framesLast edited by Akuma786; 1st Oct 2023 at 15:47.
-
I added a little more processing:
Code:Mpeg2Source("Akuma786\VTS_01_2.d2v", Info=3) Crop(4,96,-8,-92) TFM() TDecimate(Cycle=85, CycleR=17) MergeChroma(RemoveDirtMC(15, false), RemoveDirtMC(30, false)) Stab(range=2, dxmax=2, dymax=2, mirror=15) LSFMod(150) prefetch(24)
Last edited by jagabo; 2nd Oct 2023 at 10:20.
-
Higher values for RemoveDirtMC() will remove more dirt but will damage the picture more. Try different values and see what you like. There's still lots of artifacts at most shot changes.
-
Another dvd, similar issue, badly interlaced. It's also 29.97fps and i want to deinterlace it properly and change it to 24fps please and clean up the video too. I thought i could use the script above but it didn't work on this video smoothly.
https://easyupload.io/oikvrm -
TFM()
TDecimate(Cycle=6, CycleR=1)
By the way, if there are irregularities in the pulldown pattern multiplying the Cycle and CycleR values can help. For example, the Cycle=85, CycleR=17 (17 times Cycle=5, CycleR=1) in the previous video. So with the above you may find that Cycle=12, CycleR=2 (or some other multiplier) might work better. -
-
And some color correction:
Code:ColorYUV(gain_y=30, off_y=-14) ConvertToRGB().RGBAdjust(r=221.0/192.0, b=221.0/138.0, bb=-42).ConvertToYV12()
[Attachment 74153 - Click to enlarge]
This works pretty well for some shots, not so good for others. Averages out to ok-ish. -
Im ending up with 24.975 fps with the script and not 24fps.
here is script, am i doing it correctly:
a = LWlibavAudioSource("D:\Videos\Fearless Dragon Project Files\New folder\Fearless Dragon T80 2_0ch 192Kbps DELAY -49ms.ac3") # get audio (decompressed to PCM)
v = Mpeg2Source("D:\Videos\Fearless Dragon Project Files\New folder\Fearless Dragon.d2v", Info=3) # get video
AudioDub(v,a) # join audio and video together
Crop(8,80,-4,-84)
import("C:\Users\akuma\AviSynth+\plugins64+\RemoveDirtMC.avs")
TFM()
TDecimate(Cycle=12, CycleR=2) #returns 23.976fps progressive frames
ColorMatrix(mode="rec.601->rec.709")
ColorYUV(gain_y=30, off_y=-14)
ConvertToRGB().RGBAdjust(r=221.0/192.0, b=221.0/138.0, bb=-42).ConvertToYV12()
MergeChroma(RemoveDirtMC(15, false), RemoveDirtMC(30, false))
Stab(range=2, dxmax=2, dymax=2, mirror=15)
LSFMod(150)
Spline36Resize(640, 316)
prefetch(24) -
TDecimate(Cycle=12,CycleR=2) won't give 23.976, but 24.975fps
It should be
TDecimate(Cycle=5,CycleR=1)
or
TDecimate(Cycle=10,CycleR=2)
or
TDecimate(Cycle=15,CycleR=3)
or ....
TDecimate(Cycle=85,CycleR=17)
..... etc ....
The reduction factor for the framerate is
1-CycleR/Cycle
In your script 1-2/12 = 0.833333 -> 29.97*0.83333=24.975Last edited by Sharc; 3rd Oct 2023 at 02:11.
-
If you decimate to 23.976 fps you will be missing film frames. If you want 23.976 after TDecimate(Cycle=6, CycleR=1) slow the video (and audio) with AssumeFPS(24000, 1001, sync-audio=true), like you did earlier in this thread.
-
Thanks Sharc & Jagabo.
so this is what i got now and new runtime has increased by roughly 3mins.
a = LWlibavAudioSource("D:\Videos\Fearless Dragon Project Files\New folder\Fearless Dragon T80 2_0ch 192Kbps DELAY -49ms.ac3") # get audio (decompressed to PCM)
v = Mpeg2Source("D:\Videos\Fearless Dragon Project Files\New folder\Fearless Dragon.d2v", Info=3) # get video
AudioDub(v,a) # join audio and video together
Crop(8,80,-4,-84) # after this cropping you have a 704x364 frame
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")
ColorYUV(gain_y=30, off_y=-14)
ConvertToRGB().RGBAdjust(r=221.0/192.0, b=221.0/138.0, bb=-42).ConvertToYV12()
MergeChroma(RemoveDirtMC(15, false), RemoveDirtMC(30, false))
Stab(range=2, dxmax=2, dymax=2, mirror=15)
LSFMod(150)
Spline36Resize(640, 316)
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) -
Last edited by Sharc; 3rd Oct 2023 at 08:40.
-
so runtime changes to 86mins but i believe the official Technical specifications for this movie is 83 minutes.
-
-
-
Stepping through the frames you will find an alternating sequence of 99 frames with the repetitive pattern (3combed - 3clean) followed by 100 frames with the repetitive pattern (4clean - 2combed).
Stepping through the fields you will see the 3-2-3-2-2 pattern (or a cyclic shift of it like 2-3-2-2-3 or 3-2-2-3-2 or 2-2-3-2-3 or 2-3-2-3-2 depending where you start).Last edited by Sharc; 3rd Oct 2023 at 17:38.
-
Hi, another DVD, also 29.97fps. I would like to deinterlace correctly, change to 24fps and cleanup and colour correct if possible.
https://easyupload.io/hbacua -
-
Last edited by Sharc; 4th Oct 2023 at 16:48. Reason: typo
-
-
They are chroma flashes, so there may be some trick that can be done in that domain.
I would start by trying MDegrain2 with DCT=1 (instead of the default 0), and/or Deflicker. They work well for luma flicker, but may not get this.
You can also look at what I did to remove rainbow flashes by going to this post:
https://forum.videohelp.com/threads/398864-Need-help-on-Avisynth#post2595644 -
Thanks Johnmeyer. There is so much chroma flashes through out this movie. Its very distracting.
I will give this a try tonight and hopefully it be more easy to the eyes. Much appreciated.
Similar Threads
-
Is this bad interlacing or a poorly authored DVD?
By LaserBones in forum Newbie / General discussionsReplies: 12Last Post: 16th Oct 2023, 01:15 -
Decrypting DVD / de-interlacing workflow woes
By ArchLio in forum DVD RippingReplies: 25Last Post: 10th Feb 2023, 22:42 -
Use UsEac3To for 24fps to 23.976?
By digitalfreaknyc in forum AudioReplies: 2Last Post: 27th Mar 2022, 16:47 -
Dvd interlacing
By Johnnysh in forum DVD RippingReplies: 37Last Post: 6th Dec 2020, 15:34 -
Converting NTSC->PAL Interlaced DVD Back To NTSC 24FPS???
By SegaSonic91 in forum DVD RippingReplies: 7Last Post: 3rd Oct 2020, 00:55