[FFmpeg-devel] Short last frame with movenc
al at dneg.com
Mon Oct 8 16:52:53 CEST 2012
Sadly not, I was using the API directly.
To reproduce the error you have to use the ffmpeg API, so you can
specify the time_base in the format I mentioned, this causes the
avformat mov handler to get upset and write out odd atoms in the
quicktime it produces.
I'm now currently using libquicktime instead, this is using the latest
version of ffmpeg for compression, but writing the quicktime container
itself, this works correctly.
On 06/10/12 04:13, Michael Niedermayer wrote:
> On Thu, Sep 20, 2012 at 04:41:51PM +0100, Al Crate wrote:
>> Hi, I`m trying to encoded a prores movie into a mov container.
>> This works fine with
>> time_base.den = 24
>> time_base.num = 1
>> But if I try
>> time_base.den = 600
>> time_base.num = 25
>> I get problems with moveenc setting the duration of the last frame
>> to 1, instead of 25.
>> It looks like oformat->write_header() which is called in
>> avformat_write_header is setting the AVStream time_base to 600:1
>> instead of 600:25.
>> Can some one reproduce this, I did a packet dump and the durations
>> are all 0.0002, whereas using 24/1 they come out with the correct
>> duration of 0.042.
> can you provide the input file you used and the command line so it
> can be reproduced ?
> i had no luck with a quick try with a random file
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
More information about the ffmpeg-devel