Last active
November 2, 2016 19:55
-
-
Save mondalaci/5305741 to your computer and use it in GitHub Desktop.
Convert mov to mp4.
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
#!/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