Width / Height Returned as 0 on 24.01; Works on 23.11
Closed this issue · 4 comments
Hi,
I've observed that the video width and height are returned at 0
on MediaInfo version 24.09
, yet I have an old copy of 21.09
where these are returned correctly for the same input video. Is this a known issue? Let me know how I can help you with a repo! I've observed the issue on 24.09
on Windows and Amazon Lambda.
Thanks,
Mark
Doing a bisect of versions, I've found it works fine in 23.11
. Will update title accordingly and will try and pin down to a particular version that broke it.
I've completed bisecting the version space. Width and height are extracted correctly on 23.11
on Windows / Amazon Lambda, but are returned as 0
on 24.01
and 24.09
, therefore I'm inclined to believe it is something that broke between 23.xx
and 24.xx
I'm testing with a free open source video from here, and am using a C# binding to the native library. I also observe that the video duration comes back as 0
on 24.01
, yet other metadata like ratio, codec etc come back fine.
Ok I've figured it out. The C# binding that I'm using from an open source project is coupled to an older version of MediaInfo and as a result some of the enums it is using to look up (for example) Video_Width
are misaligned with their expected values in newer versions of MediaInfo. Specifically the addition of Video_HDR_Format_Compression
, Video_Format_Settings_SliceCount
and Video_Format_Settings_SliceCount_String
have shifted the values of Video_Width
and Video_Height
(and anything higher in the enum) off by 3
.
I will work around this. Closing the ticket. Sorry for the noise :)