[FFmpeg-devel] Short last frame with movenc

Al Crate al at dneg.com
Mon Sep 24 10:28:47 CEST 2012


Ah ta, I'm guessing the time_base change is knackering the pkt.duration 
somehow. It shows up as 0.002 in the stream dump.

On 21/09/12 17:23, Michael Niedermayer wrote:
> On Fri, Sep 21, 2012 at 04:34:21PM +0100, Al Crate wrote:
>> movenc.c is setting the time_base.num value to 1 for all the
>> AVStreams, it doesn`t seem to handle any other form of time_base
>>
>>
>> in the folloing function
>>
>> static int mov_write_header(AVFormatContext *s)
>> 		
>>
>> it does this
>>
>> av_set_pts_info(st, 64, 1, track->timescale);
>>
>> so a time_base of 25/600 becomes 1/600 and everything goes to pot.
>
> time_base.num = 1 is correct, please look at the duration if you want
> to debug it. The format timebase is controled by the muxer and limited
> by the format. Theres no such thing as a 25/600 timebase in mov.
> its 1/600 with packets having durations of 25
>
> [...]
>
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list