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

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 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 :: apt get install reinstall 
Shell :: How to solve Unable to negotiate with 199.188.200.141 port 21098: no matching host key type found. Their offer: ssh-rsa,ssh-dss 
Shell :: shopify theme kit for linux 
Shell :: composer require laravel/ui app.css empty 
Shell :: how understand what files we commited in git 
Shell :: git pull and overwrite 
Shell :: redis cli docker 
Shell :: requires pyqtwebengine<5.13, which is not installed. 
Shell :: how to get the folder size in linux 
Shell :: find git remote url 
Shell :: how to remove git hooks 
Shell :: ffmpeg cutting time video 
Shell :: git stash all changes 
Shell :: stop recording shortcut ubuntu 22.04 
Shell :: take ownership directory linux 
Shell :: count the number of unique elements in a column bash 
Shell :: bash iterate over list of files 
Shell :: git clone branch from repo 
Shell :: dexie nuxt 
Shell :: refs/heads/master:refs/heads/master [rejected] (non-fast-forward) 
Shell :: how to download youtube vides on linux 
Shell :: E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) 
Shell :: brew upgrade except 
Shell :: resize image linux command line 
Shell :: reload bash 
Shell :: install qemu-img 
Shell :: clear ram cache linux 
Shell :: redis show all keys 
Shell :: vlc linux 
Shell :: install lunar vim 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =