[Ffmpeg-cvslog] Re: r5468 - trunk/libavformat/mov.c

Baptiste Coudurier baptiste.coudurier
Sun Jun 25 18:41:11 CEST 2006


Hi

Michael Niedermayer wrote:
> [...]
>> - to stream copy audio tracks I need to know codec->frame_size to set
>> 'stts' correctly. I can either assign it in the demuxer, from the
>> original 'stts' atom, but it sometimes contains more than one value, or
>> assume it according to codec used, AAC uses 1024, AMR 160, PCM 1.
>> What do you think ?
> 
> i think that the timebase (or samplerate or samplerate/frame_size if known)
> and AVPacket.dts should be used this reminds me that the mov muxer doesnt 
> work with non constant fps videos ...
> 

I worked on vfr muxing, it seems to work, based on dts differences, but
I still have a problem with audio stream copy case.

I don't have a method to compute last packet duration.

Good way is to use pkt->duration but in case of stream copy, that
duration is 0, and frame_size is 0 too. Do you have any idea ?

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312




More information about the ffmpeg-cvslog mailing list