Skip to content

Instantly share code, notes, and snippets.

@s4y
Created March 4, 2019 19:06
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 s4y/8b74130d4dfa5ce814d6fc79813a4516 to your computer and use it in GitHub Desktop.
Save s4y/8b74130d4dfa5ce814d6fc79813a4516 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [[ $# < 1 ]]; then
echo "usage: $0 input.mov [ffmpeg_opts]..." 1>&2
exit 1
fi
infile="$1"
shift
outfile="${infile%.*}.mp4"
ffmpeg -i "$infile" -profile:v main -level 3.1 -preset medium "$@" "$outfile"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment