[FFmpeg-devel] [PATCH] x-qt payload parser
Ronald S. Bultje
rsbultje
Mon Jan 12 17:34:02 CET 2009
Hi,
On Mon, Jan 12, 2009 at 11:29 AM, compn <tempn at twmi.rr.com> wrote:
> On Sun, 11 Jan 2009 19:14:07 -0500, Ronald S. Bultje wrote:
>>For the enjoyment of whoever, here's a depayloader for
>>x-qt/x-quicktime that works for h264. I'm quite sure it won't work for
>>anything else, but hey, it works for h264, so it's worth publishing.
>>I'll be checking out other kinds of x-qt payloads (svq3, qdm2, mpeg4,
>>etc.) as we go, I might be able to make them work.
>
> carl added support for some of these to mplayer
> maybe copy/paste some ideas from there? :)
>
> http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2006-September/046329.html
I'm not against borrowing ideas, but my reading of that patch is that
live555 has some crazy NIH-style API to export QtAtoms to the calling
application, which mplayer has to parse back into its own API, then go
to decoder where it parses them back in ff-API-style so libavcodec can
actually read it.
My patch uses the MOV demuxer API directly, which parses the QtAtom
directly into the form that the decoder understands, so this whole
problem of parsing from API 1 to API 2 and from API 2 to API 3 never
exists. Therefore, the code in that thread is not necessary to get
files to play.
My patch basically does what live555 does (I think), but does it using
the correct API that the decoder understands without needing all these
transformations. :-).
Ronald
More information about the ffmpeg-devel
mailing list