I have a 29.976 video that contains two types of footage.
- New footage, the interview, shot by studio, etc. (that contains duplicate frames)
- Old archive footage, musical performance scenes (that contains no duplicate frames)
If I runit removes duplicate frames, but adds skips to archive footage. I tried various variations of tdecimate with various modes and hybrid values.Code:tdecimate(mode=2, rate=24000.0/1001.0, m2PA=true)
I end up either with skip frames on archive footage or no skip frames, but with duplicate frames on new footage.
45 MB 1 minute long sample file
+ Reply to Thread
Results 1 to 9 of 9
-
-
You can't produce a constant frame rate video from a hybrid source like that without dropping or duplicating frames. You would have to produce a variable frame rate video with the film sections at 23.976 fps and the video sections at 29.97 fps.
-
Which is film section and which is video section? The whole video is constant 29.97, how some of it can be 23.976 with no duplicate frames on constant framerate?
-
The film sections are those with a duplicate frame every 5th frame -- that's how 23.976 fps was converted to 29.97 fps.
And the video sections were badly deinterlaced so you can identify them the aliasing artifacts in addition to the lack of duplicates and low resolution. -
So there's no way to tell to remove random order duplicate frames throughout video? Entire video has to be constant every 5th duplicate frame to make it work? Like it can't be first 10 seconds every 5th duplicate frame and the rest of video no duplicate frames and run tdecimate or alternative to detect and remove dupes only where they occur randomly?
-
You could use motion interpolation techniques to convert the 24 fps sections to 30 fps or the 30 fps sections to 24 fps. An example using Interframe():
Code:LWLibavVideoSource("test20170410.mkv") AssumeFPS(30000,1001) p1 = trim(0,556).TDecimate() # decimate to 24 fps p2 = Trim(557,1408).Interframe(newnum=24000, newden=1001, cores=4) # motion interpolate to 24 fps p3 = Trim(1409,0).TDecimate() # decimate to 24 fps p1+p2+p3
-
Yes, there are ways to remove the duplicate frames. And then you can make a Variable FrameRate (VFR) encode for the MKV container. Check out Modes 3 and 5 in the TDecimate doc. The AviSynth site has a page on it:
http://avisynth.nl/index.php/VFR
But I get the impression that's not what you want. Or, after removing the dupe frames using MultiDecimate or DeDup you can assign a framerate, 23.976fps, or 29.97fps, or something in between. And that'll throw off the audio and make at least certain sections play at an unnatural speed. Or you can do as jagabo suggested - create interpolated frames so the whole thing plays more smoothly at 29.97fps.
What's your intended final format? DVD, or what? -
Source is digital, so digital. Setting custom trim points for each scene seems overwhelming especially if its 2h long video with many hybrid scenes.
-
What does that mean, "digital", exactly? DVD is digital, but doesn't support timecode based VFR. (23.976 sections run at 23.976 , 29.97 sections run at 29.97 .) VFR is incompatible with some scenarios so it depends on what this is for, and how it's going to be used
You don't have to manually set custom trim points. You can do "VFR" automatcially with TIVTC or dedup . The timecodes to keep everything in sync will be automatically generated . Or you can interpolate over duplicates automatically with filldrops or one of it's derivatives (conditional filter based motion interpolation, based on threshold) . But you may be left with artifacts in those interpolated frames (interpolation is sometimes good on some frames, but other times it's horrible), and it might miss some or drop wrong ones (based on accuracy of threshold)
But manually identifying sections means you can filter the sections preferentially as well. For example you might want to "fix" the aliasing (the jaggies) or at least improve it on the badly deinterlaced sections . Pros/cons to whatever route you choose
Similar Threads
-
Remove duplicate frames from 30FPS video
By midts in forum Video ConversionReplies: 7Last Post: 7th Apr 2017, 08:48 -
What if source has and duplicate frames and is interlaced and more
By rhaz in forum DVD RippingReplies: 17Last Post: 15th Jun 2014, 06:17 -
Hybrid frames question
By owlmoon in forum Newbie / General discussionsReplies: 1Last Post: 16th Mar 2014, 18:08 -
Help to get rid of duplicate frames on PAL source
By rhaz in forum Video ConversionReplies: 25Last Post: 9th Nov 2013, 10:13 -
VFR Source.After encode,some frames remove,duplicated,remaining. Need help!
By xicudiz in forum Video ConversionReplies: 16Last Post: 9th Sep 2013, 00:06