FFmpeg Scaling & Croping

FFmpeg Scaling & Croping

Scale a landscape video to portrait and apply padding top and bottom maintaining aspect ratio

ffmpeg -i joe-bell-trailer-1_h1080p.mov -vf "scale=720:1280:force_original_aspect_ratio=decrease,pad=720:1280:(ow-iw)/2:(oh-ih)/2,setsar=1" news.mp4

Leave a comment

Your email address will not be published. Required fields are marked *