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

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

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.