[FFmpeg-devel] [PATCH] Bluray Subtitle Support, v7 (Updated patch to v12)

Reimar Döffinger Reimar.Doeffinger
Wed Aug 26 14:22:42 CEST 2009

On Wed, Aug 26, 2009 at 11:53:13AM +0000, Carl Eugen Hoyos wrote:
> Reimar D?ffinger <Reimar.Doeffinger <at> gmx.de> writes:
> > > With the patch, subtitles are actually encoded (file size 10 times bigger),
> > > but nothing is shown on playback: Perhaps because of these messages while
> > > encoding:
> > > [xsub @ 0x141e450]No more than 4 subtitle colors supported (256 found.)
> > >     Last message repeated 6 times
> > 
> > No, you need this patch
> Difficult to apply (esp. the additional comments)

Sorry, I am just to lazy to properly attach patches.

> but it works: And the timing
> is correct, which visibly is not for the original file;-)

What do you mean? Btw. what really confuses me is that ffplay -sst 5
plays some foreign language while when ffmpeg remuxes the 0.5 subtitle
stream I get English...

> The resulting file can be encoded again successfully to dvdsub - why doesn't
> this work directly?

It works directly for me (svn up, I applied the encoded buffer size fix), with this command line:
ffmpeg -i sample-dts-not-valid-dca-frame.m2ts -ac 2 -scodec dvdsub test.mkv

Colours are "interesting" as always though.
mpeg is a bit of an issue, because the subtitles start only so far in I
guess, so ffplay doesn't know it is there or something and I don't know
which -sst to specify (maybe I should just play it with mplayer :-P).

More information about the ffmpeg-devel mailing list