After calling "MP4WriteSample( )" to write video and audio
frames into a file, I find that the call to "MP4Close( )" takes a very
long time to complete, up to 30 seconds for a very large file (1 GB).
The MP4 file plays fine.
Is this normal?
Is there any API function that i can call to change this behavior?
thanks very much for your consideration;
Ken
Hello everyone;
After calling "MP4WriteSample( )" to write video and audio
frames into a file, I find that the call to "MP4Close( )" takes a very
long time to complete, up to 30 seconds for a very large file (1 GB).
The MP4 file plays fine.
Is this normal?
Is there any API function that i can call to change this behavior?
I am now using the r479 sources, and have added the flag
"MP4_CLOSE_DO_NOT_COMPUTE_BITRATE" to the MP4Close() call.
When profiling the MP4V2 sources, i found that the audio track was
taking a great deal of time between lines 544-558 of mp4track.cpp
(inside "FinishWrite()")
The two m_trakAtom.FindProperty( xxx ) look innocuous, but caused a 30
minute delay for a 200MB file...