Skip to content

Instantly share code, notes, and snippets.

@alfredormz
Created June 17, 2012 05:40
Show Gist options
  • Save alfredormz/2943530 to your computer and use it in GitHub Desktop.
Save alfredormz/2943530 to your computer and use it in GitHub Desktop.
Script to convert .mov files to mp4
file_path=$1
count=0
for file in $file_path/*mov ; do
ffmpeg -i "$file" -vcodec copy -acodec copy "${file%.*}".mp4
rm "$file"
let count=count+1
done
notify-send ".mov 2 .mp4 convertion" "$count files converted" --icon=totem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment