Understanding FFMPEG Error Extracting Subtitles

7,748

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.)

Share:
7,748

Related videos on Youtube

oldboy
Author by

oldboy

Updated on September 18, 2022

Comments

  • oldboy
    oldboy over 1 year

    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.

  • oldboy
    oldboy over 4 years
    Ohh ok, that makes sense. If I extract them, can I even edit them?
  • Tom Yan
    Tom Yan over 4 years
    Unlikely. I mean even if you can open it with a certain piece of software, you will only be able edit it in the sense of editing images with Photoshop or GIMP, I suppose.