MediaInfoLib icon indicating copy to clipboard operation
MediaInfoLib copied to clipboard

Different output on Android

Open cjee21 opened this issue 11 months ago • 10 comments

Why does the output formatting for text and HTML view differ on Android?

Example for an AVC video...

Windows/Linux:

Format profile            : High@L4

Android:

Format profile            : High
Format level              : 4

cjee21 avatar Jan 24 '25 12:01 cjee21

Why does the output formatting for text and HTML view differ on Android?

On Android we use XML as an intermediate storage and XML stores profile and level separately, then XML is processed by MediaInfo it does not "revert" this separation, it should for keeping coherency.

JeromeMartinez avatar Jan 24 '25 12:01 JeromeMartinez

On Android we use XML as an intermediate storage

Another effect is that tags such as com.android.version becomes com_android_version on Android.

cjee21 avatar Jan 26 '25 16:01 cjee21

Another effect is that tags such as com.android.version becomes com_android_version on Android.

This one will be more difficult to handle, the intermediate XML can not store "." in element names. I don't think it is worth it to deal with that, especially because at long term these fields will be correctly managed (removing the MP4 field names).

JeromeMartinez avatar Jan 28 '25 15:01 JeromeMartinez

I just got the new 25.07 via Google Play. There is something wrong with the Exif. Lots of parameters like location coordinates, shutter, iris, focal length are full of '1'.

cjee21 avatar Jul 30 '25 05:07 cjee21

I just got the new 25.07 via Google Play. There is something wrong with the Exif. Lots of parameters like location coordinates, shutter, iris, focal length are full of '1'.

Can be reproduced with MEDIAINFO_TRACE_NO.

There are also minor issues like missing units and fractions or hidden parameters being shown but that is due to XML.

cjee21 avatar Jul 30 '25 08:07 cjee21

Diff for Exif after the fix. These remaining differences are due to XML intermediate.

-ShutterSpeed_Time                        : 1/359 s
+ShutterSpeed_Time                        : 0.002783549

+ExifVersion                              : 2.20

-LensZoomActualFocalLength                : 6.30 mm
+LensZoomActualFocalLength                : 6.30

+FlashpixVersion                          : 1.00

-LensZoom35mmStillCameraEquivalent        : 23 mm
+LensZoom35mmStillCameraEquivalent        : 23

+ExifGPSVersion                           : 2.2.0.0

+InteropVersion                           : 1.00

cjee21 avatar Jul 30 '25 09:07 cjee21

These remaining differences are due to XML intermediate.

Right, we need to move several things (non standard field settings, "/String" fields) in the core of MediaInfo instead of in the parser, for all parsers.

JeromeMartinez avatar Jul 30 '25 09:07 JeromeMartinez

I just got the new 25.07 via Google Play.

25.07.1 is live, you can force update.

JeromeMartinez avatar Jul 31 '25 14:07 JeromeMartinez

25.07.1 is live, you can force update.

Thanks for notifying. Updated. It works properly now other than the effects of the XML intermediate.

cjee21 avatar Jul 31 '25 14:07 cjee21

Another difference with Android output, this line is missing from General section:

Codec ID                                 : mp42 (mp42/isom/iso5)

cjee21 avatar Sep 03 '25 15:09 cjee21