S
S
swyt2021-01-16 23:10:12
fmpeg
swyt, 2021-01-16 23:10:12

Is it possible to crop a video frame by frame in ffmpeg?

There is a video in which 1077 frames and the first frame in it is superfluous, is it possible to cut it with ffmpeg?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2021-01-16
@sergiks

They write that since version 2.1 ffmpeg is accurate-to-frame in search.
Then you can calculate the time of 1 frame (depends on the frame rate of the video), and start after it:

ffmpeg -ss 0.04 -i source.mp4 -c:v copy  output.mp4
Here 0.04 seconds is the duration of 1 frame at 25 fps = 1/25 second.
Plan-B: output frames as pictures, remove unwanted ones, compile video.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question