Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques ffmpeg add hard-subtitles during transcode

  • ffmpeg add hard-subtitles during transcode

    Posted by Michael Peters on March 10, 2014 at 3:32 am

    Hello,

    I’m transcoding some videos from .mkv (h.264 / AC3 / subtitles) to .webm.

    Excuse me if I get some terminology wrong.

    The “soft” subtitles I’m not that worried about, the subtitles that are optional. But some subtitles are necessary, such as English audio track, the actor or actress is speaking klingon, and an English subtitle is provided.

    I understand these are called “forced” or “hard” subtitles and that to get them in webm, they need to become part of the video stream when it is transcoded to vp8.

    The format they are in is PGS which looks like an image subtitle format and not a text format, so using libass is not possible.

    If I mkvextract these tracts to a .sup file, how do I include it as a source to ffmpeg and tell ffmpeg to impose them on the video during transcode?

    basically I’m doing ffmpeg -i source.h264 -i source.wav {video options} {audio options} -f webm output.webm

    Thank you for your assistance.

    Lou Logan replied 12 years, 4 months ago 2 Members · 1 Reply
  • 1 Reply

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy