[FFmpeg-devel] Short last frame with movenc
Michael Niedermayer
michaelni at gmx.at
Fri Sep 21 18:23:07 CEST 2012
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
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Old school: Use the lowest level language in which you can solve the problem
conveniently.
New school: Use the highest level language in which the latest supercomputer
can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120921/921cf192/attachment.asc>
More information about the ffmpeg-devel
mailing list