Created
January 19, 2018 21:54
-
-
Save shanecelis/e0334d1fabe24b1c0cd8f5fd5e5640a0 to your computer and use it in GitHub Desktop.
Convert a movie, typically recorded by QuickTime Player, into something Twitter will accept.
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
#!/bin/bash | |
# twitter-mov-to-mp4 | |
# | |
# Convert a movie, typically recorded by QuickTime Player, into something Twitter will accept. | |
# | |
# e.g. $ twitter-mov-to-mp4 screencapture.{mov,mp4} | |
if [ $# -ne 2 ]; then | |
echo "usage: $0 <in.mov> <out.mp4>" >&2; | |
exit 2; | |
fi | |
ffmpeg -i "$1" -r 30 -strict -2 "$2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment