R
R
rain1392020-05-05 22:13:08
PHP
rain139, 2020-05-05 22:13:08

Crop video 4k and 6k using ffmpeg. How can I make sure everyone is the same size?

There are 4k and 6k videos, they must be brought to the same size (hd). But when I sprinkle with ffmpeg:

ffmpeg -i 'video.mp4' -profile:v high -pix_fmt yuv420p -s hd720 'output.mp4'


But the output is hd video but with different size:

6k crop result: https://isportstock.com/preview/video/bv8ztdpp12q0p.mp4
4k crop result: https://isportstock.com/preview/video/adagh5v86yk3q.mp4

How make sure everyone is the same size?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim Vergasov, 2020-05-05
@VadVergasov

Well, they have the same resolution, just a different bitrate -> size. Lock the bitrate like this:
ffmpeg -i 'video.mp4' -b 4000k -minrate 4000k -maxrate 4000k -profile:v high -pix_fmt yuv420p -s hd720 'output.mp4'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question