Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

7/8/24, 11:09 PM Ffmpeg: How to resize video to 50% of original size - OneLinerHub

Join

9951 explained code solutions for 126 technologies

Search for code...

Ffmpeg

How to resize video to 50% of original size

ctrl + c

ffmpeg -i in.mp4 -vf 'scale=-1:ih/2' out.mp4


youtube github

-i in.mp4 input video file

-vf apply specific video filters

scale= scale video

-1 width will be automatically calculated based on aspect ratio

ih/2 height is calculated as half of input height ih

out.mp4 resulting video file

https://onelinerhub.com/ffmpeg/how-to-resize-video-to-50-of-original-size 1/2
7/8/24, 11:09 PM Ffmpeg: How to resize video to 50% of original size - OneLinerHub

Related
How to resize video to 1080p
How to resize video to 720p
How to resize video to 480p
How to resize video

More of Ffmpeg
How to convert AV1 to H.264
How to use filter_complex to apply filters to videos
How to download m3u8 steam and save to mp4
How to list supported pixel formats
How to delay (sync with video) audio channel in video file
How to reduce background audio noise using arnndn (neural network models)
How to reduce background audio noise using afftdn
Convert video from H.265 to H.264 codec
How to set transparency for overlay image on video
Ffmpeg output to stdout

See more codes...

Fresh All techs GitHub Data & Programming blog by Denys Golotiuk

https://onelinerhub.com/ffmpeg/how-to-resize-video-to-50-of-original-size 2/2

You might also like