View Full Version : MediaInfo(Lib) 0.7 - Reading information about media files
wanezhiling
18th February 2014, 08:09
I need the file in order to see which parser has the bug (if it reads too much data before giving up).
You could just simply rename any big media files (blu-ray m2ts files eg.) to any other extensions (avi/mkv/mp4...).
Zenitram
18th February 2014, 08:15
Windows XP3 Right click context menu has no integration with .tak files
After Open Mediainfo manually will show info for tak file. Though MediaInfo shows 2 channel audio for 6 channel audio (Foobar2000_Info: FL FR FC LFE BL BR - 24/96 - lossless)
Known issue about the support of multi-channel extension of TAK, in the (long) ToDo-list, no ETA.
Tak (takc) encoded audio files (filename.tak)
No MediaInfo context use with MLP audio files. Drag and drop works with MediaInfo GUI v7.66.
Added to the list of known extensions.
wanezhiling
16th April 2014, 13:36
Latest 0.7.68 crashes when trying to scan the file (http://samples.mplayerhq.hu/V-codecs/WVP2/PhotoStory3.wmv).
0.7.67 was fine.
Kurtnoise
16th April 2014, 14:11
From which tool you're using the last release ?
coz, it works fine for me using my own build :
General
Complete name : PhotoStory3.wmv
Format : Windows Media
File size : 6.97 MiB
Duration : 3mn 16s
Overall bit rate mode : Variable
Overall bit rate : 298 Kbps
Maximum Overall bit rate : 416 Kbps
Publisher : Photo Story 3 for Windows
Genre : Photo Story
Encoded date : UTC 2072-10-08 13:49:52 / UTC 2008-06-02 16:56:13.416
Writing application : Photo Story 3 for Windows 3.0.1115.0
Cover : Y
PRIVATE/TotalBitrate : 416076
WM/VideoHeight : 480
WM/VideoWidth : 640
WM/VideoFrameRate : 30000
WM/SharedUserRating : 25
Video
ID : 2
Format : WVP2
Codec ID : WVP2
Description of the codec : Windows Media Video 9.1 Image
Duration : 3mn 16s
Bit rate mode : Variable
Bit rate : 20.5 Kbps
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 30.000 fps
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.002
Stream size : 490 KiB (7%)
Language : English (US)
Audio
ID : 1
Format : WMA
Format version : Version 2
Codec ID : 161
Codec ID/Info : Windows Media Audio
Description of the codec : Windows Media Audio 9.2 - VBR Quality 75, 44 kHz, stereo 1-pass VBR
Duration : 3mn 16s
Bit rate mode : Variable
Bit rate : 119 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Bit depth : 16 bits
Stream size : 2.79 MiB (40%)
Language : English (US)
wanezhiling
16th April 2014, 14:39
official gui build
Zenitram
19th April 2014, 19:38
Latest 0.7.68 crashes when trying to scan the file (http://samples.mplayerhq.hu/V-codecs/WVP2/PhotoStory3.wmv)
Very weird, it crashes only when I use the old Visual C++ 2005, no crash with Visual C++ 2010 and same config.
I don't try to understand, I actually switched to MSVC 2010 (I hop there is no more Win95 users in 2014!).
Here is a Development snapshot (http://sourceforge.net/projects/mediainfo/files/development_snapshots/0.7.68%2B/MediaInfo_GUI_20140419_Windows_i386_WithoutInstaller.7z/download)
wanezhiling
20th April 2014, 03:51
I am using win7/win8.1.
Tested dev version, no crash now.
LoRd_MuldeR
26th April 2014, 16:19
FWIW, here's a set of fresh MediaInfo v0.7.69 builds, all fully static:
http://sourceforge.net/projects/muldersoft/files/MediaInfo%20%28CLI%2BGUI%29/
manolito
19th June 2014, 16:55
While playing around with an MPEG2 HD test clip I got a little disturbed because MediaInfo and DGIndex cannot agree on the audio delay... :confused:
DGIndex reports 12ms while MediaInfo insists on -53ms. Which one is correct?
The file is here:
http://www.w6rz.net/1080p30.zip
Visually testing lip sync doesn't work here because the audio is silent.
Cheers
manolito
Guest
19th June 2014, 17:08
It's hard to say which is "correct" without specifying how the demuxing is done, and where the video will start.
For example, if both apps demux the audio the same but one discards leading B frames while the other does not, then the delay will be different.
I'll have a look at your stream and see if I have any comment to make about it.
huokok
20th June 2014, 00:55
Just wondering is there any method to make information on the right hand side become vertical aligned in html view? (like txt view but automatically wraping to conveniently see full x264 settings)
Zenitram
25th June 2014, 07:22
DGIndex reports 12ms while MediaInfo insists on -53ms. Which one is correct?
Video:
Frame 0 (2 in presentation order): PTS 1.768, DTS 1.668
Frame 1 (0 in presentation order): PTS/DTS 1.702
Audio:
Frame 0 : PTS 1.715
There is a bug somewhere in MediaInfo (it takes the PTS of the frame 2 in presentation order, not good).
DGIndex is right.
Zenitram
25th June 2014, 07:24
Just wondering is there any method to make information on the right hand side become vertical aligned in html view? (like txt view but automatically wraping to conveniently see full x264 settings)
For the moment, nothing.
GUI work is still something I would like to create again from scratch, but sponsored features have still the priority.
manolito
25th June 2014, 20:42
There is a bug somewhere in MediaInfo (it takes the PTS of the frame 2 in presentation order, not good).
DGIndex is right.
Thanks for looking into it...
Cheers
manolito
RandomDude
14th July 2014, 11:58
I'm running a bach script for MediaInfo CLI
template="file:///volumes/video/Temp/MediaInfoPara.txt"
output="/volumes/video/Temp/MediaInfoOut.txt"
mediainfo --Version
totfiles=$(find . -name "*.mkv" -o -name "*.m4v" -o -name "*.avi" | wc -l)
echo "Number of movies to check: " $totfiles
[[ -f "$output" ]] && rm -f "$output"
find . -name "*.mkv" -o -name "*.m4v" -o -name "*.avi" | while read movie
do
counter=$((counter+1))
echo -n "$((${counter}*100/${totfiles})) % "
echo -n R | tr 'R' '\r'
mediainfo --Inform=$template "$movie" >> $output
doneAnd here (http://pastebin.com/SuSppSWB) are the parameters for the script.
Everything is imported to Excel and works great except i have problems if there are many audio tracks leading to that subtitle 1 is not always in column XYZ. Any advice how to fix my script so the result is always zyx columns and first subtitle is find in column ccc. It's ok to maximize numbers of audio tracks like max 3 or 5.
Zenitram
14th July 2014, 12:06
i have problems if there are many audio tracks leading to that subtitle 1 is not always in column XYZ. Any advice how to fix my script so the result is always zyx columns and first subtitle is find in column ccc. It's ok to maximize numbers of audio tracks like max 3 or 5.
This is a problem with CSV :(.
For the moment, I coded something in the Windows GUI for having a fixed count of tracks (e.g. 5 audio tracks), but it is not yet moved to the CLI. I have no idea about when I'll have time to work on such extra feature on my side (not a priority of my sponsors), you are on your own (find another tool which can transform XML to CSV?)
RandomDude
14th July 2014, 17:45
This is a problem with CSV :( y, is it possible to use 2 template 1 for general and only 1 video. Can I specify to only get info from Audio 1 (main)?
And then use template 2 to add x no of subtitles, then the first subtitle will always start at column xyz?
RandomDude
25th July 2014, 08:48
1) What is the parameter to get color primaries, this doesn't work
mediainfo --inform="Video;%Color_Primaries%" filename
2) Is it possible to separate a BluRay Remux (no encoding settings) made with eac3to from a encoded mkv with stripped/missing encoding settings useing mediainfo
Zenitram
25th July 2014, 08:54
What is the parameter to get color primaries, this doesn't work
mediainfo --inform="Video;%Color_Primaries%" filename
%colour_primaries%
do mediainfo -f --Language=Raw in order to get the list of internal names you need for the template.
Zenitram
25th July 2014, 09:42
y, is it possible to use 2 template 1 for general and only 1 video. Can I specify to only get info from Audio 1 (main)?
And then use template 2 to add x no of subtitles, then the first subtitle will always start at column xyz?
The support of templates is currently very limited, you need to use the library directly in order to do exactly what you want.
arestarh
25th July 2014, 14:27
Zenitram
Hello!
Updated mediainfo's Ukrainian translation (based on language files from version 0.7.69):
http://rghost.ru/57087053
Also I have some question about translation of string for Default and Forced flags for tracks:
again, these string translatable or they are for machine analyze only?
I uploaded screenshot with demonstration of what I mean:
http://www.imagebam.com/image/7272de325032714
nekrovski
25th July 2014, 16:12
Hi, the following post was also posted here (http://forum.doom9.org/showpost.php?p=1687938&postcount=7599)
Hello
So ok, I have a video I want to encode/compress to a smaller size using MeGUI. I encode the video from tools-> avs script creator etc etc.
Then I extract the audio. Then I finally mux them.
The problem is, when it is not muxed, Mediainfo does show the bitrate. But after muxing, Mediainfo fails to show the bitrate. Why is this and is there any fix?
Zenitram
25th July 2014, 16:16
The problem is, when it is not muxed, Mediainfo does show the bitrate. But after muxing, Mediainfo fails to show the bitrate. Why is this and is there any fix?
What is the source container and in which container do you mux?
nekrovski
25th July 2014, 16:33
What is the source container and in which container do you mux?
Hi, thanks for your reply. The source container is mp4 and I mux to a mkv container.
In the meantime, this (http://forum.doom9.org/showpost.php?p=1602172&postcount=10) workaround helped me and after converting the audio to AC-3, MediaInfo does show the bitrate of the video.
Zenitram
25th July 2014, 16:42
The source container is mp4 and I mux to a mkv container.
As said in the other thread: not the same container, not the same capabilities.
nekrovski
25th July 2014, 18:07
But why the bitrate is shown when only the video is encoded? It's not the same container in that case as well.
Zenitram
25th July 2014, 18:13
But why the bitrate is shown when only the video is encoded? It's not the same container in that case as well.
Matroska has no bitrate per stream. It has a global bit rate (size/duration)
In case of only 1 VBR stream, easy: stream bitrate = container bitrate minus CBR streams bitrates (easy to find, it is CBR).
In case of 2 VBR streams, it is not possible to see which stream has which part of the overall bitrate.
FYI, New Matroska files have stream size and duration information, so I'll e able to compute stream bitrate or these new files.
nekrovski
25th July 2014, 18:36
Thanks, it's a bit clearer now. I'm noob at this and only go by logic.
manolito
11th November 2014, 05:47
Sorry but I have to report that the latest version 0.7.71 does not like my machine, it crashes instantly.
WinXP SP3, CPU Intel Coppermine (MMX + SSE, no SSE2).
In the changelog I could not find anything about changed system requirements, so please clarify if WinXP and / or Non-SSE2 CPUs are no longer suported.
Cheers
manolito
Zenitram
11th November 2014, 08:00
In the changelog I could not find anything about changed system requirements, so please clarify if WinXP and / or Non-SSE2 CPUs are no longer suported.
I upgraded my compilers (to RAD Studio XE2 for the GUI and MSVC2013 for the DLL) but I was careful about WinXP, I configured for WinXP support and tested on a WinXP SP3 x86 in a VM.
Can you try:
- Current version with old DLL (in order to test the GUI compiler)
- Current version with old EXE (in order to test the DLL compiler)
clsid
11th November 2014, 13:17
MSVC2013 defaults to using SSE2.
Project properties > C/C++ > Code Generation > Enable Enhanced Instruction Set > Select SSE ("Not Set" = use defaults = SSE2)
Zenitram
11th November 2014, 15:32
MSVC2013 defaults to using SSE2.
Owned.
Please test this snapshot (http://sourceforge.net/projects/mediainfo/files/development_snapshots/0.7.71%2B/MediaInfo_DLL_20141111_Windows_i386_WithoutInstaller.7z/download), I rebuilt with SSE settings (replace MediaInfo_i386.dll from the install dir with MediaInfo.dll from the new package, you need to rename the file)
manolito
11th November 2014, 16:55
Yes, the DLL from the snapshot works fine... :thanks:
Merci beaucoup...
Cheers
manolito
//Edit
Could it be that MediaInfo_InfoTip.dll is also affected? Because the Info Tips do not work any more with this version...
LoRd_MuldeR
16th November 2014, 18:04
Sorry but I have to report that the latest version 0.7.71 does not like my machine, it crashes instantly.
WinXP SP3, CPU Intel Coppermine (MMX + SSE, no SSE2).
In the changelog I could not find anything about changed system requirements, so please clarify if WinXP and / or Non-SSE2 CPUs are no longer suported.
Cheers
manolito
You could also try with my static MediaInfo binaries from here:
http://sourceforge.net/projects/muldersoft/files/MediaInfo%20%28CLI%2BGUI%29/
(It's compiled with runtime CPU dispatch, so it should work on PC without SSE2)
manolito
17th November 2014, 00:08
Thanks MuldeR for bringing it up, but it does not work...
The software just refuses to start, no error message, nothing. Changing screen color depth from 32bit to 16bit makes no difference either. And in any case I would need the DLL for using it in other applications like AVStoDVD, StaxRip, Yamb or MP4 tool.
Cheers
manolito
LoRd_MuldeR
17th November 2014, 00:52
Thanks MuldeR for bringing it up, but it does not work...
The software just refuses to start, no error message, nothing. Changing screen color depth from 32bit to 16bit makes no difference either.
What operating system? Let me guess: Windows XP?
I just noticed that I used one Win32 API function that was not available until Windows Vista, so this broke the whole program on XP :rolleyes:
Anwyay, since some people may still be using this ancient Windows version, this should fix XP support:
https://mega.co.nz/#!UNlUzIxK!iDw3D_u-SVA9SlCXX7w7Hw-dNl1ajIXvC2Yrw6-7lF4
manolito
17th November 2014, 02:53
Anwyay, since some people may still be using this ancient Windows version, this should fix XP support:
https://mega.co.nz/#!UNlUzIxK!iDw3D_u-SVA9SlCXX7w7Hw-dNl1ajIXvC2Yrw6-7lF4
Well, ancient yes, but between 25% and 30% of all Windows users still use it, some because they are too lazy to upgrade, and others like me because they feel that XP is better than Win7 or Win8... :)
The version you linked to does work on XP, but on my machine only if I switch color depth to 16bit (like I have to do for LameXP). Something about the Qt library...
Cheers
manolito
StainlessS
17th November 2014, 12:36
If your software runs on XP you are not 'encouraging' users to use XP, you are enabling them to use your software, if not, then they will not use your software.
Embedded XP will get the fix for linked bug and be added to the XP SP4 which is currently being worked on by a private individual.
Internet Explorer was/is always going to be a security nightmare, what with all of the new ways to break-in that MS keeps inventing (then inventing ways to stop the new inventions from being used/exploited).
I suspect that the usage numbers for XP are substantially underestimated, there are a lot of machines out there that will not be 'on-the-books', and there
is no shortage of new machines being sold that come with this ancient OS.
I still use XP32SP3 (SP4 when stable), and no amount of 'encouragment' is gonna dissuade me, next step would probably be Ubuntu.
EDIT: And thanx Zenitram, great work.
Brazil2
17th November 2014, 14:34
The version you linked to does work on XP, but on my machine only if I switch color depth to 16bit (like I have to do for LameXP).
Works fine for me on XP with 32-bit colors.
Also, please, in the future avoid using Mega. There are others light and friendly hosting sites for small files like http://www.tinyupload.com ;)
SeeMoreDigital
17th November 2014, 16:13
Well, ancient yes, but between 25% and 30% of all Windows users still use it, some because they are too lazy to upgrade, and others like me because they feel that XP is better than Win7 or Win8... :)
Well... I'm happy to confirm that MediaInfo works fine with Windows 10 (64-bit) Technical Preview :)
Zenitram
17th November 2014, 16:21
Well... I'm happy to confirm that MediaInfo works fine with Windows 10 (64-bit) Technical Preview :)
MediaInfo is very versatile :)
SeeMoreDigital
19th November 2014, 22:56
Hi Zenitram,
I can't remember if anyone has brought this up before but currently when MediaInfo reads a media file that contains DTS audio that's been encoded with a 96/24 extension flag it's presented, like this: -
Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : DTS
Format/Info : Digital Theater Systems
Format profile : 96/24 / Core
Mode : 16
Format settings, Endianness : Big
Codec ID : 130
Duration : 59s 861ms
Bit rate mode : Constant
Bit rate : 1 509 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 96.0 KHz / 48.0 KHz
Bit depth : 24 bits
Compression mode : Lossy
Stream size : 10.8 MiB (47%)
Language : English
Which kinda makes sense...
However, when MediaInfo reads a media file that contains DTS-HD MA audio along with a DTS core that also includes a 96/24 extension flag (as found on some Blu-ray HFPA disc's) it's presented very much the same as above, like this: -
Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : DTS
Format/Info : Digital Theater Systems
Format profile : 96/24 / Core
Mode : 16
Format settings, Endianness : Big
Muxing mode : Stream extension
Codec ID : 134
Duration : 59s 851ms
Bit rate mode : Constant
Bit rate : 1 509 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 96.0 KHz / 48.0 KHz
Bit depth : 24 bits
Compression mode : Lossy
Stream size : 10.8 MiB (14%)
Language : English
As you can see, the above report makes no mention of the DTS-HD MA audio stream!
Admittedly, there are very few Blu-ray HFPA disc's which contain DTS-HD MA audio along with a DTS 96/24 core in circulation (I only have three). But I thought you'd like to know ;)
Here's a link to a 60 second sample: https://www.sendspace.com/file/kav88b
Cheers
Zenitram
19th November 2014, 23:39
As you can see, the above report makes no mention of the DTS-HD MA audio stream!
Admittedly, there are very few Blu-ray HFPA disc's which contain DTS-HD MA audio along with a DTS 96/24 core in circulation (I only have three). But I thought you'd like to know ;)
Thanks for the report.
There is definitely a problem with the way I detect DTS extensions (I keep only one).
I see both "lossless" extension "MA" and "96/24" extensions in your file.
On my ToDo-list!
SeeMoreDigital
20th November 2014, 10:39
Thanks for the report.
There is definitely a problem with the way I detect DTS extensions (I keep only one).
I see both "lossless" extension "MA" and "96/24" extensions in your file.
On my ToDo-list!Thanks for the confirmation...
manolito
9th January 2015, 00:18
Could it be that MediaInfo_InfoTip.dll is also affected? Because the Info Tips do not work any more with this version...
Thanks for the new versin 0.7.72 :thanks:
I can confirm that this version now works again with a non-SSE2 CPU. The only thing I can't get working is the info tips (WinXP).
Cheers
manolito
EncodedMango
9th January 2015, 11:28
With the newest MediaInfo, using the HTML display mode makes the stats appear twice, doesn't happen with the previous version.
http://puu.sh/eha9v.png
Zenitram
9th January 2015, 11:35
With the newest MediaInfo, using the HTML display mode makes the stats appear twice, doesn't happen with the previous version.
Doomed version.
FYI, there is also a bug with XML output (https://sourceforge.net/p/mediainfo/bugs/886/).
I'll release a new version soon.
EncodedMango
9th January 2015, 11:48
I see, thanks!
hello_hello
15th January 2015, 20:54
I'm not sure whether here is the ideal place to ask for MediaInfoXP help, but I did check on LoRd_MuldeR's website, clicked on the MediaInfoXP help and support button, and here I am......
Are there any known issues with MediaInfoXP running on XP? I don't seem to be able to convince it to. Double clicking on MediaInfoXP.exe seems to do nothing. The GUI doesn't open. Am I missing something obvious? I've only tried the version found in the zip file "MediaInfoXP-GUI.2014-11-16.Win32". I think it's 2.13.
Thanks.
stax76
2nd February 2015, 00:45
Hello Zenitram,
thanks for MediaInfo, my app calls it all over the place, countless times.
I'd like to report two issues:
Using a m2ts file Codec/String shows 'TrueHD / AC3' but when demuxed to a thd+ac3 file with eac3to Codec/String shows only AC3.
thd+ac3
Codec : TrueHD / AC3
Codec/String: AC3
m2ts
Codec : TrueHD / AC3
Codec/String: TrueHD / AC3
Please tell me if you need the file.
Another issue is MediaInfo shows everything correct in a mkv file but after demuxing with mkvextract MediaInfo fails on the dts file.
The sample is here (https://www.dropbox.com/s/yeint16h95kj0r8/dts_issue.7z?dl=0), it includes both mkv and demuxed dts.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.