.NET 8 console subtitle converter for Windows, Linux, and Mac.
Code is based on SE 3.6.9, but should be updated with new subtitle formats from SE.
Imaged based formats/OCR was removed (only Blu-ray sup OCR is supported).
How to compile: dotnet build seconv.csproj
How to run: ./seconv <pattern> <name-of-format-without-spaces> [<optional-parameters>]
.
E.g.: ./seconv *.sub subrip
- for more info see https://www.nikse.dk/subtitleedit/help#commandline
This was made due to SubtitleEdit/subtitleedit#3568
git clone https://github.com/SubtitleEdit/subtitleedit-cli.git
cd subtitleedit-cli
Reside in the root directory of the repository, then run:
docker build -t seconv:1.0 -f docker/Dockerfile .
This is a multi stage build. It first builds the application, then creates the docker image.
Run conversion by executing e.g.:
docker run --rm -it -v $(pwd)/subtitles:/subtitles seconv:1.0 sample.srt pac
Parameters:
- -v: Mount local subtitles directory.
- sample.srt: input file or pattern. E.g. *.srt.
- pac: output-format. E.g. pac, stl, srt, ass.
subtitleedit-cli
is licensed under the GNU LESSER GENERAL PUBLIC LICENSE Version 3,
so it free to use for commercial software, as long as you don't modify the library itself.
LGPL 3.0 allows linking to the library in a way that doesn't require you to open source your own code.
This means that if you use libse in your project, you can keep your own code private,
as long as you don't modify libse itself.