Last active
August 5, 2020 16:37
-
-
Save magsol/f2961e0c8bfeee56339973773c8b6d8a to your computer and use it in GitHub Desktop.
ffmpeg video format conversion
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
# converts vidfile.avi to vidfile.mov | |
# re-encodes video using h264 codec | |
# This is good for, e.g., creating a video to post to instagram. | |
ffmpeg -i vidfile.avi -c:v h264 vidfile.mov | |
# This is good for, e.g., creating a video to embed in PPTX. | |
ffmpeg -i vidfile.avi -pix_fmt yuv420p vidfile.mov | |
# see the list of available codecs | |
ffmpeg -codecs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment