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

elupus elupus
Mon Mar 19 23:21:56 CET 2007


> 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? I was just thinking demuxer might not know 
bitrate untill stream has been parsed, as is the case of ac3/dts.

/Joakim 






More information about the ffmpeg-devel mailing list