I've have been working on restoring/remastering a DVD release of TV series back to the original 24p. The series, Matt Houston, was shot on film and edited on film from the early to mid 80s. It was released on DVD by VEI in the US and Canada. The third season somehow used PAL masters for the DVD release. They were badly converted to PAL and then back to NTSC for this release and are bad transfers to begin with. This will be very obvious from the telecine pattern. Most of the episodes I was able to restore except a couple. I used the following script in avisynth:
tfm()
tdecimate(cycle=6, cycleR=1)
This script fails on this particular episode. When I run it, I get duplicated frames about every 33 seconds or so (I think the pattern shifts). I've tried different combos with not much success. So I'm reaching out for help for some other more advanced scripting suggestions. I'm beginning to think its a lost cause.
Below is a link to a direct rip from the DVD of the episode:
https://f002.backblazeb2.com/file/ChrisShares/Video+Other/Deadly+Games.m2ts
I am just interested in the episode itself, no need to worry about the intro.
+ Reply to Thread
Results 1 to 18 of 18
-
-
Use
Code:TFM() TDecimate(cycle=5,cycleR=1)
-
-
I don't get it. What source filter are you using? Frame number? Maybe I am missing something.
TFM().TDecimate(cycle=6,cycleR=1) is sometimes used for 25fps sources. In your case it returns 24.975 fps with occasional repeats here. Cycle=5,CycleR=1 gives 23.976fps original progressive film frames. No glitches..... or I missed it.Last edited by Sharc; 19th Apr 2025 at 10:57.
-
This is my script:
FFmpegSource2("G:\Matt Houston\Rip\Ep11\Deadly Games.m2ts")
tfm()
tdecimate(Cycle=5, CycleR=1)
I get my first dropped frame at frame 80 and again at 160. I don't get any dropped frames using the TDecimate(cycle=6,cycleR=1), but I do get duplicated frames about every 33 seconds. In the telecine pattern, sometimes its two interlaced, sometimes 3, sometimes as many as 4.Last edited by csc0709; 19th Apr 2025 at 11:14.
-
Yes, got it now. There are pattern breaks.
Maybe increasing the cycle helps, something like
Code:TFM() TDecimate(cycle=25,cycleR=5)
Maybe someone else has a better proposal.Last edited by Sharc; 19th Apr 2025 at 14:00.
-
I used DeDup() to analyze a 1000 frame section with no still shots. It looks like there were 820 unique frames out of that 1000. 30000 / 1001 * 820 / 1000 gives a frame rate of about 24.5754245754. Using TDecimate(mode=2, rate=24.5754245754) worked pretty well.
Code:# after a remux to MPG and using DgIndex to build an index file Mpeg2Source("Deadly+Games.d2v", CPU2="ooooxx", Info=3) TFM(d2v="Deadly+Games.d2v", Clip2=QTGMC(FPSDivisor=2)) TDecimate(Mode=2, rate=24.57542457542)
Last edited by jagabo; 19th Apr 2025 at 17:10.
-
-
Last edited by csc0709; 20th Apr 2025 at 07:51.
-
I noticed a few drops/dups in some parts of the sample after the above script. Adding "m2PA=true" to the TDecimate filter fixed some of those.
Code:TDecimate(Mode=2, rate=24.57542457542, m2PA=true)
-
-
It allows for a longer lookahead to match the desired frame rate.
When TFM finds residual comb artifacts after frame matching it deinterlaces those areas. If supplied, it uses clip2 to deinterlace those areas.
Oh, I also added vinverse() after TFM() to reduce the residual comb-like artifacts caused by compression of interlaced frames. -
-
Can you give some specific frame numbers so I don't have spend all day looking for drops? And the avisynth script you used.
You'll probably never get perfect results because of the variable pattern of the dups and compression artifacts.Last edited by jagabo; 22nd Apr 2025 at 18:44.
-
Ok makes sense. This is the script I used:
Code:FFmpegSource2("G:\Matt Houston\Rip\Ep11\Deadly Games.m2ts") tfm(Clip2=QTGMC(FPSDivisor=2)) tdecimate(mode=2, rate=24.57542457542, m2PA=true)
-
I was able to verify there are some missing frames in those areas. I didn't notice any duplicates nearby though. Which means the only way you get those missing frames back is to use a higher frame rate in TDecimate(). But then you'll be back to having duplicates in the earlier parts of the video.
-
How about TFM().TDecimate(mode=7, rate=25) some denoising and then something like FillDuplicateFrames/FillDrops ?
users currently on my ignore list: deadrats, Stears555, marcorocchini
Similar Threads
-
Starting with 2:2:2:4 cadence and ending with 24fps?
By Asterra in forum Video ConversionReplies: 2Last Post: 23rd Nov 2024, 17:51 -
Proper cadence terminology for progressive-only rate downconversion?
By joema in forum Video ConversionReplies: 12Last Post: 4th Jul 2022, 19:26 -
Is there an easy way to find broken cadence in 2:3 pulldown of TS files?
By Ronstang in forum Video ConversionReplies: 19Last Post: 1st Feb 2022, 13:21 -
Restoring a whole Anime movie using Neat Video
By xonathan in forum RestorationReplies: 4Last Post: 26th Apr 2021, 08:55 -
Restoring telecined video
By semel1 in forum Newbie / General discussionsReplies: 13Last Post: 2nd Feb 2021, 09:57