Skip to content

Instantly share code, notes, and snippets.

@mondalaci
Last active November 2, 2016 19:55
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 mondalaci/5305741 to your computer and use it in GitHub Desktop.
Save mondalaci/5305741 to your computer and use it in GitHub Desktop.
Convert mov to mp4.
#!/bin/bash
if [[ "$#" -ne "1" ]]; then
echo "Usage: $0 input.mov"
exit
fi
input_mov=$1
output_mp4=${input_mov:0:$((${#input_mov}-4))}.mp4
melt $input_mov -profile hdv_720_30p -consumer avformat:$output_mp4 acodec=libmp3lame ab=128k ar=44100 vcodec=libmpeg4 b=6000k &&
rm $input_mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment