3000 explained code solutions for 75 technologies


ffmpegScaling video with zscale filter example


ffmpeg -i in.mp4 -vf zscale=w=-1:h=180 out.mp4ctrl + c
-i in.mp4

input video file

-vf

apply specific video filters

zscale=

apply zscale filter

w=-1

calculate width automatically based on aspect ratio

h=180

set height to 180 pixels

out.mp4

resulting video file