[FFmpeg-devel] [PATCH] add uuid box to MP4 to make h.264 play on iPod

Michael Niedermayer michaelni
Sat Feb 23 17:51:48 CET 2008

On Sat, Feb 23, 2008 at 04:34:19PM +0000, M?ns Rullg?rd wrote:
> Michael Niedermayer <michaelni at gmx.at> writes:
> > On Sat, Feb 23, 2008 at 12:25:16PM +0000, M?ns Rullg?rd wrote:
> >> Mark Himsley <mark at mdsh.com> writes:
> >> 
> >> > Attached patch adds new -f <format> of ipod264. When using that format
> >> > the file is created as with mp4 format but with the addition of the
> >> > uuid required for the file to be transferred from iTunes to an iPod
> >> > that plays "Low Complexity" Baseline Profile H.264. Tested syncing
> >> > with iPod Touch.
> >> 
> >> I don't like inventing new, fake formats for each and every
> >> variation.  
> >
> > I dont like it either but its easy, simple and doesnt really add hard to
> > maintain code ...
> > Also changing the fake formats to some other system is seperate of adding
> > new ones IMHO.
> The more new ones are add, the more work there will be if we want to
> switch to something better.

Most of the code is just stuff like track->mode == MODE_IPOD/MOV/...
that would not change at all if we switch from fake formats to something

> >> Things like this should be passed as flags/parameters to
> >> the mp4 muxer instead.  If there is no way of doing that currently,
> >> lavf should be extended to support it.
> >
> > This causes problems, because the following is stored per AVOutputFormat:
> > * default codecs
> > * list of supported codecs as well as their codec tags
> This could be solved by moving those lists into an AVSubFormat (or
> whatever) struct, along with a name and whatever else might be useful.
> Each AVOutputFormat would then have a list of AVSubFormat (the first
> being the default).

This could be done but it would primarely increase complexity, so iam against
it. The fake formats are ugly but besides this feeling which i certainly feel
as well i dont see any real disadvantage from them.


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080223/069b5ac1/attachment.pgp>

More information about the ffmpeg-devel mailing list