Skip to content

Instantly share code, notes, and snippets.

@NaanProphet
Created January 16, 2016 15:28
Show Gist options
  • Save NaanProphet/6ab663a118f9a7afb2ec to your computer and use it in GitHub Desktop.
Save NaanProphet/6ab663a118f9a7afb2ec to your computer and use it in GitHub Desktop.
YouTube mkvWrapper
#!/bin/bash
# mkvWrapper.sh
# helpful for rewrapping valid MOV exports from Compressor 4 into MKVs that can be batched to YouTube for faster processing
# USAGE
# sh mkvWrapper.sh "Compressor Export-MPEG4_HighQ to YT.mov"
# OUTPUT
# Compressor Export-MPEG4_HighQ to YT.mkv
filename="${1##*/}"
ffmpeg -sub_charenc MAC -i "${1}" -acodec copy -vcodec copy "${filename}.mkv"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment