Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ffmpeg shrink video size

 ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4
Comment

ffmpeg resize video

ffmpeg -i input.avi -vf scale=320:240 output.avi
Comment

reduce file size of mp4 using ffmpeg

ffmpeg -i input.mp4 -vcodec libx264 -crf 24 output.mp4
Comment

video upscale ffmpeg

ffmpeg -i input.mp4 -vf scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:-1:-1,setsar=1 -r 60 output.mp4
Comment

ffmpeg reduce video size

$ ffmpeg -i "[inputName.mp4]" -vcodec [libx265]  -crf [28] "[outputName.mp4]"
# vcodec: libx265 for HVEC or libx264 for H.264
# crf: ranges form 0-51, (Value > less quality & size), (Value < Higher quality & size, size can get higher than the original size)
# To ouput Matroska/Mkv ad: -f matroska
Comment

ffmpeg video size reduction

 ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4
Comment

ffmpeg reduce video size

ffmpeg -i input.mp4 -fs 100M output.mp4

ffmpeg -i input.mp4 -vcodec libx264 -crf 24 output.mp4
Comment

PREVIOUS NEXT
Code Example
Shell :: linux hex to dec 
Shell :: git stash save 
Shell :: start arangodb 
Shell :: Unsupported upgrade request. 
Shell :: pip remove package 
Shell :: how to check whats using my space linux 
Shell :: onlne compiler c linux 
Shell :: merge git branch 
Shell :: zoom is not open in ubutnu 
Shell :: bash calculate sum 
Shell :: apt vs apt get 
Shell :: Regex: Match Last Occurrence aka Negative Lookbehind 
Shell :: how to add color in shell script 
Shell :: remove folder from gitlab main branch repository 
Shell :: git undo unstaged changes to one file 
Shell :: ssh login 
Shell :: npm install express 
Shell :: install tree in centos 7 
Shell :: how to run .rpm file in linux 
Shell :: Delete untracked file or discard unstaged work 
Shell :: create a new repository using command line 
Shell :: how to remove spaces at end of line linux 
Shell :: php artisan doctrine migrations add all 
Shell :: homebrew without sudo 
Shell :: ubuntu customize Bash prompt 
Shell :: download office 365 for ubuntu 
Shell :: terminal shortcut ubuntu 
Shell :: delete first two lines of file linux 
Shell :: debian install docker 
Shell :: change group ownership linux 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =