Extract PGS subtitles from your media, generate .srt "binary string" subtitles from them and then use those as a reference for ffsubsync
.
- Recursively find all
.mkv
files in provided directory - Extract
.sup
(PGS) streams, if present - Generate
.srt
binary string subtitles from.sup
- For each
.srt
file in the same directory as the.mkv
, attempt to sync with generated binary string subtitles - The lowest offset & framerate scale "wins"
pgs-to-srt-ffsubsync
will leave behind .sup
and generated .srt
files in the tmp
folder and will not regenerate them if they are present.
git clone https://github.com/boban-bmw/pgs-to-srt-ffsubsync.git
cd pgs-to-srt-ffsubsync
npm install
npm run build
npm run start -- --src /path/to/your/media
The following need to be available on PATH
:
ffmpeg
-v4.2.4
ffsubsync
-v0.4.6
node
-v14
MIT