Last active
September 17, 2022 12:52
-
-
Save YuanLiou/50e768271afb14f76814dbd243446a1a to your computer and use it in GitHub Desktop.
FFMPEG optimize video file
This file contains hidden or 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
# Optimize mp4 | |
# Usage: optimizeVideo video_file | |
optimizeVideo() { | |
ffmpeg -i "${1}" -vcodec h264 -acodec mp2 "${1}".mp4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment