I have a video with a size of 515 x 755
, that I would like to resize proportionally to 206 x 302
(so, factor is 2.5
).
In this video, I have the total of 588 frames, and I use ffmpeg
to scale it, with this command.
ffmpeg -i video.mp4 -vf scale=206:-1 xRotation_206.mp4
And I use this to check how many frames are there in the video, based on this answer.
ffmpeg -i video.mp4 -map 0:v:0 -c copy -f null - 2>&1 | awk '/frame=/ {print $2}'
The original video frames is good (588 frames). But, after resizing with the command above, my converted video now has 604 frames.
The question is, how can I resize the video by preserving the total frames in it? It doesn't really have to be ffmpeg
approach, and any suggestion is appreciated.
Here's the sample video that I use: Link