- Convert to mp4 with no cropping and all subtitles
flatpak run –command=HandBrakeCLI fr.handbrake.ghb -i ifile.m2t -o file.mp4 –crop 0:0:0:0 –all-subtitles
- Extract subtitles to an srt file from the mp4 file
ffmpeg -txt_format text -i file.mp4 out.srt
- Convert the mp4 file to an mkv file and deinterlace, embed hardcoded subtitles and convert to AAC audio
ffmpeg -i file.mp4 -vf bwdif=mode=1,subtitles=out.srt -c:a aac -b:a 128k file.mkv
