I already checked there, I’m getting a different error (“mp4 atom too
large” != “mp4 moov atom is too large”)
My error message seems to have been added in this patch http://nginx.org/download/patch.2012.mp4.txt
In any case, the example given there gives a reasonable example, as
‘12583268’ is around 12MB so increasing it by 2MB would not be an issue
However in my case, the value given is ‘723640794’ which is around 690MB
which is bigger than the actual file!
I believe nginx is reading this information wrong in some way, either by
the mp4 file being invalid or a bug
Either way, I would like help to understand the error
I already checked there, I’m getting a different error (“mp4 atom too
large” != “mp4 moov atom is too large”)
My error message seems to have been added in this patch http://nginx.org/download/patch.2012.mp4.txt
In any case, the example given there gives a reasonable example, as
‘12583268’ is around 12MB so increasing it by 2MB would not be an issue
However in my case, the value given is ‘723640794’ which is around 690MB
which is bigger than the actual file!
I see. Is this limited to certain files, and can you reliable reproduce
this issue on those files? Can you rerun those files through a mp4
demuxer/muxer, so that the atom is rebuild? I believe there is a good
possibility that the atom in the mp4 files is bogus, either due to
a muxer bug or a truncated file.
You can do this with mp4box [1]:
MP4Box -inter 500 -out output.mp4 input.mp4
I looks like you are running on FreeBSD, can you clarify the release
and what platform you are running (x64, i586, or else?).
Also, reproducing this with fully enabled debugging will probably help
the developers (if this is really a bug in the mp4 module):
On Sat, Jun 29, 2013 at 09:50:53AM +0100, Richard K. wrote:
690MB which is bigger than the actual file!
I believe nginx is reading this information wrong in some way,
either by the mp4 file being invalid or a bug
Either way, I would like help to understand the error
The message in question means that the file is broken - the size
of a mp4 atom recorded in the file is greater than the file size.
If there are reasons to assume the file is ok, debug log should
give you enough information to compare what nginx thinks with what
is in the file.