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/28 15:30] 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> 
- 
----- 
- 
-===== 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://trac.ffmpeg.org/wiki/Scaling 
- 
-https://superuser.com/questions/547296/resizing-videos-with-ffmpeg-avconv-to-fit-into-static-sized-player/1136305#1136305 
ffmpeg/video_resize.1714318209.txt.gz · Last modified: 2024/04/28 15:30 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki