User Tools

Site Tools


ffmpeg:video:resize:convert_to_1080p_1920x1080

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ffmpeg:video:resize:convert_to_1080p_1920x1080 [2025/01/29 22:27] – created peterffmpeg:video:resize:convert_to_1080p_1920x1080 [2025/01/29 22:36] (current) peter
Line 1: Line 1:
 ====== ffmpeg - Video - Resize - Convert to 1080p (1920x1080) ====== ====== ffmpeg - Video - Resize - Convert to 1080p (1920x1080) ======
  
 +<code bash>
 +ffmpeg -i input.mp4 -vf "scale=1920:1080" -c:v libx264 -crf 23 -c:a copy output.mp4
 +</code>
 +
 +----
 +
 +===== For enhanced quality =====
 +
 +<code bash>
 +ffmpeg -i input.mp4 -vf "scale=1920:1080:flags=lanczos" -c:v libx264 -crf 23 -c:a copy output.mp4
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  This uses the **Lanczos** scaling algorithm, which can provide better results for upscaling.
 +
 +Lanczos resampling involves a sinc filter as well.
 +
 +  * It is more computationally expensive but usually described as very high quality and can be used for up- and down-sampling.
 +
 +</WRAP>
 +
 +----
 +
 +===== Using GPU =====
 +
 +<code bash>
 +ffmpeg -vaapi_device /dev/dri/renderD128 -i "input.mkv" -vf 'hwupload,scale_vaapi=w=1920:h=1080:format=nv12' -map 0:v -metadata:s:v:0 language=eng -c:v hevc_vaapi -map 0:a -metadata:s:a:0 language=eng -map 0:s? -metadata:s:s:0 language=eng -rc_mode CQP -global_quality 25 -c:a copy -c:s copy -profile:v main -v verbose output.mkv
 +</code>
 +
 +----
ffmpeg/video/resize/convert_to_1080p_1920x1080.1738189653.txt.gz · Last modified: 2025/01/29 22:27 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki