A graphical and command line tool to modify the timeline of subtitles files in SubRip (.srt) and WEBVTT (.vtt) format
Actually available in 3 languages : english, french and spanish. But others can easily be added.
Can be used as a file converter between SubRip and WEBVTT format.
Also allows to export to CSV format.
You can download a binary version of this tool in the "Release" link.
Available to five Linux distros (Arch
, Debian
, Fedora
, OpenSUSE
, Ubuntu
)
It should also be possible to build and deliver it for macOS .
After the download, just run the setup or unzip the zip ball and run the app with .srt or .vtt files.
But some indications might be useful
Many tooltips will guide you during the use of this GUI.
There is also an inline help :
Subadjust version 1.1.1
Copyright © D. LALANNE - MIT License - No warranty of any kind.
A tool that allows to process subtitles text files.
The batch mode allows processing at the command line or by script.
Meanwhile the GUI mode adds a search and replace feature with regular expressions.
Usage: subadjust [OPTIONS] ARGUMENT
Available options
-v, --version Output version information and exit.
-h, --help Display this message and exit. This option implies -V/--version.
-g, --gui-mode Process the input file and show it with the gui, this is the default behavior.
-c, --batch-mode Process the input the file and print the result.
-f, --input file ARG Name of the file to read. It is the same than directly passing a file name as an argument without this option.
-o, --output-file ARG Process the input file in batch mode and write the result into the file whose name is passed in argument.
Based on the file extension, may write it to SubRip (.srt), WEBVTT (.vtt) or even CSV (.csv) format.
-i, --modify-input Write the processing result into the same input file. Only has a meaning in batch mode, ignored in GUI mode.
-r, --reset-pref Reset the configuration to default values.
-b, --begin-time ARG Change the beginning time stamp to the provided argument.
-e, --end-time ARG Change the end time stamp to the provided argument.
-k, --duration-coeff ARG Change the duration coefficient to the provided argument.
-a, --start-offset ARG Change the start offset to the provided argument.
-s, --stop-offset ARG Change the stop offset to the provided argument.
These 5 previous options are processed after reading the file and have effect in both GUI and batch mode.
-l, --log-level ARG Set the level of the log messages to display :
ALL All the messages.
TRACE Almost all messages, at least those finer than the INFO level.
INFO Informational messages that highlight the application's progress at a coarser level.
DEBUG Fine-grained events, the most useful for debugging an application.
WARN Potentially dangerous situations.
ERROR Errors that might still allow the application to continue running.
FATAL Very serious errors that will likely cause the application to crash.
OFF Disables logging.
-m, --log-file ARG Define the file where log messages will be stored.
Default it to store them in ...subadjust.log
The special value 'console' will allows to output the log messages to the console, if possible.
- To Bill Spitzak and others, of course, for the wonderful FLTK tool.
- To Rangi42, dannye and Remy Oukaour for the fltk graphical theme enhancement, which I've somewhat hacked.
It compiles and run under both Windows (With Visual Studio and g++) and Linux (With g++), thanks to FLTK.
There is a "help" option in the Makefile that roughly explain the build and delivery workflow.
Although untested, this process should work identically under macOS, provided the necessary prerequisites are met.
- A posix environment: Linux of course. And for Windows, preferably msys2 but cygwin should also work.
- FLTK
- g++ (For Windows and linux)
- ImageMagick
- Inkscape
- libjpeg
- librsvg2
- make
- pandoc
- gettext
- libiconv
- Visual C++ should be enough if you only want to compile under Windows, as .slnx/.vcxproj files are provided.