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

Ian Caulfield ian.caulfield
Wed Aug 26 12:44:34 CEST 2009


2009/8/26 Reimar D?ffinger <Reimar.Doeffinger at gmx.de>:
> On Tue, Aug 25, 2009 at 06:59:22PM -0700, Baptiste Coudurier wrote:
>> ffmpeg -i sample-dts-not-valid-dca-frame.m2ts -vcodec mpeg2video -ac 2
>> -scodec dvdsub -qscale 4 -f vob test.mpg
>>
>> I get this here:
>>
>> Output #0, vob, to 'test.mpg':
>> ? ? ?Stream #0.0: Video: mpeg2video, yuv420p, 1920x1080 [PAR 1:1 DAR
>> 16:9], q=2-31, 200 kb/s, 90k tbn, 23.98 tbc
>> ? ? ?Stream #0.1: Audio: mp2, 48000 Hz, 2 channels, s16, 64 kb/s
>> ? ? ?Stream #0.2: Subtitle: dvdsub
>> Stream mapping:
>> ? ?Stream #0.0 -> #0.0
>> ? ?Stream #0.1 -> #0.1
>> ? ?Stream #0.5 -> #0.2
>> Press [q] to stop encoding
>> dvd_subtitle too bigq=4.0 size= ? ? ? 0kB time=44.45 bitrate=
>> 0.0kbits/s
>> Subtitle encoding failed
>
> Should be fixed and working, except that the palette is still lost,
> giving it a weird look.

On DVDs, the palette is stored in the IFO file for the VOB - ffmpeg
doesn't support this in any way, so whenever encoding to dvdsub the
palette will be thrown away. Possibly it should get put in extradata
for those containers which can carry it (eg MKV, MP4).

Ian



More information about the ffmpeg-devel mailing list