Difference between revisions of "FFMPEG"

From rbachwiki
Jump to navigation Jump to search
(Created page with "==Resize Image == '''Resize With only, keep height same ratio''' ffmpeg -i input.jpg -vf scale=1280:-1 output.jpg")
 
 
Line 3: Line 3:


  ffmpeg -i input.jpg -vf scale=1280:-1 output.jpg
  ffmpeg -i input.jpg -vf scale=1280:-1 output.jpg
'''or if you want to resize based on input width and height, let's say half of input width and height you can do -'''
ffmpeg -i 1.jpg -vf scale="iw/1:ih/2" 2.jpg
'''where'''
iw: input width
ih: input height

Latest revision as of 19:45, 26 June 2025

Resize Image

Resize With only, keep height same ratio

ffmpeg -i input.jpg -vf scale=1280:-1 output.jpg

or if you want to resize based on input width and height, let's say half of input width and height you can do -

ffmpeg -i 1.jpg -vf scale="iw/1:ih/2" 2.jpg

where

iw: input width
ih: input height