Use ffmpeg to resize image

后端 未结 4 2078
挽巷
挽巷 2021-01-30 21:17

Is it possible to resize an image using FFMPEG?

I have this so far:

ffmpeg. -i 1.jpg -vf scale=360:240 > 2.jpg

I get the error messa

4条回答
  •  眼角桃花
    2021-01-30 21:23

    You can try this:

    ffmpeg -i input.jpg -vf scale=320:240 output_320x240.png
    

    I got this from source

    Note: The scale filter can also automatically calculate a dimension while preserving the aspect ratio: scale=320:-1, or scale=-1:240

提交回复
热议问题