<p>I have a ffmpeg command that allows me to drop duplicate frames and speed up the video and works well. I use it with hundreds of video recordings from a surveillance ip camera that does not have motion detection feature.</p>

<p>But, the files still have 1 frame per each second still because the video has a timestamp at the top, so I want to know if I could drop those still frames too somehow.</p>

<p>This is my current command:</p>

<pre><code>ffmpeg -n -threads 2 -i input.mp4 -vf "mpdecimate,setpts=N/(25*TB)" -preset superfast -crf 30.0 -vcodec libx264 -movflags +faststart ouput.mp4
</code></pre>

<p>This is a sample screenshot showing the timestamp embedded on the video:
<a href="https://i.sstatic.net/6E4Mc.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/6E4Mc.jpg" alt="enter image description here"></a>
There is some way to achieve this ?</p>

CC BY-SA 4.0
2019-05-02T06:29:58.010Z
Can you show screenshots of these frames - the two with only the changing timestamp and one before and after those ones?
Gyan
CC BY-SA 4.0
2019-05-02T21:31:27.977Z
I've added a screenshot, with the command above the video run fast, about one minute each 3 seconds (since the source video is near realtime and the command catchs up 25fps so I could se the seconds running realy fast when the image is still but there is no "jumps" in seconds or minutes... I want to add those "jumps" on those many minutes when the image is still and there is no motion. Thanks.
Braian
CC BY-SA 4.0
2019-05-02T21:35:11.057Z
I tried to use dvr-scan too (written in python) but I saw that it reencode the video and I dont trust much on that, I prefer to leave to ffmpeg the re-encoding task. It would be great if dvr-scan could export the timestamp in a ready to use format or even if I could use an image as a mask to mark which regions to watch and which to ignore. But to much hassle.
Braian
<ffmpeg><filter><motion>
How drop still frames with timestamp ffmpeg
Braian
# How drop still frames with timestamp ffmpeg

(Asked by: username_0 on 2019-05-02)

I have a ffmpeg command that allows me to drop duplicate frames and speed up the video and works well. I use it with hundreds of video recordings from a surveillance ip camera that does not have motion detection feature.
But, the files still have 1 frame per each second still because the video has a timestamp at the top, so I want to know if I could drop those still frames too somehow.
This is my current command:
ffmpeg -n -threads 2 -i input.mp4 -vf "mpdecimate,setpts=N/(25*TB)" -preset superfast -crf 30.0 -vcodec libx264 -movflags +faststart ouput.mp4

This is a sample screenshot showing the timestamp embedded on the video:

There is some way to achieve this ?

**Tags:** ffmpeg, filter, motion

> **Comments:**
> **username_1**: Can you show screenshots of these frames - the two with only the changing timestamp and one before and after those ones?  
> **username_0**: I've added a screenshot, with the command above the video run fast, about one minute each 3 seconds (since the source video is near realtime and the command catchs up 25fps so I could se the seconds running realy fast when the image is still but there is no "jumps" in seconds or minutes... I want to add those "jumps" on those many minutes when the image is still and there is no motion. Thanks.  
> **username_0**: I tried to use dvr-scan too (written in python) but I saw that it reencode the video and I dont trust much on that, I prefer to leave to ffmpeg the re-encoding task. It would be great if dvr-scan could export the timestamp in a ready to use format or even if I could use an image as a mask to mark which regions to watch and which to ignore. But to much hassle.  

---

## 0 answers

