Your main works fine, checked it with previous results. Thanks.
A small compile problem:
CXX src/input/teletext_to_srt_packet_converter.cpp
src/input/teletext_to_srt_packet_converter.cpp: In member function ‘std::string teletext_to_srt_packet_converter_c::decode_color_text(unsigned char)’:
src/input/teletext_to_srt_packet_converter.cpp:291:10: warning: comparison is always false due to limited range of data type [-Wtype-limits]
291 | if ((c < 0x0) || (c > 0x07))
| ~~^~~~~
I am the maintainer of GitHub - angelaschmid/lossless_cut: Lossless Cut (export recording to mkv video file) for MyhtTV
The original code was developed 10 years ago. The original developer uses a detour to extract the subtitles to a srt file using ccextractor, create a new mkv with the srt, and afterwards create another mkv with splitting. This workflow has further capabilities for subtitle manipulations (which I do not use).
I changed the code for a “Passthrough”, using mkvmerge capabilities to create a S_TEXT stream and splitting, without using the detour.
My question: since which release of mkvtoolnix mkvmerge supports the conversion from teletext subtitles to S_TEXT stream?