MediaArea / MediaInfoLib

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
628 stars 170 forks source link

double or tripple result values on some HEVC matroska files #1282

Open ask2018 opened 4 years ago

ask2018 commented 4 years ago

Hi,

on some MKV files mediainfo is showing double or even triple values for me: Example: Width : 3 840 pixels Original width : 3 840 pixels / 3 840 pixels Height : 2 160 pixels Original height : 2 160 pixels / 2 160 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 25.000 FPS Original frame rate : 25.000 FPS / 25.000 FPS Color space : YUV / YUV Chroma subsampling : 4:2:0 / 4:2:0 Bit depth : 8 bits / 8 bits

As you can see for example all Width and Original width are the same 2160 pixels and same with the other values. So I guess it should be all there just once. Example file with this problem is here: example.zip

JeromeMartinez commented 4 years ago

The HEVC stream has 2 parameter sets, and I show both... In a bad way. I need to see how to better display that. Also one of the parameter sets is not used, so I should also be sure that the parameter set is used.

ask2018 commented 4 years ago

I see. To explain more where this comes from. It's happening randomly after I cut the files with VideoReDo software. Sometimes it's not there before I remux the files with MKVToolnix, sometimes it's like this already in the VideoReDo output. Seems to be more or less random. And the reason must be the few reencoded frames at the beginning of the file and how the two parts are merged together. But except this the files plays just fine.

Also on original files before the cut it's just normal single info: Width : 3 840 pixels Height : 2 160 pixels Display aspect ratio : 16:9 Frame rate : 25.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits

So probably mediainfo should ignore the secondary parameters if they are the same as the first ones.