Skip to content

Instantly share code, notes, and snippets.

@kpping
Created December 11, 2018 04:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kpping/09947529f588e59e72e3b5dd5446113a to your computer and use it in GitHub Desktop.
Save kpping/09947529f588e59e72e3b5dd5446113a to your computer and use it in GitHub Desktop.
Reduced video quality
#!/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