Support for MediaInfo v19

You found an error in the program ? Report it here
AnthonyB
Posts: 19
Joined: 2011-08-20 07:27:50

Support for MediaInfo v19

Post by AnthonyB »

Current build of MC v4.2.2.2 includes MediaInfo.dll v18.3.1.0
Current version of MediaInfo (https://mediaarea.net/en/MediaInfo) is 19.9.0.0

Drop in and replace the x86 version of the v19 MediaInfo.dll doesn't work with MC v4.2.2.2

Is it possible to make MC compatible for MediaInfo v19 for forward compatibility?
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Support for MediaInfo v19

Post by antp »

Possible, yes.
Some day I should make a new build for that then... and check what changed (as the version changed, I suppose there may be some compatibility issues).
I don't know when I'll do it though.
AnthonyB
Posts: 19
Joined: 2011-08-20 07:27:50

Re: Support for MediaInfo v19

Post by AnthonyB »

antp wrote: 2019-12-27 12:27:49 Possible, yes.
Some day I should make a new build for that then... and check what changed (as the version changed, I suppose there may be some compatibility issues).
I don't know when I'll do it though.
Completely understand.

Just thought I'd flag it.
elman
Posts: 226
Joined: 2005-01-03 09:05:35

Re: Support for MediaInfo v19

Post by elman »

Hi. I guess this is more pressing issue now. More and more movies are not recognized by current mediainfo version. Could it be possible to upgrade to mediainfo 20? Thanks.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Support for MediaInfo v19

Post by antp »

I'll try to find a few minutes for that in the next days.
elman
Posts: 226
Joined: 2005-01-03 09:05:35

Re: Support for MediaInfo v19

Post by elman »

Perfect. Thanks a lot :)
elman
Posts: 226
Joined: 2005-01-03 09:05:35

Re: Support for MediaInfo v19

Post by elman »

Hi. Any update on bringing MediaInfo up to date?
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Support for MediaInfo v19

Post by antp »

Still on my to-do list, sorry but I haven't yet taken time for that :/
Time flies way too fast
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Support for MediaInfo v19

Post by antp »

Hi,
Better late than never, here is the a exe with MediaInfo v20, replace it in the folder of a regular version for testing:
http://update.antp.be/amc/beta/amc4230b.rar
It is also made for testing some fixes described there: viewtopic.php?p=53998#p53998
So in case you encounter different behaviour with scripts compared to the stable 4.2.2 release please report them.
Sguilly
Posts: 11
Joined: 2006-04-05 14:11:45

Re: Support for MediaInfo v19

Post by Sguilly »

Tried this beta release toady on a couple of HEVC / H265 files, it is not resolving the Video Format name but is populating the Video Bitrate data kbps.

Where as the existing version resolves the Video Format name to, V_MPEGH/ISO/HEVC, but on a number of these will not resolve the Video Bitrate.

edit - is also not updating the Video Format field for H264 files.
elman
Posts: 226
Joined: 2005-01-03 09:05:35

Re: Support for MediaInfo v19

Post by elman »

Thanks. I tried new beta with a movie and it didn't fill any value - just like the older version.

Standalone MediaInfo 20.09 app detected everything all right. It was Matroska with AVC and DTS-HD Master Audio.

Also noticed that for some movies older version detected all fields, but newer didn't fill video format and audio format. It was Matroska with AVC and AC3.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Support for MediaInfo v19

Post by antp »

Weird, I wonder what could cause that :??:
Maybe there is some new stream info that AMC is not fetching, some day I should investigate that.
zakk
Posts: 28
Joined: 2008-11-26 20:41:22

Re: Support for MediaInfo v19

Post by zakk »

Hi, I know a little abour programming but not building/compling on Windows. Is there any way I can help to fix AMC not being able to import information from MediaInfo new dlls ? Study some AMC source code, study how Mediainfo.dll works ? Anything I should read first :??:
IkE Blaster
Posts: 9
Joined: 2006-12-31 14:24:37
Location: Czech Republic
Contact:

Re: Support for MediaInfo v19

Post by IkE Blaster »

Hi,
possible solution (works for me) via patching MovieCatalog.exe. \0 denotes NUL character (0x00 byte).

Find (one occurrence):

Code: Select all

Codec/String\0
Replace with:

Code: Select all

Format/String

Or you can use patched exe here (on your own risk, you obviously shouldn't trust randomly posted exe files): https://amc.thez.info/MovieCatalog_423b ... format.zip


It should be a simple fix for antp.
zakk
Posts: 28
Joined: 2008-11-26 20:41:22

Re: Support for MediaInfo v19

Post by zakk »

I was able to detect more video and audio codecs with this patch working, thank you IkE :clapping:
bitrates are still missing for AVC / AAC LC
IkE Blaster
Posts: 9
Joined: 2006-12-31 14:24:37
Location: Czech Republic
Contact:

Re: Support for MediaInfo v19

Post by IkE Blaster »

Can't confirm AVC / AAC LC problem. Example, but I've tried multiple files and it just always works. I have no more ideas up to my sleeve.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Support for MediaInfo v19

Post by antp »

Thanks for the finding.
That string was used at two places in the code: audio & video stream.
I updated the code; if it does not find that Format/String info it falls back to the old Codec/String.
I made a new build so you can test it more "officially":
http://update.antp.be/amc/beta/amc4231b.rar
(same media info version, as when I tried to upgrade to 21.xx it does not seem to work, I guess other change than version number is required)
zakk
Posts: 28
Joined: 2008-11-26 20:41:22

Re: Support for MediaInfo v19

Post by zakk »

Hello, here is a Mediainfo description of a file for which Ant Movie Catalog does not detect video nor audio bitrates, even with the use a today's new file submitted by ant :

Code: Select all

Format                                   : Matroska
Version du format                        : Version 2
Taille du fichier                        : 885 Mio
Durée                                    : 1 h 11 min
Débit global moyen                       : 1 732 kb/s
Date d'encodage                          : UTC 2019-08-13 12:32:26
Application utilisée                     : mkvmerge v5.3.0 ('I could have danced') built on Feb  9 2012 10:38:07
Bibliothèque utilisée                    : libebml v1.2.3 + libmatroska v1.3.0

Vidéo
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Profil du format                         : High@L3.1
Paramètres du format                     : CABAC / 3 Ref Frames
Paramètres du format, CABAC              : Oui
Paramètres du format, RefFrames          : 3 images
Type de muxing                           : Header stripping
Identifiant du codec                     : V_MPEG4/ISO/AVC
Durée                                    : 1 h 11 min
Débit nominal                            : 1 500 kb/s
Largeur                                  : 1 920 pixels
Hauteur                                  : 1 080 pixels
Format à l'écran                         : 4/3
Type d'images/s                          : Constant
Images par seconde                       : 29,970 (29970/1000) Im/s
Espace de couleurs                       : YUV
Sous-échantillonnage de la chrominance   : 4:2:0
Profondeur des couleurs                  : 8 bits
Type de balayage                         : Progressif
Bits/(Pixel*Image)                       : 0.024
Bibliothèque utilisée                    : x264 core 148 r2665 a01e339
Paramètres d'encodage                    : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=6 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=1500 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Default                                  : Oui
Forced                                   : Non

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Identifiant du codec                     : A_AAC-2
Durée                                    : 1 h 11 min
Canaux                                   : 2 canaux
Channel layout                           : L R
Echantillonnage                          : 48,0 kHz
Images par seconde                       : 46,875 Im/s (1024 SPF)
Mode de compression                      : Avec perte
Default                                  : Oui
Forced                                   : Non

Texte #1
ID                                       : 3
Format                                   : UTF-8
Identifiant du codec                     : S_TEXT/UTF8
Identifiant du codec/Info                : UTF-8 Plain Text
Langue                                   : Anglais
Default                                  : Oui
Forced                                   : Non

Texte #2
ID                                       : 4
Format                                   : UTF-8
Identifiant du codec                     : S_TEXT/UTF8
Identifiant du codec/Info                : UTF-8 Plain Text
Langue                                   : Français
Default                                  : Non
Forced                                   : Non

Texte #3
ID                                       : 5
Format                                   : UTF-8
Identifiant du codec                     : S_TEXT/UTF8
Identifiant du codec/Info                : UTF-8 Plain Text
Langue                                   : Grec
Default                                  : Non
Forced                                   : Non

Texte #4
ID                                       : 6
Format                                   : UTF-8
Identifiant du codec                     : S_TEXT/UTF8
Identifiant du codec/Info                : UTF-8 Plain Text
Langue                                   : Portugais
Default                                  : Non
Forced                                   : Non

Texte #5
ID                                       : 7
Format                                   : UTF-8
Identifiant du codec                     : S_TEXT/UTF8
Identifiant du codec/Info                : UTF-8 Plain Text
Langue                                   : Espagnol
Default                                  : Non
Forced                                   : Non

AMC result :

AVC 1920x1080
AAC LC 29,970
... and that's all
elman
Posts: 226
Joined: 2005-01-03 09:05:35

Re: Support for MediaInfo v19

Post by elman »

I also checked new version. It seems to work better, but still there are some movies which are not detected at all. I managed to find a movie where movie itself doesn't work but cut portion works. This is the diff:

- doesn't work
+ works

Code: Select all

--- General
+++ (clipboard)
@@ -1,15 +1,14 @@
 General
-Overall bit rate                         : 6 198 kb/s
-Encoded date                             : UTC 2020-08-16 17:18:49
-Writing application                      : mkvmerge v50.0.0 ('Awakenings') 64-bit
-Writing library                          : libebml v1.4.0 + libmatroska v1.6.2
+Overall bit rate                         : 12.3 Mb/s
+Writing application                      : no_variable_data
+Writing library                          : no_variable_data
@@ -20,8 +19,8 @@
Video
-Duration                                 : 1 h 25 min
-Bit rate                                 : 5 936 kb/s
+Duration                                 : 58 s 737 ms
+Bit rate                                 : 12.0 Mb/s
@@ -31,10 +30,8 @@
-Bits/(Pixel*Frame)                       : 0.332
-Stream size                              : 4.23 GiB (95%)
-Writing library                          : x264 core 161 r3048 b86ae3c
-Encoding settings                        : cabac=1 / ref=9 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.50:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=22 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=3:0.50
+Bits/(Pixel*Frame)                       : 0.541
+Stream size                              : 84.3 MiB (97%)
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Support for MediaInfo v19

Post by antp »

I've upgraded to a new verison of media info while adding another feature to the script engine:
https://forum.antp.be/phpbb3/viewtopic. ... 454#p84454
so if you're still around you could check if it works better with version 22.12 of media info, or if it would be better to revert back to 20.xx
Post Reply