I have a security cam footage, which I'd like to remove all frames from which are don't contain any change. I followed the question and answer on Remove sequentially duplicate frames when using FFmpeg
But my footage has a timestamp as part of the picture, so even if the image itself doesn't change, the timestamp still changes every second.
My idea to ignore the timestamp for the mpdecimate option on ffmpeg:
- The original file is called
security_footage.mp4
- Crop the timestamp away, using IMovie, creates file:
security_footage_cropped.mp4
- Run
ffmpeg -i security_footage_cropped.mp4 -vf mpdecimate -loglevel debug -f null - > framedrop.log 2>&1
to get a log of all frames that are to drop from the file - Somehow apply the log
framedrop.log
ofsecurity_footage_cropped.mp4
to the original filesecurity_footage.mp4
.
Question1: Anyone has a good idea how I could do number 3? Apply the mpdecimate filter log onto another video file.
If not, anyone has a good idea how to run mpdecimate with ignoring the timestamp in the top left corner?
Thanks in advance for any help!