9951 explained code solutions for 126 technologies


ffmpegHow to change video resolution and keep aspect ratio


In order to keep aspect ratio, set only one target dimension (width or height) and leave the other one as -1: