I've got this NASA scan of some 16mm footage.
This was either shot at 6 or 12fps. Unfortunately this was put in a 29.97fps QuickTime .mov video file. In order to keep the correct frame rate duplicates were introduced.
Normally I remove the duplicates with FFMPEG Decimate filter. But this file is proving to be more difficult....
Not only duplicates, but frame-blending was also applied. Where horizontal consecutive lines from two individual frames were blended. FFMPEG decimate filter does not detect them.
Are there any tools that are capable of detecting these frames and remove them?
Attached to this post is a few seconds of the ffmpeg output with the following string:
ffmpeg -i "D:\Apollo\16mm\AS9\MAG N - Lunar Module Approach.mov" -map 0:0 -vf mpdecimate,setpts=N/FRAME_RATE/TB,crop=1440:1080:234:00 "D:\Apollo\16mm\AS9\AS09-MAG-N\AS09-MAG-N-%04d.png
An other example with 3 frames:
[Attachment 54685 - Click to enlarge]
[Attachment 54686 - Click to enlarge]
[Attachment 54687 - Click to enlarge]
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 6 of 6
Thread
-
-
No blended frames, just hard pulldown. In AviSynth use:
Code:TFM() # field match back to a film frames TDecimate(Cycle=3, CycleR=1) #remove duplicates
<edit>
Got it:
Code:ffmpeg -i AS9-LM-INT.mp4 -vf "fieldmatch=order=tff,decimate=cycle=3:" output.mkv
Last edited by jagabo; 28th Aug 2020 at 10:30. Reason: added ffmpeg command line and encoded sample
-
-
I took a closer look... and unfortunately there are still merged frames. The pattern does not stay the same throughout the video file, it changes several times.
Several times there are more than 2 real frames before one merged frame. This obviously throws off the cycle. It is not a simple pulldown.
To clarify, the footage is not interlaced. The source has 1 to 1 duplicates as wel as merged frames that merge the previous and next real frame.
The 1:1 duplicates are removed with FFMPEG's decimate filter, see string of first post. Then at least there is one less problem to deal with.
This PNG output is then processed further to remove the merged frames.... yet to no avail.
This is why I need something that is able to detect merged frames from normal real frames and remove the former. Anyone know if this exists? -
Can you be more clear on the "merged frames" terminology ? Did you actually mean merged fields ? 2 fields that are from different moments in time, so you see "combing"? Are there any fields that have unique information by itself, not duplicated in another field ?
Another way to approach that is with field matching and duplicate decimation according to a threshold such as dedup or other decimation filters that decimate on similarity (not to achieve a specific pattern or framerate) . The resulting output is variable frame rate, because your decimation pattern is variable -
What you have is basically 8 fps film with 3:3 pulldown to make 12 fps video. That makes every third frame interlaced (what you are calling "merged"). In the sample clip you provided there is one discontinuity in the pattern, near the beginning. If you view the clip as a series of fields you will see the duplicate pattern 3:3:2:3:3... (the rest is all 3's). There are no duplicate frames in the sample. But apparently you are saying there are other discontinuities in the full video. You need to figure out if that's because 12 fps isn't the exact rate (maybe it was intended to be 11.988 = 12000/1001 so it could be sped up 2.5x to make 29.97 fps for NTSC broadcast), or maybe it was just mishandled somewhere along the line. You should provide a longer clip for analysis. One which include those duplicate frames.
Oh, and I later noticed that the video has 4:4:4 chroma so there won't be a problem with blended chroma I mentioned in post #2.
Similar Threads
-
Blended Frames during QTGMC - 25fps assuming bad authoring to PAL format?
By LaserBones in forum Newbie / General discussionsReplies: 3Last Post: 18th Jul 2020, 06:33 -
After removing pulldown with TSMuxer video still has interlaced flag
By mooogooo in forum Video ConversionReplies: 1Last Post: 10th Mar 2020, 23:56 -
How to remove blended frames from NTSC 29.976?
By midts in forum Video ConversionReplies: 2Last Post: 15th Aug 2018, 12:07 -
PAL to NTSC with avisynth - blended frames
By nesburf in forum Video ConversionReplies: 7Last Post: 27th Dec 2017, 23:21 -
Removing Blended frames, then putting unblended duplicates back in??
By killerteengohan in forum RestorationReplies: 17Last Post: 16th Oct 2015, 03:37