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