Using FFmpeg to scale or change the resolution of a video is done by the scale filter in FFmpeg. To use the scale filter, use the following command – where, $w and $h denote the required width and height of the destination video. For example, you could use -vf scale=640:480 to resize your video to 480p. That’s it! There is bound to be a few compression losses during the scaling process. If the input resolution is too low, FFmpeg offers a neat trick to prevent upscaling. In the command line above, the minimum width/height to perform scaling is set to 320 and 240 pixels respectively. 4:3 with "skinny" people, try adjusting the PAR, but, without re-coding. 2. ffmpeg -i input.mp4 -vf "scale=480:320" output_320.mp4. 1) ffmpeg 's -aspect x:y is really affecting the DAR (display aspect ratio) at the container level, mp4box writes data as PAR (pixel aspect ratio), also known as SAR (sample aspect ratio) at the bitstream level in the header as a VUI parameter. How to Resize Video and Make it Smaller with FFmpeg Instead of manually entering the x value we'll use iw and subtract 100 pixels from it: ffmpeg -i input.mp4 -filter:v "crop=100:100:iw-100:0" output.mp4. FFmpeg can be used to cahnge the resolution and aspect ratio of images and videos. ffmpeg -i aspect_ratio_change.ts -vf fps=1,scale=h=ih:w=sar*iw out_%3d.jpeg The first image (before the aspect ratio change) has 768x576 [SAR 1:1 DAR 4:3] which is perfect! To demonstrate, assume the following commands take a HD video ( 1920x1080) as its input. 3.eg .ffmpeg - i input.png -vf scale=310:240 output.png The above command simply scale image to the given size width 400 px and height 400 px but the images aspect ratio may be destroy . ignoring aspect ration in iff demuxer seems to fix ffplay's displayed aspect ratio. How can I limit output video by width, with auto aspect ratio by height? Change video resolution using ffmpeg - ncona.com So I changed mm_ffmpeg.module to match what I need. This adds the overlay, but it stretches it to the same aspect ratio of the video which is what I'm trying to avoid: ffmpeg -y -i video.mov -i watermark.png -filter_complex "scale=-1:1280:flags=bicubic,overlay=(main_w-overlay_w)/2:main_h-overlay_h" -crf 0 -preset ultrafast -c:v mpeg4 -qscale:v 10 -c:a: copy out.mp4 To retain the aspect ratio of your video, you first need to input your video width specifics. FFMPEG Command to Change Video Resolution and Aspect Ratio … Resize to given width and height. 1920x1080 aspect ratio 16:9 => 640x480 aspect 4:3: ffmpeg -y -i import.media -aspect 16:9 scale=640x360,pad=640:480:0:60:black output.media aspect ratio 16:9 , size width 640pixel => height 360pixel: With final output size 640x480, and pad 60pixel black image (top and bottom): "-vf scale=640x360,pad=640:480:0:60:black"