Print subtitles above a X-screen, independently of the video player.
Olivier Marty 42e1dfc316 Improve parsers | 9 anos atrás | |
---|---|---|
LICENSE | 9 anos atrás | |
Makefile | 9 anos atrás | |
README.md | 9 anos atrás | |
events.c | 9 anos atrás | |
events.h | 9 anos atrás | |
example.srt | 9 anos atrás | |
example.sub | 9 anos atrás | |
example.sub2 | 9 anos atrás | |
example.vtt | 9 anos atrás | |
main.c | 9 anos atrás | |
parser.c | 9 anos atrás | |
parser.h | 9 anos atrás | |
parser_srt.c | 9 anos atrás | |
parser_sub.c | 9 anos atrás | |
parser_sub2.c | 9 anos atrás | |
parser_vtt.c | 9 anos atrás | |
printer.c | 9 anos atrás | |
printer.h | 9 anos atrás | |
rich_text.c | 9 anos atrás | |
rich_text.h | 9 anos atrás | |
time.c | 9 anos atrás | |
time.h | 9 anos atrás |
Print subtitles above a X-screen, independently of the video player.
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.
Run in a terminal
git clone https://github.com/OlivierMarty/SubtitlesPrinter.git
make
sudo make install
To show file.srt, run in a terminal :
subtitlesPrinter file.srt
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.
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
Every improvement is welcome !
This program is under GPLv2 licence, see LICENCE file for more details.