[Ffmpeg-devel] [Patch] DVB Subtitle decoder

Ian Caulfield imc25
Sun Jul 10 16:49:54 CEST 2005


On Sun, 10 Jul 2005, Nico Sabbi wrote:

> Ian Caulfield wrote:
>
>> AVCodecParser dvbsub_parser = {
>> 
>>    { CODEC_ID_DVB_SUBTITLE },
>> 
>>    sizeof(DVBSubParseContext),
>> 
>>    dvbsub_parse_init,
>> 
>>    dvbsub_parse,
>> 
>>    dvbsub_parse_close,
>> 
>> };
>> 
> the above comma breaks compilation and the files you posted are in dos 
> format.

That bit is copied straight out of dvdsub.c - how should it go?

> Playing that test file with fplay doesn't show any subtitle. Do I need any 
> particular flag to show them?

ffplay doesn't have any option to show subtitles currently - all I've 
added is another subtitle decoder. One way to test the decoding is to 
compile with DEBUG_SAVE_IMAGES defined, and it'll save each subtitle it 
comes across as a png. Alternatively the output can be fed into an encoder 
with ffmpeg - although the only encoder currently is Fabrice's dvb 
encoder.

How hard would it be to add subtitle support to ffplay? If it's not too 
tricky, I might be able to manage it...

Ian





More information about the ffmpeg-devel mailing list