I'm looking for a lightweight way to embed subtitles on my videos, in order to view them on video players such as embedded players on TVs or consoles, not supporting external subtitles loading such as SRT file format.
Since re-encoding a video on a Raspberry PI may require a lot of time/resources, I'm looking for a fast and lightweight way to do that which does not require re-encoding the video.
I've found that XSubs and idx/sub formats don't require re-encoding the video, since they "append" a subtitles-related bitmaps over the video, thus (I think) being faster techniques.
There are several desktop programs which allows to do that, but I'm looking for a command line and scriptable program (such as avconv, mencoder, or ffmpeg) for my headless and desktop-less Raspbian based Raspberry PI.
Is there a solution?