[FFmpeg-devel] [PATCH] Bluray Subtitle Support

Baptiste Coudurier baptiste.coudurier
Thu Jul 23 19:29:56 CEST 2009


Hi,

On 07/23/2009 02:16 AM, stev391 at exemail.com.au wrote:
> G'Day,
>
> Please find attached a patch that adds Bluray subtitle support.
>
> Known limitations:
> * Subtitle end display time is assumed constant
> * Subtitles appear to display late...
> * RLE bitmap data is only decoded if it is all contained in the one
> packet (this is an easy fix later on).
> * Forced Subtitle flag is ignored, all subtitles decoded in stream
> * Cropping is not supported, full subtitle is returned. (I can fix this
> later once this patch is applied).
> * Number of colours in the Colour Look Up Table is not dynamically
> allocated, always assumes 256 colours.
>
 > [...]
 >
> Index: libavcodec/pgssub_parser.c
> ===================================================================
> --- libavcodec/pgssub_parser.c	(revision 0)
> +++ libavcodec/pgssub_parser.c	(revision 0)
 >
> [...]
 >
> +
> +AVCodecParser pgssub_parser = {
> +    { CODEC_ID_HDMV_PGS_SUBTITLE },
> +    sizeof(PGSSubParseContext),
> +    pgssub_parse_init,
> +    pgssub_parse,
> +    pgssub_parse_close,

Is the parser really needed ? Isn't one packet on PES mapping in TS ?

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-devel mailing list