Skip to content

Instantly share code, notes, and snippets.

@xorrbit
Created June 9, 2014 14:54
Show Gist options
  • Save xorrbit/702eecb2d88395a8f86d to your computer and use it in GitHub Desktop.
Save xorrbit/702eecb2d88395a8f86d to your computer and use it in GitHub Desktop.
shell script to convert mjpeg camera videos to a sane format (x264/aac in an mp4 container).
for FILE in `ls *AVI | sort` ; do
avidemux --nogui --output-format MP4 --video-codec x264 --audio-codec aac --load "$FILE" --save ${FILE%.*}.mp4 --quit
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment