Print subtitles above a X-screen, independently of the video player.
Olivier Marty 42e1dfc316 Improve parsers | 9 years ago | |
---|---|---|
LICENSE | 9 years ago | |
Makefile | 9 years ago | |
README.md | 9 years ago | |
events.c | 9 years ago | |
events.h | 9 years ago | |
example.srt | 9 years ago | |
example.sub | 9 years ago | |
example.sub2 | 9 years ago | |
example.vtt | 9 years ago | |
main.c | 9 years ago | |
parser.c | 9 years ago | |
parser.h | 9 years ago | |
parser_srt.c | 9 years ago | |
parser_sub.c | 9 years ago | |
parser_sub2.c | 9 years ago | |
parser_vtt.c | 9 years ago | |
printer.c | 9 years ago | |
printer.h | 9 years ago | |
rich_text.c | 9 years ago | |
rich_text.h | 10 years ago | |
time.c | 9 years ago | |
time.h | 10 years ago |
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.