[FFmpeg-devel] [PATCH] AVPacket.display_duration

Uoti Urpala uoti.urpala
Tue Sep 9 12:44:39 CEST 2008


On Tue, 2008-09-09 at 06:07 +0200, Michael Niedermayer wrote:
> I also do not know if this is the best solution, the obvious alternative
> to display_duration is to have the matroska demuxer convert the codec
> bitstream to a representation that contains the display_duration.
> It seems that for all subtitle formats such representations exists, ASS as
> well as plain text (SRT).

If you mean that there would already exist a variant of the bitstream
format that specifies the duration, not really. The format Aurelien used
for ASS was taken from the line specification of the document describing
monolithic .ass files that are meant to be read as a unit; AFAIK that
format is not used for packets anywhere. And it is not well suited for
such use, as it specifies not duration but both starting time and end
time, _as absolute timestamps_.





More information about the ffmpeg-devel mailing list