[Ffmpeg-devel] Re: Re: [RFC] Improvement for the odd timestampgeneration when parser is in use.

Michael Niedermayer michaelni
Mon Mar 19 23:48:09 CET 2007


On Mon, Mar 19, 2007 at 11:21:56PM +0100, elupus wrote:
> >id say add a time_per_byte variable to AVStream which contains the amount
> >of time to add to a timestamp per byte, the default of that would be 0
> >the avi demuxer then could set it to some bitrate based value ...
> >lavf or the parser then would change the timstamps depening on the 
> >distance
> >in bytes between frame start and packet start and this varable ...
> Hmm, yea that could work. How about using need_parsing |=4 since that has 
> already been used to determin behavior of parser subsystem. The just reuse 
> available duration/bitrate? 

if it works and is clean then iam not opposed

> I was just thinking demuxer might not know 
> bitrate untill stream has been parsed, as is the case of ac3/dts.

the demuxer does know the bitrate otherwise it couldnt generate any
timestamps for such broken streams

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070319/3708cd9c/attachment.pgp>

More information about the ffmpeg-devel mailing list