Skip to content

Instantly share code, notes, and snippets.

@geeknees
Last active August 16, 2017 01:51
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 geeknees/809a970451fa85456c94830583fcb9e8 to your computer and use it in GitHub Desktop.
Save geeknees/809a970451fa85456c94830583fcb9e8 to your computer and use it in GitHub Desktop.
convert_mkv_to_mp4.sh
DIRPATH=$1
for FILE in ${DIRPATH}*.mkv; do ffmpeg -i "${FILE}" -vcodec copy -acodec aac -strict experimental -ab 128k -aprofile aac_low -ac 2 -ar 44100 "${FILE%.mkv}.mp4"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment