Skip to content

Instantly share code, notes, and snippets.

@shanecelis
Created January 19, 2018 21:54
Show Gist options
  • Save shanecelis/e0334d1fabe24b1c0cd8f5fd5e5640a0 to your computer and use it in GitHub Desktop.
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.
#!/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