whugemann
16th August 2011, 20:53
Hi all,
I have to deal with security cam videos transferred to "normal" video. The point is that the recordings of a security cam are mostly in propriatory format. When some video evidence is secured, the recording is transferred to MPEG with a constant frame rate, say 25 fps.
The framerate of the security cam is however much lower, typically about 1 fps, and not always constant. It can go up and down, according to the video content or what other cameras have to be served by the recorder.
So what we see is typically a sequence of identical frames, say 15, and than the change to a new frame content, which then stays the same for qite a lot of frames, too.
I would like to extract only the first frame of each of these sequences.
I have come so far that I can write the relevant frame number to a file:
Clip=DirectShowSource("test.mpg")
WriteFileIf(clip,"test.txt","YDifferenceFromPrevious>3","current_frame",append=false)
This is quite helpful, but could I also somehow dump those frames as JPEGs or concatenate them to a new clip?
Wolfgang Hugemann
I have to deal with security cam videos transferred to "normal" video. The point is that the recordings of a security cam are mostly in propriatory format. When some video evidence is secured, the recording is transferred to MPEG with a constant frame rate, say 25 fps.
The framerate of the security cam is however much lower, typically about 1 fps, and not always constant. It can go up and down, according to the video content or what other cameras have to be served by the recorder.
So what we see is typically a sequence of identical frames, say 15, and than the change to a new frame content, which then stays the same for qite a lot of frames, too.
I would like to extract only the first frame of each of these sequences.
I have come so far that I can write the relevant frame number to a file:
Clip=DirectShowSource("test.mpg")
WriteFileIf(clip,"test.txt","YDifferenceFromPrevious>3","current_frame",append=false)
This is quite helpful, but could I also somehow dump those frames as JPEGs or concatenate them to a new clip?
Wolfgang Hugemann