R
R
Rustam Salavatov2014-11-04 14:34:08
bash
Rustam Salavatov, 2014-11-04 14:34:08

How to crop video 4:3 to 16:9 and max resolution 480p in ffmpeg?

good afternoon
, there is a different video
that needs to be batch processed to a format of 16:9 - 854 * 480
, if it is included in 4:3, then it is simply stretched, but you need to crop it to a size of 16:9, reducing a bit from above and below.
if the size of the incoming 320*240 is acceptable, then you don't need to pull it up to 854*480, you need to leave the big side 320 and aspect 16:9
now the following command:

ffmpeg -y -i "/home/ubuntu/input/test_render/111.3gp" -s 854x480 -aspect 16:9  -b 2500k -bt 2500k -preset slow -vcodec libx264 -threads 4  "/home/ubuntu/input/test_render/out/new111.mp4"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rustam Salavatov, 2014-11-04
@fortunato

I have done so far

-vf " rotate=0*(PI/180), hqdn3d=1.5:1.5:6:6,  scale=min(856\,iw):trunc(ow/a/2)*2+1:-1, scale=iw*sar:ih, crop=min(iw\,ih*(16/9)):ow/(16/9)"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question