FORUMS: list search recent posts

ffmpeg add hard-subtitles during transcode

COW Forums : FFmpeg

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Michael Peters
ffmpeg add hard-subtitles during transcode
on Mar 10, 2014 at 3:32:38 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.


Return to posts index

Lou Logan
Re: ffmpeg add hard-subtitles during transcode
on Mar 12, 2014 at 10:00:41 pm
Last Edited By Lou Logan on Mar 12, 2014 at 10:00:57 pm

You may be able to use the overlay video filter with "picture" based subtitles: How to burn subtitles into the video: picture based subtitles


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]