This is an example of setting up a custom encoding profile in kmttg that contains hard subtitles in mpeg2 video, generated from .srt captions file generated by ccextractor. The example below is specifically for Windows, but can be similarly accomplished on other platforms. Just a custom .enc encoding profile won't work because ffmpeg does not like a full path to .srt captions file as part of the -vf subtitles=srtFile option, so this is a workaround to that issue.
NOTE: This requires a fonts\fonts.conf file to exist under the kmttg ffmpeg folder which the latest Windows tools package now contains.
ff_mpeg2_subtitles.enc (put under kmttg encode folder):
<description> mpeg2 encode with hard subs from .srt file <command> PWDencode\ff_mpeg2_subtitles.bat INPUT SRTFILE OUTPUT FFMPEG CPU_CORES <extension> mpeg
ff_mpeg2_subtitles.bat (also put under kmttg encode folder):
set INPUT=%1 set SRTFILE="%~n2%~x2" set OUTPUT=%3 set FFMPEG=%4 set CPU_CORES=%5 cd "%~dp2" %d2 %FFMPEG% -y -i %INPUT% -threads %CPU_CORES% -acodec ac3 -vcodec mpeg2video -vf subtitles=%SRTFILE% -b 28500k -maxrate 30000k -bufsize 4096k -ab 448k -ar 48000 -copyts -fflags genpts -f dvd %OUTPUT%