MediaArea / MediaInfo

Convenient unified display of the most relevant technical and tag data for video and audio files.
https://MediaArea.net/MediaInfo
BSD 2-Clause "Simplified" License
1.41k stars 160 forks source link

Video Stream Size incorrectly calculated. Sometimes larger than the file size itself. #392

Open iSAWaUFO opened 5 years ago

iSAWaUFO commented 5 years ago

Sometimes, a video stream size will be erroneously reported by the 'mediainfo -fullscan' (MacOS 10.14.5, Homebrew installation) $ mediainfo --version MediaInfo Command line, MediaInfoLib - v19.09

In this example, the size of the file is ~152.2MB but the size of the video stream is reported as ~419.9MB. That can't be correct! $ ls -l -rw-r--r--@ 1 ufo staff 152238289 Aug 21 22:33 video_stream_size_testcase.mkv

mediainfo -fullscan video_stream_size_testcase.mkv | grep 'Steam size' Stream size : 419986088 (over 2.7x the size of the MKV file!)

Here is a test file, which exhibits the bug: https://my.pcloud.com/publink/show?code=XZqfqo7ZAw3kHg5XtohxsUVnI9hHQzNDieo7

iSAWaUFO commented 4 years ago

I'm wondering if the problem may actually be with metadata embeded by the writing library, Writing library : x265 - 2.3:[Windows][GCC 6.3.0][64 bit] 8bit because if I remux the testcase video through MKVToolNix GUI v43.0.0 and check mediainfo -full of the remuxed video, the Video stream size reports a reasonable 124 MiB. [I don't know if there's metadata for the stream size embedded in video of it it's entirely measured by the mediainfo utility.]