Howdy all.
I am writing a MOV file in which I am supplying a bunch of CMSampleBuffers to pass along to an AVAssetWriterInput object.
While this is going on, I am accumulating the byte size of the compressed data inside the CMSampleBuffers to write to a log file on the system. The only thing that I am missing, is the MOV header size.
The difference between my count and the saved file size, is typically about 2000 bytes or so of data.
I can't figure out how to get the exact size written to the file system from AVAssetWriter. There doesn't seem to be an obvious way to get any type of "header" size.
Now, I could just find the file size after the MOV file is closed, but for some reason, NSFileSystemManager "attributesOfItemAtPath" "NSFileSize" never matches the byte count with I look at the file in the bash shell. The file size is wildly different, as a matter of fact. So this seems useless.
Suggestions?
bob.