[Ffmpeg-devel] Re: [PATCH] x264 avc encoding, movenc avcC, ctts
Baptiste COUDURIER
baptiste.coudurier
Mon Feb 20 18:53:53 CET 2006
Michael Niedermayer wrote:
> [...]
>
>
> use trk->cluster[cl][id].cts= (pkt->pts - pkt->dts) * enc->time_base.num;
>
Humm. Here is what I get:
from generated sample (using pkt->pts - pkt->dts) * enc->time_base.num
timescale : 25
stts : count 22 duration 1
count 1, duration 3600
count 1, duration 10800
count 2, duration 0
count 1, duration 10800
count 2, duration 0
count 1, duration 10800
count 2, duration 0
count 1, duration 7200
count 1, duration 0
count 1, duration 3600
count 1, duration 10800
count 2, duration 0
count 1, duration 10800
...
from H264_GOP125.mp4 generated by FCP:
timescale : 2500
stts : count 201 duration 100
count 1, duration 100
count 1, duration 200
count 1, duration 0
count 1, duration 200
count 1, duration 0
count 1, duration 200
count 1, duration 0
count 1, duration 200
count 1, duration 0
count 1, duration 200
count 1, duration 0
...
pkt->dts - pkt->pts is a multiple of pkt->duration, the latter being 3600.
If I rescale I will get the right values. I must be missing something.
--
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-devel
mailing list