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

Olivier Marty a7c355bc6b Add shift controls and remove a todo in readme před 9 roky
LICENSE 5583893e74 Initial commit před 10 roky
Makefile 3abd4a2f12 New implementation with a state machine před 9 roky
README.md 7bbac658bf Add shift controls and remove a todo in readme před 9 roky
events.c 3abd4a2f12 New implementation with a state machine před 9 roky
events.h 3abd4a2f12 New implementation with a state machine před 9 roky
main.c 9bee64fc3e Read first events před 9 roky
parser.c ee39b59768 fix email před 10 roky
parser.h ee39b59768 fix email před 10 roky
printer.c c5f568eb1b Manages mutliple subtitles at the same time před 9 roky
printer.h c5f568eb1b Manages mutliple subtitles at the same time před 9 roky
rich_text.c 3abd4a2f12 New implementation with a state machine před 9 roky
rich_text.h 3abd4a2f12 New implementation with a state machine před 9 roky
time.c 9383a94991 Remove functions timeSleep and timeSleepUntil, add timeShift před 9 roky
time.h 9383a94991 Remove functions timeSleep and timeSleepUntil, add timeShift před 9 roky

README.md

SubtitlesPrinter

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

Requirement

This program uses X11 to show subtitles.

Currently, this program support only .srt subtitles. Please check also there is no empty line at the beginning of the file, or some unprintable characters before the first "1". You can see the specs of this format 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 (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, or to change the delay before starting. 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.