No description
Find a file
2015-08-13 23:20:23 -03:00
events.c fix a warning 2015-08-11 13:36:42 -03:00
events.h shrink space at end of lines 2015-08-11 16:45:52 -03:00
example.srt Add other subtitles format 2015-08-11 20:51:06 -03:00
example.sub Add other subtitles format 2015-08-11 20:51:06 -03:00
example.sub2 Add other subtitles format 2015-08-11 20:51:06 -03:00
example.vtt Add other subtitles format 2015-08-11 20:51:06 -03:00
LICENSE shrink space at end of lines 2015-08-11 16:45:52 -03:00
main.c Add other subtitles format 2015-08-11 20:51:06 -03:00
Makefile Add other subtitles format 2015-08-11 20:51:06 -03:00
parser.c Add other subtitles format 2015-08-11 20:51:06 -03:00
parser.h Add other subtitles format 2015-08-11 20:51:06 -03:00
parser_srt.c Improve parsers 2015-08-13 23:20:23 -03:00
parser_sub.c Improve parsers 2015-08-13 23:20:23 -03:00
parser_sub2.c Improve parsers 2015-08-13 23:20:23 -03:00
parser_vtt.c Improve parsers 2015-08-13 23:20:23 -03:00
printer.c shrink space at end of lines 2015-08-11 16:45:52 -03:00
printer.h shrink space at end of lines 2015-08-11 16:45:52 -03:00
README.md Add other subtitles format 2015-08-11 20:51:06 -03:00
rich_text.c fix a warning 2015-08-11 13:36:42 -03:00
rich_text.h New implementation with a state machine 2015-02-02 22:06:21 +01:00
time.c Add other subtitles format 2015-08-11 20:51:06 -03:00
time.h Remove functions timeSleep and timeSleepUntil, add timeShift 2015-02-02 22:27:20 +01:00

SubtitlesPrinter

Print subtitles above a X-screen, independently of the video player.

Requirement

This program uses X11 to show subtitles.

This program support .srt, .vtt, and two .sub subtitles types. Please check also there is no empty line at the beginning of the file, or some unprintable characters before the first character. You can see the specs of format .srt here : http://matroska.org/technical/specs/subtitles/srt.html

To have transparency between subtitles, try to launch xcompmgr before subtitlesPrinter.

Installation

Run in a terminal

git clone https://github.com/OlivierMarty/SubtitlesPrinter.git
make
sudo make install

Usage

To show file.srt, run in a terminal :

subtitlesPrinter file.srt

Controls

To quit, press CTRL+C in the terminal. To pause and resume, press space anywhere (badly this does not work with all windows). To shift the clock, press left and right arrows.

Optional arguments

It is possible to skip x seconds with option -s, and to scale time with option -t. For other parameters and details see

subtitlesPrinter -h

TODO

  • Support more type of file (with an extern library ?)

Every improvement is welcome !

LICENSE

This program is under GPLv2 licence, see LICENCE file for more details.