View Full Version : Deleting doubled frames automatically?
n3wbi3
14th August 2004, 01:35
Hi.
I have a movie, which has around 25k out of 170k frames with completely no motion in it, so they're useless.
Does anybody know a program, that can automatically scan a video stream and delete these frames?
Or can someone give help or a good link on using multimedia in Delphi (I use PASCAL till now; I thought of decompress the frame and calculate a hash or directly compare with it's predcessor)
That'll really help me a lot :)
scharfis_brain
14th August 2004, 10:32
go using avisynth.
it has serveral plugins for decimating dupes out of video streams.
all you need to know is the target framerate (or true framerate) of the video without the dupes.
possible plugins are:
smartdecimate.dll
decomb.dll
fdecimate.dll
multidecimate.dll
n3wbi3
14th August 2004, 19:25
Danke :)
The videos had around 30fps, that's why there are duplicated frames.
MultipleDecimate with "Remove duplicates: Cycle-based" works perfectely, avisynth is really worth a try :)
n3wbi3
26th August 2004, 10:22
It didn't work perfectly, some duplicates were still in the movie.
I found a conditional filter (http://wwwtcs.inf.tu-dresden.de/~dc1/conditional/), which can select every doubled frame. But I need a filter, who can delete a single frame, does anybody know one?
bond
26th August 2004, 18:42
if you encode with the xvid (with b-frames disabled) or 3ivx mpeg-4 video codecs, they will automatically drop duplicate frames during encoding. instead of the duplicate frames they write so called "n-vops", not coded frames. additionally you can get rid of these n-vops again, when you remux the resulting .avi to .mp4 with the 3ivx or mp4box mp4 muxer, which will create a variable framerate video stream inside the .mp4 container
during playback the movie will look like the original one of course
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.