Understanding FFMPEG Error Extracting Subtitles

I'm trying to extract some subtitles as an srt file because there are some lines I'd like to edit therein before remuxing the video.

Unfortunately I'm running into an error that I really don't understand at all. The error reads: Subtitle encoding currently only possible from text to text or bitmap to bitmap.

The subtitles that I'm trying to extract are described by ffmpeg as hdmv_pgs_subtitle. I'm not sure if this has anything to do with the problem?

The command that I'm executing is ffmpeg -i "C:\Users\User\Desktop\Movie.mkv" -map 0:s:3 Movie.srt.

Any insight would be greatly appreciated.


Solution 1:

HDMV PGS subtitles are bitmap subtitles, which essentially means they are series of images with transparency that get overlayed on the video when enabled, instead of text files like srt subtitles. Naturally ffmpeg will not be able to convert a type to another, especially not from a bitmap type to a text type as that probably requires the ability of Optical Character Recognition.

You might be able to extract it as-is by specifying -c:s copy. (Not sure what extension name should be use, but it wouldn't really matter anyway so you can use something like .pgs or even nothing.)