

A low quality 480p will struggle to make it at 1080p. I tried adding 0:vscale-1:1080 before hstack but that doesn't work. Average: 4.4 (15 votes) FFmpeg is an extremely versatile video manipulation utility and used by many related software packages. A high bitrate 720p video can look good at 1080p and maybe work at 4k. ffmpeg -i 'video 1.mp4' -i 'video 2.mp4' -c:a copy c:v h264amf -filtercomplex 'hstack,formatyuv420p' 'Output video.mp4' video 1.mp4 is the 720p one video 2.mp4 is the 1080p one I need to keep the audio for the 1st video but not the 2nd one, the 2nd one doesn't have audio. Ffmpeg scale to 1080p Give FFmpeg 4 with NVIDIA Encoding and Decoding support 5/5. The end result is going to depend on your source footage. ffmpeg -i input.mp4 -vf scale=640x480:flags=lanczos -c:v libx264 -preset slow -crf 21 output_compress_480p.mp4Īll you need to do is change the scale= to the dimension you want, then change the output to indicate the video dimensions. To downscale video all you need to know is popular dimensions. To upscale to 4k video: ffmpeg -i input.mp4 -vf scale=3840x2560:flags=lanczos -c:v libx264 -preset slow -crf 21 output_compress_4k.mp4 Downscale with FFmpeg To upscale a video to 1080p whilst encoding it: ffmpeg -i input.mp4 -vf scale=1920x1080:flags=lanczos -c:v libx264 -preset slow -crf 21 output_compress_1080p.mp4 Whilst Lanczos in most cases wont be the sharpest it combines sharpness with smooth to make the footage look better overall, Avoiding blocky footage.

For an excellent source on resampling methods go here. This uses FFmpeg scaling with Lanczos resampling. To change a video file to be 1080p in FFmpeg: ffmpeg -i input.mp4 -vf scale=1920x1080:flags=lanczos output_1080p.mp4 Here are some FFmpeg commands to help you out: Upscale with FFmpeg Making a video smaller (downscaling) or bigger (upscaling) with FFmpeg is actually very easy.
