TagLibSharp and MP4 Files

I am using TagLib # v2.1.0 and it shows the TagLib.MPeg and TagLib.MPeg4 namespaces, but I constantly get this error with the .MP4 files that I encounter -

"The size of the box header is {0} bytes, but only {1} bytes are left in the file" (and a TagLib.CorruptFileException was found)

No problems with .WMV files.

I suspect that I am looking at the source taglib # that the MPeg namespaces are incomplete, targeting only Apple (?).

I resorted to using the Windows API CodePack to read properties (and the API probably allows me to write enough).

If someone tells me how I can use TagLib #, I can publish some of the MediaInfo output for the MP4 files I use (they were captured using rtmpdump, Adobe Flash Video, AVC video codec, YUV color space ...)

+4
source share

Source: https://habr.com/ru/post/1435735/


All Articles