User Tools

Site Tools


ffmpeg:video_resize

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ffmpeg:video_resize [2024/04/29 09:20] peterffmpeg:video_resize [2025/01/12 13:32] (current) – removed peter
Line 1: Line 1:
-====== ffmpeg - Video resize ====== 
- 
-<code bash> 
--vf scale=width:height  
-</code> 
- 
----- 
- 
-===== Upscaling Video to 1080p ===== 
- 
-<code bash> 
-ffmpeg -i input.mp4 -vf scale=1920x1080:flags=lanczos -c:v libx264 -preset slow -crf 21 output_compress_1080p.mp4 
-</code> 
- 
-<WRAP info> 
-**NOTE:**  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 downsampling. 
- 
-</WRAP> 
- 
----- 
- 
-===== Upscaling Video to 4K ===== 
- 
-<code bash> 
-ffmpeg -i input.mp4 -vf scale=3840x2560:flags=lanczos -c:v libx264 -preset slow -crf 21 output_compress_4k.mp4 
-</code> 
- 
- 
- 
----- 
- 
-===== Downscaling Video ===== 
- 
-<code bash> 
-ffmpeg -i input.mp4 -vf scale=640x480:flags=lanczos -c:v libx264 -preset slow -crf 21 output_compress_480p.mp4 
-</code> 
- 
----- 
- 
-===== References ===== 
- 
-https://write.corbpie.com/upscaling-and-downscaling-video-with-ffmpeg/ 
- 
-https://trac.ffmpeg.org/wiki/Scaling 
- 
-https://write.corbpie.com/a-guide-to-upscaling-or-downscaling-video-with-ffmpeg/ 
- 
-https://superuser.com/questions/547296/resizing-videos-with-ffmpeg-avconv-to-fit-into-static-sized-player/1136305#1136305 
- 
-https://en.wikipedia.org/wiki/Lanczos_resampling 
  
ffmpeg/video_resize.1714382429.txt.gz · Last modified: 2024/04/29 09:20 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki