Created
December 11, 2018 04:22
-
-
Save kpping/09947529f588e59e72e3b5dd5446113a to your computer and use it in GitHub Desktop.
Reduced video quality
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
FILE_IN="video.mp4" # in | |
REDUCED_VALUE=24 # integer | |
FILE_OUT="reduced_quality_video.mp4" # out | |
# reduced + no sound (with -an option) | |
ffmpeg -i $FILE_IN -vcodec libx264 -crf $REDUCED_VALUE -an $FILE_OUT | |
# only reduced | |
ffmpeg -i $FILE_IN -vcodec libx264 -crf $REDUCED_VALUE $FILE_OUT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment