Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am barlog951 on github.
  • I am mr_fuki (https://keybase.io/mr_fuki) on keybase.
  • I have a public key ASAzEeXXz9weR6pEg-7nrtaIz50tBeVxShT5A19wWwm3_Ao

To claim this, I am signing this object:

@Barlog951
Barlog951 / subtitle-extract.md
Created January 19, 2018 00:20 — forked from pavelbinar/extract-subtitles-from-mkv.md
Extract subtitles from *.mkv files on Mac OS X

Extract Subtitles From .mkv

This instructions whall work on any system (Mac OS X, Linux) supporting installation of mkvtoolnix

Install mkvtoolnix

If you don't have Homebrew installed, do it first, the continue with following command:

brew install mkvtoolnix
@Barlog951
Barlog951 / utf_convert
Last active September 22, 2016 16:20
Automated subtitles convert to UTF-8
#!/bin/bash
LANGUAGE=czech
TO=utf8
CONVERT="enca -L $LANGUAGE -x $TO"
# Find and onvert
find ./ -type f -name "*.srt" | while read fn; do
IS_TARGET=`enca "${fn}" | egrep -ow -m 1 'UTF-8|Unrecognized|KOI8-CS2|7bit ASCII|UCS-2|Macintosh Central European'`
if [ "$IS_TARGET" != "UTF-8" ] &&
@Barlog951
Barlog951 / aautomats_main_info.md
Created September 29, 2015 16:23 — forked from MichalCab/aautomats_main_info.md
Booking automata