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

Olivier Marty 42e1dfc316 Improve parsers 9 жил өмнө
LICENSE a359d67686 shrink space at end of lines 9 жил өмнө
Makefile a4d61080d0 Add other subtitles format 9 жил өмнө
README.md a4d61080d0 Add other subtitles format 9 жил өмнө
events.c 697358c0e6 fix a warning 9 жил өмнө
events.h a359d67686 shrink space at end of lines 9 жил өмнө
example.srt a4d61080d0 Add other subtitles format 9 жил өмнө
example.sub a4d61080d0 Add other subtitles format 9 жил өмнө
example.sub2 a4d61080d0 Add other subtitles format 9 жил өмнө
example.vtt a4d61080d0 Add other subtitles format 9 жил өмнө
main.c a4d61080d0 Add other subtitles format 9 жил өмнө
parser.c a4d61080d0 Add other subtitles format 9 жил өмнө
parser.h a4d61080d0 Add other subtitles format 9 жил өмнө
parser_srt.c 42e1dfc316 Improve parsers 9 жил өмнө
parser_sub.c 42e1dfc316 Improve parsers 9 жил өмнө
parser_sub2.c 42e1dfc316 Improve parsers 9 жил өмнө
parser_vtt.c 42e1dfc316 Improve parsers 9 жил өмнө
printer.c a359d67686 shrink space at end of lines 9 жил өмнө
printer.h a359d67686 shrink space at end of lines 9 жил өмнө
rich_text.c 697358c0e6 fix a warning 9 жил өмнө
rich_text.h 3abd4a2f12 New implementation with a state machine 9 жил өмнө
time.c a4d61080d0 Add other subtitles format 9 жил өмнө
time.h 9383a94991 Remove functions timeSleep and timeSleepUntil, add timeShift 9 жил өмнө

README.md

SubtitlesPrinter

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

Requirement

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.

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 (badly 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 with option -s, and to scale time with option -t. 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.