[FFmpeg-devel] [PATCH] AVPacket.display_duration

Aurelien Jacobs aurel
Tue Sep 9 01:56:29 CEST 2008

Michael Niedermayer wrote:

> On Fri, Sep 05, 2008 at 05:35:13PM +0200, Aurelien Jacobs wrote:
> > Hi,
> > 
> > For some subtitles track, each AVPacket must carry the display duration
> > of the contained subtitle.
> > The attached patch adds a dedicated AVPacket.display_duration field.
> Iam not against this, but i would like to understand better for which cases
> it is needed.
> plain UTF-8 and ASCII ?


> If so does mov, avi, asf, ... support plain UTF-8 and ASCII ?

I don't think so...

> if yes how do they know the display_duration ?

The fact that they can't store any display duration just prevent
them from storing plain text subtitles. At least I think so.

Another possibility would be to not support any kind of plain text
subtitles at all in ffmpeg. Demuxers could convert them to SRT,
which is basically plain text + timing information. But I'm still
not sure if I really like this solution.


More information about the ffmpeg-devel mailing list