Skip to content

Instantly share code, notes, and snippets.

@RoxasShadow
Created September 1, 2013 11:28
Show Gist options
  • Select an option

  • Save RoxasShadow/6403869 to your computer and use it in GitHub Desktop.

Select an option

Save RoxasShadow/6403869 to your computer and use it in GitHub Desktop.
abort 'mkv needed' if ARGV.empty?
input = ARGV[0]
folder = File.dirname input
target = folder + '\\' + (ARGV[1] || (File.basename(input) + '.ass'))
system "mkvextract tracks \"#{input}\" 2:\"#{target}\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment