View Full Version : MediaInfo(Lib) 0.7 - Reading information about media files
clsid
28th January 2016, 21:52
The MSVC2015 MediaInfoLib.sln references the MSVC2013 ZenLib project. Maybe that causes your problem.
Also don't forget to adjust the platform toolset option if you want XP compatibility.
LoRd_MuldeR
28th January 2016, 23:13
The MSVC2015 MediaInfoLib.sln references the MSVC2013 ZenLib project. Maybe that causes your problem.
I cloned from the Git "All Inclusive" repo, which currently doesn't include MSVC2015 solution/project files. The problem showed up using the MSVC2013 solution.
Also don't forget to adjust the platform toolset option if you want XP compatibility.
Yes!
foxyshadis
29th January 2016, 01:16
Argh, the script uses an old version of zlib package.
I'll update it soon.
New zlib package with VS2015 project (in /contrib/vstudio/vc14) is at https://github.com/MediaArea/zlib
New "All Inclusive" Git repo is at https://github.com/MediaArea/MediaInfo-AllInOne
You're on github now! Awesome! I still had the old SVN base, and keeping a local copy of all those branches was pretty ugly. Getting the new repo now!
LoRd_MuldeR
29th January 2016, 19:11
Thanks, I have now cloned the "All Inclusive" Git repo. VS2013 solution now contains "zlibstat" project, but VS2012 still contains the missing "zlib". VS2015 solution doesn't seem to exist in Git at all.
However I now stumbled upon a new strange issue, with the "ZenLib" project:
If I change any properties of the "ZenLib" project, then those changes do not apply to the .cpp files contained in the "ZenLib" project! For example, if I change "Enable Enhanced Instruction Set" from "Streaming SIMD Extension" to "No Enhanced Instructions" in the project properties, then the "Enable Enhanced Instruction Set" for the individual .cpp files still remains at "Streaming SIMD Extension". Very dangerous, because that is easy to miss! The strange thing is, that the "Enable Enhanced Instruction Set" property for the .cpp files are not showing in bold, so Visual Studio seems to believe it is inheriting these settings from the project properties. But it is very wrong! How is that even possible? Any clue what's up? :confused:
There appears to be no such problem with the "MediaInfoCLI" and "MeidaInfoLib" projects, as far as I can tell. But I'll have to do some more checks...
_________________
Side note: The pre-processor definitions for MediaInfoLib's "Release/Win32" and "Release/x64" configurations differ as follows, is that intentional?
Win32: WIN32;NDEBUG;MEDIAINFO_DVDIF_ANALYZE_NO;MEDIAINFO_MPEGTS_DUPLICATE_NO;MEDIAINFO_TRACE_NOx;MEDIAINFO_LIBMMS_NO;MEDIAINFO_LIBCURL_DLL_RUNTIME;%(PreprocessorDefinitions)
x64: WIN32;NDEBUG;MEDIAINFO_ADVANCED2;%(PreprocessorDefinitions)
Okay, my bad. If forgot to update all sub-modules after cloning the "All Inclusive" repo - which apparently is required.
Now I have the MSVC2015 solutions/projects. Also the problem with "ZenLib" seems to be fixed for whatever reason. But now "zlibstat" has the problem that "ZenLib" had previously (project settings don't effect the .cpp files in that project) :confused:
Something really is not kosher with those solution/project files...
Brazil2
30th January 2016, 10:57
General
Complete name : G:\XTC.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom)
File size : 7.78 MiB
Duration : 4mn 13s
Overall bit rate mode : Variable
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 4mn 13s
Bit rate mode : Variable
Bit rate : 254 Kbps
Nominal bit rate : 96 bps
Maximum bit rate : 265 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Frame rate : 43.066 fps (1024 spf)
Erm, 43 FPS for an audio only file ? WTH ?
Zenitram
30th January 2016, 18:31
Thanks, I have now cloned the "All Inclusive" Git repo. VS2013 solution now contains "zlibstat" project, but VS2012 still contains the missing "zlib". VS2015 solution doesn't seem to exist in Git at all.
OK, bugs...
VS2012 will be abandonned soon but I'll try to give it a try with a merge of old zlib package with the new one.
for VS2015 it should be OK, at lest with a git submodule update --remote
However I now stumbled upon a new strange issue, with the "ZenLib" project:
If I change any properties of the "ZenLib" project, then those changes do not apply to the .cpp files contained in the "ZenLib" project!
Weird and not expected because I set "no instruction" in my release on purpose.
the project file is very light, I don't expect that.
Anyway, I see a lot of discrependencies in the projects so I may do another pass soon in order to have something more homogeneous.
Side note: The pre-processor definitions for MediaInfoLib's "Release/Win32" and "Release/x64" configurations differ as follows, is that intentional?
Not intended. definitely need to sleep more :(
I'll review that too when I am back at home (I am currently at FOSDEM (https://fosdem.org/2016/schedule/event/mediaconch/) ;-) )
LoRd_MuldeR
31st January 2016, 16:45
Weird and not expected because I set "no instruction" in my release on purpose.
the project file is very light, I don't expect that.
Anyway, I see a lot of discrependencies in the projects so I may do another pass soon in order to have something more homogeneous.
Not intended. definitely need to sleep more :(
I'll review that too when I am back at home (I am currently at FOSDEM (https://fosdem.org/2016/schedule/event/mediaconch/) ;-) )
Thanks for looking into this!
(BTW: I know about the sleep problem at this kind of events. Didn't really sleep for ~4 days at recent 32C3 ;))
Nico8583
1st February 2016, 22:21
Hi,
I'm searching how to list chapters timecode and name with MediaInfo.dll (and displays it like MediaInfo GUI) from MKV file ? I'm using Delphi XE2, the DLL is working fine but I can't find how to list it.
Thank you !
Edit : It's OK, I've found the solution :
FirstChap:=StrToInt(MediaInfo_Get(Handle, Stream_Menu, 0, 'Chapters_Pos_Begin', Info_Text, Info_Name));
LastChap:=StrToInt(MediaInfo_Get(Handle, Stream_Menu, 0, 'Chapters_Pos_End', Info_Text, Info_Name));
for i:=FirstChap to LastChap-1 do
begin
Chapter:=MediaInfo_GetI(Handle, Stream_Menu, 0, i, Info_Name)+' '+MediaInfo_GetI(Handle, Stream_Menu, 0, i, Info_Text);
Memo1.Lines.Add(Chapter);
end;
WeaponX
2nd March 2016, 08:24
Explorer tooltip is not showing up in windows 10 pro (64 bit). I already enabled Explorer Tooltip in mediainfo's preferences window. Whenever I mouse over a media file (.avi,.mp4,.mp3,etc.) , only the default explorer information is displayed (size,length, and availability). This is is a new computer with windows 10 already installed, which I bought last month, and I'm using the latest 64 bit mediainfo 0.7.83.
Strangely, the explorer tooltip shows up normally in my old computer which runs windows 7 ultimate (64 bit).
Anyone else have problems with mediainfo's explorer tooltip not showing up in windows 10?
manolito
7th March 2016, 05:28
Reporting a regression after version 0.7.81
With the Explorer tool tips turned on MediaInfo crashes Explorer when I mouse over an MP3 which has a cover included.
Vollständiger Name : H:\Patrice Rushen - Best Of\22 Watch Out.mp3
Format : MPEG Audio
Dateigröße : 7,47 MiB
Dauer : 5min 25s
Modus der Gesamtbitrate : konstant
Gesamte Bitrate : 192 Kbps
Album : Haven't You Heard: Best of
Album/Künstler : Patrice Rushen
Track-Name : Watch Out
Track-Name/Position : 14
Künstler : Patrice Rushen
Genre : Soul
Cover : Yes
Cover-Typ : Cover (front)
Cover-MIME : image/jpeg
File type : audio/mp3
After removing the cover information with a tag editor the crashes are gone. This issue started with version 0.7.82
My setup:
WinXP SP3 32bit
MediaInfo GUI version 0.7.70 (the last one with working tool tips)
MediaInfo.dll taken from later versions and renamed accordingly.
Cheers
manolito
manolito
31st March 2016, 15:23
The latest version 0.7.84 does crash under WinXP (non-SSE2 CPU) again...
It seems to be the DLL, not the GUI
Cheers
manolito
Zenitram
31st March 2016, 15:44
The latest version 0.7.84 does crash under WinXP (non-SSE2 CPU) again...
Argh.
Please test again (same link or this link (http://mediaarea.net/temp/NoSSE.exe) for avoiding potential file caching issue)
manolito
31st March 2016, 20:27
Sorry, no luck. Still getting this:
http://i.imgur.com/FoLT0tl.png
I did use the NoSSE.exe from your link. After testing and uninstalling it I also found that the tool tips from my previous installation were gone. Had to fix it by removing all MediaInfo Shell Extension entries from the Registry...
Cheers
manolito
clsid
1st April 2016, 15:36
Probably a dependency issue.
The project files should use RuntimeLibrary = MultiThreaded instead of MultiThreadedDLL to get a proper static build.
LoRd_MuldeR
1st April 2016, 19:15
A dependency issue wouldn't give you STATUS_ILLEGAL_INSTRUCTION (0xC000001D) error code though.
Looks more like something didn't get re-compiled with /arch:SSE, but still used SSE2 (default) or even higher. I had some strange issued with MediaInfo project/solution files before!
(Sometimes settings you set for the project simply won't apply properly to individual files in that project, for whatever reason!)
Zenitram
1st April 2016, 19:24
Looks more like something didn't get re-compiled with /arch:SSE, but still used SSE2 (default) or even higher. I had some strange issued with MediaInfo project/solution files before!
I'll apply again the settings tomorrow and we check again.
This time, it will be in the Git repository so we don't hear of this issue anymore.
(/MT will be not because default config used by other developers is /MD so I have /MD by default now, but I apply a patch for having /MT before I build, and as LoRd_MuldeR said this is not the source of the issue here).
stax76
6th April 2016, 06:18
There is a tool in StaxRip to show MediaInfo for all files in a folder including sub folders, it was a little bit improved in the last test build.
http://oi67.tinypic.com/10hlpc6.jpg
https://github.com/stax76/staxrip/wiki/Test-Build
Zenitram
29th April 2016, 16:47
After testing and uninstalling it I also found that the tool tips from my previous installation were gone. Had to fix it by removing all MediaInfo Shell Extension entries from the Registry...
Allways lot of delay... :(
I run automatic scripts now, instead of manual (and always buggy) processing of the release in order to distribute a version compatible with WinXP (I don't want to put it by default in the repo), please test again, both non-SSE and tooltip.
Zenitram
29th April 2016, 16:56
WinXP SP3 32bit
MediaInfo GUI version 0.7.70 (the last one with working tool tips)
MediaInfo.dll taken from later versions and renamed accordingly
I tested MediaInfo 0.7.85 on a clean install of WinXP SP3 32-bit (in a VM, but should be same), and I have the tooltip. So I can not reproduce this issue.
Zenitram
29th April 2016, 17:02
Explorer tooltip is not showing up in windows 10 pro (64 bit).
I got the same issue during testing after installation of 0.7.85, I uncheck the box, OK, reopen the preference windows, check the option, OK, Win+E (this part is not my fault, the explorer is not dynamicly updated), and it was working.
I don't know yet the reason it is failing the first time, but doing this methd is the current work around.
manolito
30th April 2016, 00:23
Thanks Zenitram for the new version...
The DLL 0.7.85 now works again under all my software which uses it. (Same old machine, WinXP SP3, non-SSE2 CPU).
I tested MediaInfo 0.7.85 on a clean install of WinXP SP3 32-bit (in a VM, but should be same), and I have the tooltip. So I can not reproduce this issue.
I still do not get tooltips with the new version, but maybe it's my configuration. I disabled the tray icon balloon tips using TweakUI, maybe this prevents the MediaInfo GUI versions later than 0.7.70 to display the tooltips. Registering the InfoTip.DLL with regsvr32 results in the error "module not found".
Whatever, I can live with using older versions for the GUI, no problem.
Thanks again
manolito
Thanks for this good tool.
Can you please add these to gui :
Grid lines for better visibility
Icons for audio and video and other types
Bold text for left column until ":"
Seperated info for General - Video- Audio- Text
Also these parts can be collapsable for those who need brief info
Configurable options for background color , fonts etc
Zenitram
2nd May 2016, 08:19
Can you please add these to gui
Honnestly, don't expect improvements in the GUI in the next months/years, I have already a lot to do with the "core" of the tool for the moment. UI part will be strongly modified when I have free time, and I don't have free time for years :(.
But this is open source, I hope that someone else can fit such need.
foxyshadis
9th May 2016, 12:59
Thanks for this good tool.
Can you please add these to gui :
Grid lines for better visibility
Icons for audio and video and other types
Bold text for left column until ":"
Seperated info for General - Video- Audio- Text
Also these parts can be collapsable for those who need brief info
Configurable options for background color , fonts etc
Which format do you generally use? This is all much easier in HTML mode than anything else.
Zenitram
9th May 2016, 13:06
Which format do you generally use? This is all much easier in HTML mode than anything else.
There is a templating mecanism in MediaInfo, but is currently not really advanced. One can try with "custom" view and edit the examples, but be aware that the HTML viewer is also very basic (not a complete engine) and I am not willing to embed a complete browser in MediaInfo (I already embed a complete HTML browser in e.g. MediaConch (https://mediaarea.net/MediaConch/) for exactly this purpose in the future, and the binary is huge).
raffriff42
9th May 2016, 14:41
My XSLT (https://en.wikipedia.org/wiki/XSLT) is really rusty, but using it, it is possible to transform one of MediaInfo's XML formats ("XML", "PBCore", "EBUCore", ...) to HTML, as pretty as you please.
LoRd_MuldeR
21st May 2016, 13:03
Zenitram,
I'm trying to build MediaInfo CLI from "mediainfo_0.7.85_AllInclusive.7z", but the VisualStudio solution (MediaInfo.sln) contains a missing project "zlibstat". Not much surprising, build fails with:
4>MediaInfo-Static.lib(File_Ibi.obj) : error LNK2019: unresolved external symbol _uncompress
referenced in function "private: void __thiscall MediaInfoLib::File_Ibi::CompressedIndex(void)" (?CompressedIndex@File_Ibi@MediaInfoLib@@AAEXXZ)
http://i.imgur.com/n1aNljG.png
(BTW: I can create a build by manually adding the "zlib" project to the solution and then fixing the project "references")
Zenitram
21st May 2016, 13:11
I'm trying to build MediaInfo CLI from "mediainfo_0.7.85_AllInclusive.7z", but the VisualStudio solution (MediaInfo.sln) contains a missing project "zlibstat".
Exact, a directory is missing, weird.
The directory is there:
https://github.com/MediaArea/zlib/tree/master/contrib
I'll check the reason it is not present.
Thanks for the report.
LoRd_MuldeR
21st May 2016, 13:18
Thanks for looking into this.
Yes, the directory "zlib" is in the 7z package. But the solution file is referring to a non-existing project "zlibstat", rather than existing "zlib" project. I think that is the problem.
Also I noticed that, in "MediaInfoLib" project, the Pre-Processor flags differ between "Release/Win32" and "Release/x64" configuration. Is that intentional?
Win32:
MEDIAINFO_DVDIF_ANALYZE_NO
MEDIAINFO_MPEGTS_DUPLICATE_NO
MEDIAINFO_TRACE_NOx
MEDIAINFO_LIBMMS_NO
MEDIAINFO_LIBCURL_DLL_RUNTIME
x64:
MEDIAINFO_LIBCURL_DLL_RUNTIME
MEDIAINFO_ADVANCED2
Zenitram
31st May 2016, 17:14
I'm trying to build MediaInfo CLI from "mediainfo_0.7.85_AllInclusive.7z", but the VisualStudio solution (MediaInfo.sln) contains a missing project "zlibstat".
Fixed (https://github.com/MediaArea/MediaArea-Utils/commit/79df9b89addec7a7339ee2690cfa6f9bb7a99d6f)
Should be OK in the release today
Also I noticed that, in "MediaInfoLib" project, the Pre-Processor flags differ between "Release/Win32" and "Release/x64" configuration. Is that intentional?
The MSVC2015 is correct and is the one used for release, and the MSVC2013 will die so I am lazy to change it.
There is no fundamental difference with the flags you show.
NikosD
12th June 2016, 07:58
There is an issue with MediaInfo, even in latest 0.7.86 version, of not recognizing the framerate of 120fps clips and because of that, it doesn't report the duration too, using MediaInfo.dll
Zenitram
12th June 2016, 08:03
not recognizing the framerate of 120fps clips
I need a sample file.
NikosD
12th June 2016, 09:54
Here you are:
https://www.sendspace.com/file/g874fg
Zenitram
12th June 2016, 10:22
Here you are:
https://www.sendspace.com/file/g874fg
Having timestamp like (in milliseconds):
20
28
36
40
45
53
60
61
78
80
86
is not something I call 120 fps (sometimes 1 ms of difference so 1000 fps, sometimes 17 ms so 60 fps!)
MediaInfo says "VBR", which looks like the right answer.
Note :the AVC stream was created with 120 fps metadata, but I trash this value when I detect VFR at the Matroska level.
Please provide a real (not only at the AVC stream level, but also the timestamps of each frame) 120 fps file.
NikosD
12th June 2016, 10:40
All of my CFR 120fps are recognized as such.
All of my VFR 120fps do not report a framerate.
I have seen a lot of times MediaInfo reporting a framerate, even for VFR.
Have you changed something and all VFR clips aren't reported with a framerate by Mediainfo anymore or 120fps is a special case ?
Zenitram
12th June 2016, 10:49
All of my CFR 120fps are recognized as such.
You said that your 120 fps files were not recognized...
All of my VFR 120fps do not report a framerate.
I have seen a lot of times MediaInfo reporting a framerate, even for VFR.
Have you changed something and all VFR clips aren't reported with a framerate by Mediainfo anymore or 120fps is a special case ?
For Matroska, there is no metadata for the average frame rate.
As the AVC stream provides different time stamps compared to the Matroska layer and MediaInfo detects VFR for the Matroska layer, for the moment I clear the frame rate provided by the AVC stream (not trustable: it says CFR and the container says VFR).
I may later (no ETA) display the AVC stream framerate, but it will not be in the "Frame rate" field as this real value is not known without parsing the whole file (so: we don't know it the frame rate).
NikosD
12th June 2016, 10:51
Thanks for the detailed reply.
romulous
12th July 2016, 14:26
Has anything changed in recent versions regarding command line handling? Just noticed that with .87, a file passed on the command line to MediaInfo will open the MediaInfo window, but the window will then be blank - you just see a message that you need to load a file. Command line used to work (ie MediaInfo would open and would display information on the file), but I don't know what version where this may have changed
raffriff42
12th July 2016, 14:57
Has anything changed in recent versions regarding command line handling? Just noticed that with .87, a file passed on the command line to MediaInfo will open the MediaInfo window, but the window will then be blank - you just see a message that you need to load a file.Downloaded 7.87 and tried it - it works for me. However, if I type an invalid file path, I get the message you do.
romulous
12th July 2016, 15:01
Yep, I have just managed to work out what was going wrong. The command line is being passed by another program, and the documentation for that program does say to include quote marks - to handle paths with spaces in them presumably - but the documentation is wrong in where it says to put the quote marks. As I was following the documentation, I too got it wrong. Moving the opening quote mark - the ending quote mark was fine - to another position fixes the problem (the path and filename both had spaces in them) and MediaInfo now opens with the file that is being passed to it.
Blight
1st August 2016, 15:19
Which thread priority does mediainfo use and is it somehow controllable? (I want to use it in idle thread priority so it has the least affect on UI performance)
filler56789
8th August 2016, 01:38
Hi Zenitram,
¿don't you think the "descriptive string" «Convenient unified display etc Etc ETC» is too long and annoying?
¿Why not say simply 'MediaInfo'? :confused:
http://forum.videohelp.com/attachments/38062-1470616418/mediainfo-sucking.png
SeeMoreDigital
8th August 2016, 08:29
Hi Zenitram,
¿don't you think the "descriptive string" «Convenient unified display etc Etc ETC» is too long and annoying?
¿Why not say simply 'MediaInfo'? :confused:
http://forum.videohelp.com/attachments/38062-1470616418/mediainfo-sucking.png
Or even 'MediaInfo: Media file meta-data analyzer'
filler56789
2nd September 2016, 07:26
^ Never mind, just use Resource Hacker :devil: for the win :D
http://forum.videohelp.com/attachments/38453-1472797248/MediaInfo-FIXED.png
Groucho2004
2nd September 2016, 08:01
Hi Zenitram,
¿don't you think the "descriptive string" «Convenient unified display etc Etc ETC» is too long and annoying?
¿Why not say simply 'MediaInfo'? :confused:
http://forum.videohelp.com/attachments/38062-1470616418/mediainfo-sucking.png
Similar issue here (http://forum.doom9.org/showthread.php?p=1777101#post1777101). Few devs know that Windows pulls the text from "FileDescription" instead of "ProductName".
LoRd_MuldeR
13th September 2016, 18:46
New MediaInfo builds (version 0.7.88), CLI and GUI, are now available:
https://github.com/lordmulder/mediainfo-gui/releases/tag/v2.21
Brazil2
14th September 2016, 12:32
New MediaInfo builds (version 0.7.88), CLI and GUI, are now available:
https://github.com/lordmulder/mediainfo-gui/releases/tag/v2.21
Thanks :)
ggtop
15th September 2016, 22:00
Hi LoRd_MuldeR,
something I observed using 2.21 on Win7 x64:
Everytime MediaInfo is started I have a new entry MediaInfoXP in Windows Explorer context menu though it is disabled in preferences. I have to enable and disable it for removal. MediaInfoXP is started from a portable drive.
Thanks for looking into the behavior in advance
ggtop
Brazil2
16th September 2016, 17:42
using 2.21 on Win7 x64:
Everytime MediaInfo is started I have a new entry MediaInfoXP in Windows Explorer context menu though it is disabled in preferences. I have to enable and disable it for removal.
Yes same for me and it behaves the same on Windows XP so it's not OS related.
StainlessS
27th September 2016, 17:22
I have basically always found it necessary to toggle Explorer preferences on/off/on in any version of MediaInfo (XP32SP3).
(with gui close between toggles, that though is to switch something on, not off)
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.