Closed GoogleCodeExporter closed 8 years ago
Thanks for the report.
As you suspected, padding is used to make future changes faster since there is
no file resize/move needed. 1024 is really nothing for normal files, so I don't
think that's an issue. We could however reduce/remove padding for smaller files.
With which players are you experiencing issues because of 'free' atoms?
Original comment by reiter.christoph@gmail.com
on 3 Mar 2014 at 5:25
Hi,
the problematic players I experienced are hardware network players by Ph***ps
St****ium np3700 and np3900 (not confirmed by the customer support so far).
However, modyfing the m4a tag using the mp3tag software removes the free atom.
The same file will be played without any problems.
Please find attached the atom comparison of the same m4a file.
Therefore I wonder if you could provide a function which rebuilds the whole
atom tree structure without any paddings.
Original comment by ra666...@googlemail.com
on 3 Mar 2014 at 6:11
Attachments:
Thanks. Have you verified that removing the 'free' code in mutagen fixes it or
is this just a guess based on the diff?
Original comment by reiter.christoph@gmail.com
on 4 Mar 2014 at 5:51
Hi Christoph,
it was a guess but your comment inspired me to modify a file using a HEX editor.
It seems the player has an issue with the order of the atoms. If 'mdat' appears
before udta.meta.ilst the palyer won't play that file. Moving 'mdat' to the end
of the file fixes the issue (The 'stco' atom was changed accordingly).
The customer service was informed about that obvious player bug and will be
challenged.
I assume the implemented approach in mutagen.MP4 is iTunes conform. However, do
you see a possibility to implement a switch which decides where to write the
tag information (beginning/end of the file)?
ra666ack
Original comment by ra666...@googlemail.com
on 5 Mar 2014 at 8:11
Attachments:
Thanks for investigating.
Checking some random iTunes files, mdat is also at the end there, so mutagen is
probably doing something wrong.
Original comment by reiter.christoph@gmail.com
on 5 Mar 2014 at 8:38
Hi Christoph,
before you start any activities on this "issue"...
I figured out that mutagen works correctly. It's ffmpeg with implemented
libfdk-aac module which writes the metadata information to the end of the file.
Using the ffmpeg switch "-movflags +faststart" re-writes the moov atom to the
beginning of the file.
Anyway it would be a cool feature of mutagen. This is useful e.g. for streaming.
Sorry for the confusion...
Regards ra666ack
Original comment by ra666...@googlemail.com
on 6 Mar 2014 at 5:30
mutagen has moved to Bitbucket: https://bitbucket.org/lazka/mutagen/issue/171
Original comment by reiter.christoph@gmail.com
on 4 Jul 2014 at 3:33
Original issue reported on code.google.com by
ra666...@googlemail.com
on 3 Mar 2014 at 2:42