Play subtitle on -it's own separate- screen according to is's timestamp. It's useful to movie player which don't have subtitle capability (like DLNA player).
Contribute to my mother who complained about absence of Korean subtitle on a movie, TombRaider.
Install dependency packages:
$ sudo apt-get install libsdl1.2-dev libsdl-mixer* libsdl-image* libsdl-ttf*
On under Ubuntu 12.10, need to make SDL_ttf.pc
to /usr/lib/pkgconfig
with
following context:
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: SDL_ttf
Description: ttf library for Simple DirectMedia Layer with FreeType 2 support
Version: @VERSION@
Requires: sdl >= @SDL_VERSION@
Libs: -L${libdir} -lSDL_ttf
Cflags: -I${includedir}/SDL
Read more about this issue.
$ go get
$ go build
$ go install
Run with your subtitle. Currently only SRT is supported
$ subtitle-raider example.srt
<
and>
: Set to prev/next script+
and-
: increase/decrease font size by 5left
andright
: Adjust vias to -/+ 1 secondsup
anddown
: Adjust vias to -/+ 10 secondsz
andx
: Adjust vias to -/+ 0.1 secondsq
: Quit