[FFmpeg-devel] [PATCH] Re: movenc.c: Allow MPEG2.mov playable under QuickTime Player
Baptiste Coudurier
baptiste.coudurier
Fri Feb 11 00:31:26 CET 2011
Hi,
On 02/10/2011 02:24 PM, Takashi Mochizuki wrote:
> Benjamin-san,
>
> Thank you for your testing.
>
> AFAIK, QuickTime engine treats every frame as SYNC, if there is no stts atom. (Makes broken seek defect)
> Thus, current movenc's implementation does not make sense for partial sync atom.
> First sample should be marked as sync, not partial sync. It is mandatory for every mov file.
>
You can do this in a simpler way, check if trk->entry is 0 in
mov_write_packet, and force SYNC_SAMPLE.
Also you _will_ have the first 2 b frames _broken_ during playback this
is not wanted, you must adjust the edit list accordingly.
--
Baptiste COUDURIER
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org
More information about the ffmpeg-devel
mailing list