Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to do compress video in linux

ffmpeg -i input.mp4 -vcodec libx265 -crf 20 output.mp4
# The higher the crf value, the smaller is the file size and decrease in video quality. So, you can use the crf value as 0 if you want lossless compression. However, that would lead to greater file size.
 
PREVIOUS NEXT
Tagged: #compress #video #linux
ADD COMMENT
Topic
Name
6+3 =