[Matroska-devel] Re: DivX XSUB subtitle format

unmei unmei at matroska.org
Mon Jan 23 19:05:57 CET 2006


ok, i'm slow - but at a first glance this looks very much like simple 
vobsubs

Steve Lhomme wrote:
> Hi all,
> 
> As the source of the XSUB encoder are public and in DrFFMPEG here is the 
> format of the XSUB subtitle in .divx/DMF files :
> 
> typedef struct Color
> {
>   uint8_t red;
>   uint8_t green;
>   uint8_t blue;
> } Color;
> 
> // DivX Subpicture Packet header
> typedef struct DivxSubPictPackHdr
> {
>   // Duration in the following format
>   // [HH:MM:SS.XXX-hh:mm:ss.xxx]
>   // Note: There is no NUL at the end
>   char duration[27];
> 
>   // Subpicture dimensions & coordinates
>   uint16_t width;
>   uint16_t height;
>   uint16_t left;
>   uint16_t top;
>   uint16_t right;
>   uint16_t bottom;
>   uint16_t fieldOffset;
> 
>   // Background, pattern, emphasis1, emphasis2 colors
>   Color background;
>   Color pattern;
>   Color emphasis1;
>   Color emphasis2;
> } DivxSubPictPackHdr;
> 
> #define SIZEOF_XSUB_PACKET 53
> 
> This is stored in little-endian with the exact size for each field. I 
> think Gabest shouldn't have a hard time supporting the format too.
> 
[...]




More information about the Matroska-devel mailing list