View Full Version : MediaInfo(Lib) 0.7 - Reading information about media files
SeeMoreDigital
23rd April 2006, 15:22
Hi Zenitram.
As MediaInfo is now upto version 0.7.1.x..... Any chance you can can amend your thread title?
....Be seeing you!
Zenitram
23rd April 2006, 17:04
You should update first post for 0.7 :)
I plan to release a new version at the end of the month, I will update all at this moment.
This thread is very old ;-)
Sirber
23rd April 2006, 22:14
0.7 or 0.8? :)
chipzoller
29th April 2006, 03:37
Even with the new version of mediainfo I'm still finding it's having problems reading my audio files correctly (un-muxed).
For instance, using megui and nero AAC to encode audio files from AC3 I tried two different settings: 'streaming' on VBR setting LC profile, and 'normal' on VBR setting LC profile.
Mediainfo detects both as such:
Audio #0
Codec : MPEG-1 Audio layer 3
Bit rate : 128 Kbps
Bit rate mode : CBR
Channel(s) : 2 channels
Channel coupling : Joint stereo
Sampling rate : 48 KHz
I was test encoding these through the besweet option and not avisynth. I haven't ruled out the possibility a a besweet/megui error however I've noticed other people have some similar issues with mediainfo incorrectly identifying media types.
Still a very useful tool and I hope it only gets better!
EDIT: I think this is a problem with megui and besweet. I just realized both are the same filesize and mpc detects both as 128kbit also. Sorry if this is unfounded.
Zenitram
29th April 2006, 09:04
EDIT: I think this is a problem with megui and besweet. I just realized both are the same filesize and mpc detects both as 128kbit also. Sorry if this is unfounded.
The best way to be sure is to send me the suspiscious file.
I will release a new version this WE, I can do tests on your files before releasing...
multicone
1st May 2006, 14:18
I plan to release a new version at the end of the month, I will update all at this moment.
This thread is very old ;-)
Tell the matroska guys if you update, so they can update their homepage (downloads section) to the new version
chipzoller
20th May 2006, 17:18
Zenitram,
I apologize if this has been mentioned elsewhere, but I created an Xvid AVI in vdub, and recoded dvd audio using Nero aac encoder (CBR 80 kbits/sec.) then muxed both streams in yamb/mp4box. I noticed when viewing the file with media info it tells me nothing mroe than:
General #0
Complete name : C:\video.mp4
File size : 141 MiB
Format : MPEG-4 version 1
I tested this with 0.7.2.1
Zenitram
20th May 2006, 18:38
(...)I noticed when viewing the file with media info it tells me nothing mroe than: (...)
I have a lot of problems with MP4 because I use mpeg4ip library, I plan to change...
Please create a "header" of the file (Debug menu) and send it to me (zen@mediaarea.net)
SeeMoreDigital
20th May 2006, 19:34
I apologize if this has been mentioned elsewhere, but I created an Xvid AVI in vdub, and recoded dvd audio using Nero aac encoder (CBR 80 kbits/sec.) then muxed both streams in yamb/mp4box. I noticed when viewing the file with media info it tells me nothing mroe than...Hmmm...
I've generated and muxed many encodes this way and I see this: -
http://img480.imageshack.us/img480/7151/mediainfo8gs.png
Cheers
Zenitram
20th May 2006, 22:23
I've generated and muxed many encodes this way and I see this:
His files seem valid, but mpeg4ip library refuse to open them (exception thrown), and my own parser is not yet ready, so this is why only the format is detected (currently the only functional part of my own parser ;-) ).
I must change, I really have too much problems with mpeg4ip... :(
thuongshoo
8th August 2006, 16:11
HI Zenitram ! I muxed wmv into mkv by GraphEdit . MediaInfo dont' say anything except filesize . MediaInfo or MatroskaMuxer ?
Thanks your program !
Zenitram
9th August 2006, 23:43
HI Zenitram ! I muxed wmv into mkv by GraphEdit .
Could you send me a private message to send me a part of the file?
I will analyze it soon.
Thanks.
thuongshoo
10th August 2006, 05:11
oh ! all wmvs which I muxed have the same bug . You can also mux a wmv file and test
Thanks !
Zenitram
10th August 2006, 10:57
I can't create all types of files, so if you want that I detect well your files, you need to send me firsts bytes of a file from each format (in MediaInfo, menu Debug, "create a header file") to zen@mediaarea.net
MacAddict
12th August 2006, 15:39
Great little program here! Any chance of video and audio bitrates being reported in a future version? Sorry if I missed it somewhere.
Zenitram
13th August 2006, 09:23
Great little program here! Any chance of video and audio bitrates being reported in a future version? Sorry if I missed it somewhere.
Overal, Video and audio bitrates are already shown when I succeed to detect them. (ie: AVI, MPEG, WMV).
I am working to find them for other formats.
Sirber
21st August 2006, 12:42
Where can I get "Info_Parameters() full list"? Dos say "See Info_Parameters() to have the full list" but nothing in the doc.
Zenitram
21st August 2006, 13:08
in C : MediaInfo_Option(NULL, "Info_Parameters", "");
Take a look here:
http://mediainfo.sourceforge.net/fr/Support/SDK/Quick_Start
(but work in progress)
Or look on examples given in the archive, all important procedure have an example.
Sirber
21st August 2006, 14:02
I need to know the codec name and codec bitrate mode. What are those flags? Thanks!
"Codec" returns a number (like 55 for MP3).
spamalam
21st August 2006, 22:38
I need to know the codec name and codec bitrate mode. What are those flags? Thanks!
"Codec" returns a number (like 55 for MP3).
"Codec/String" -> Codec name
"BitRate" -> Bitrate without kb
"BitRate/String" -> Bitrate with kb.
Full list is hidden away in the cvs:
http://mediainfo.cvs.sourceforge.net/mediainfo/MediaInfoLib/Source/Ressource/Text/Stream/
Sirber
21st August 2006, 22:51
thanks! :D
Codec/String
BitRate_Mode
spamalam
21st August 2006, 23:11
I can't seem to find a value for preload / interleave (ms) though? Is there a way of getting this with mediainfo?
edit: hmm, can interleave be calculated or is it something that's stored in the header of the container?
Doom9
27th August 2006, 20:26
We seem to have run into an issue in megui.. when instantiating MediaInfoLib from C# using an mp3 file as parameter, a win32 error is thrown that brings down MeGUI.
Zenitram
28th August 2006, 11:35
I can't seem to find a value for preload / interleave (ms) though? Is there a way of getting this with mediainfo?
If I understand well, Interleave is in "Delay/Video0" tag. this tag is the delay between the first Audio chunk and the Video.
edit: hmm, can interleave be calculated or is it something that's stored in the header of the container?
It is calculated in AVI (null bytes before the first chunk of AC3 for example)
It is from the header for MPEG-1/2 PS/TS (Presentation TimeStamp)
Zenitram
28th August 2006, 11:37
We seem to have run into an issue in megui.. when instantiating MediaInfoLib from C# using an mp3 file as parameter, a win32 error is thrown that brings down MeGUI.
I will test it in C#, but I didn't have bug report of this kind before :(
All mp3 files? only mp3 files?
PS: Doom9, you criticized before the lack of MPEG Transport Stream support, the next version will have a very good support of it ;-)
Doom9
28th August 2006, 12:38
I'm afraid I only have one stream to test here.. I created it because a user reported he couldn't mux a pre-existing mp3 file. I'll try to cut you a sample tonight (assuming it still crashes with the smaller file).
SeeMoreDigital
3rd September 2006, 19:23
Hi Zenitram,
When feeding MediaInfo with elementary MPEG-4 Part 2 streams it would seem it's able to identify information such as: -
Aspect Ratio,
TV Standard,
Chroma,
Interlacement
Writing Library
http://img338.imageshack.us/img338/6889/mediainfowithcmpce3.png
But once the same elementary stream is muxed into the MP4 container (with MP4Box), much of the above mentioned information is lost and the "Aspect Ratio" information is incorrect: -
http://img338.imageshack.us/img338/4639/mediainfowithmp4gd3.png
When accessing MP4 files is there any way of providing the same kind of data as the elementary streams?
Cheers
Zenitram
4th September 2006, 11:58
When feeding MediaInfo with elementary MPEG-4 Part 2 streams it would seem it's able to identify information such as:
Currently I can read this kind of information in :
- Raw MPEG-4 Video stream
- MPEG-4 Video stream in AVI container.
Why? because this kind of info is only available when decoding the first frame of the stream, not in the container. I already connected the MPEG-4 Video parser with AVI parser, not others.
I found how to do for OGG, MKV an MP4 containers, I will integrate as soon as I have time to do it ;-).
For MP4 container, it is not so easy to integrate, but I think the next version will support it. But I need to finnish to write my own parser before (I used mpeg4ip library, but it does not like malformed .mp4 files...)
JoeBG
4th September 2006, 12:08
Hi,
I have a feature request:
Would it be possible to show the embedded Cover in the mp4-Kontainer? In the moment itīs realised that there is a cover - but not shown. :)
Zenitram
4th September 2006, 14:36
Would it be possible to show the embedded Cover in the mp4-Kontainer?
This is planned.
But not soon.
Why?
- The next version will have a lot better parser, I will be able to read 3 different means for tags (currently : I read only 1).
- I will be able to encode the Cover in the MediaInfo library easily.
- But the GUI is text-based only. I must adapt the GUI, whish is more complex.
So the cover will be availble for th library soon, but you must wait a moment for the cover in the GUI, sorry but I have not enough time to implement all in the next release. time, time...
SeeMoreDigital
4th September 2006, 14:51
Thanks for the confirmation ;)
Zenitram
4th September 2006, 20:21
When accessing MP4 files is there any way of providing the same kind of data as the elementary streams
Small gift for your interest in MediaInfo ;-)
http://sourceforge.net/project/showfiles.php?group_id=86862&package_id=197932
The version of today is a proof of concept for MP4 parser, do not spread it, please.
All MPEG-4 Video attributes should be available for a MP4 file.
SeeMoreDigital
4th September 2006, 20:57
Hey thanks mate...
I've just downloaded it... I'll give it a try and report back ;)
SeeMoreDigital
5th September 2006, 11:28
Do you want me to post my observations about 0.7.4.0 BETA within this thread?
Zenitram
5th September 2006, 12:00
Do you want me to post my observations about 0.7.4.0 BETA within this thread?
This is a beta version, I would prefer you write to me directly (zen@mediaarea.net), this will give me more trace in my mailbox too.
But there is no problem if you prefer to reply here.
bond
10th December 2006, 20:16
Zenitram, we are having problems with mediainfo in megui, as it crashes when using the avisynthscript creator (which uses mediainfo) and when using mp4menugui
read more here:
http://forum.doom9.org/showthread.php?t=117574
it seems to have happened for me and Hyper Shinchan
i am using a pentium3 866mhz processor and windows 2000
any idea what could be wrong? (corrupted memory error?)
Zenitram
11th December 2006, 14:11
Which version do you use?
a "first" version of v0.7.4.2 (yesterday) was corrupted, I reuploaded it.
If you downloaded yesterday, this may be the problem.
You can contact me at zen@mediaarea.net to discuss about this problem.
MatMaul
11th December 2006, 16:53
I have just download the last version (0.7.4.2) and I have a big problem : I obtain this message when I want to analyse any mkv : "Division by zero"
EDIT : no problem with the version 0.7.4.1
mahsah
11th December 2006, 22:01
What about *caugh* NUT?
Zenitram
11th December 2006, 22:44
I obtain this message when I want to analyse any mkv : "Division by zero"
Arghhh...
Please download last beta, I think I corrected it, I found on suspicious line, but I have not crashing file.
http://sourceforge.net/project/showfiles.php?group_id=86862&package_id=197932&release_id=470511
I am interested to have the first 256K of one file from you (in GUI, menu debug, "create header file)
What about *caugh* NUT?
This is planned, but not a priority (NUT files are 0.0001% of mulltimedia files...)
MatMaul
11th December 2006, 23:25
ok no problem now, but I can't do an header with this file : the created file is a 0 octet file.
Zenitram
11th December 2006, 23:28
ok no problem now, but I can't do an header with this file : the created file is a 0 octet file.
Suprising... You are the second person to say me this, but it works at home... :(
I will see what I can do to have a better handling of header creation...
spamalam
31st December 2006, 03:51
I'm trying to get the frame type (pal/NTSC) but i can't seem to get it to work. I'm using the value in the cvs files stored on your cvs space, is this still valid?
MediaInfo.Stream_Video, 0, "Standard"
Thanks
Zenitram
1st January 2007, 18:49
Yes, always Valid.
Which kind of file (mp4, AVI?)
Is other stuff right? (output of MediaInfo GUI)
Could you say me what are output for Width/Height/AspectRatio/FrameRate?
vlada
1st January 2007, 22:29
I have one very simple question: I'm writing an application which uses MediaInfo to read information about video files. I'd like to know if it is guaranteed, that container will be on line 2 in the output and video #0 will on line 10? Or do I have to scan the output for the right lines?
Of course more information depend on number of video/audio streams so I have to scan for them.
Kurtnoise
2nd January 2007, 21:08
Depends on the container himself I'd say...For mp4 & mkv files, we can have metadata and/or tags first, if you're refering at the General Information pattern.
spamalam
6th January 2007, 00:54
Yes, always Valid.
Which kind of file (mp4, AVI?)
Is other stuff right? (output of MediaInfo GUI)
Could you say me what are output for Width/Height/AspectRatio/FrameRate?
bog standard avi file (xvid encode), but its the same with everything i pass to it as far as i can see. Width, Height, AR, Framerate all match what gspot tells me. Anyway:
XviD
Standard:
Width: 480
Height: 352
FrameRate: 25.0
Standard:
Width: 544
Height: 400
FrameRate: 25.0
XviD
Standard:
Width: 720
Height: 400
FrameRate: 25.0
etc. (these are just the avis i have at hand, all were PAL).
Is what i'm getting from the dll. I don't have the GUI.
Just doesn't detect if its PAL or NTSC.
SeeMoreDigital
6th January 2007, 13:27
Is what i'm getting from the dll. I don't have the GUI.
Just doesn't detect if its PAL or NTSC.The GUI version does not offer "colour system" information either: -
Video #0
Codec : XviD
Codec/Family : MPEG-4
Codec/Info : XviD project
Codec settings/BVOP : Yes
Codec settings/QPel : No
Codec settings/GMC : 0
Codec settings/Matri : Default
PlayTime : 10s
Bit rate : 319 Kbps
Width : 720 pixels
Height : 432 pixels
Aspect ratio : 2.35
Frame rate : 25.000 fps
Resolution : 8 bits
Chroma : 4:2:0
Interlacement : Progressive
Bits/(Pixel*Frame) : 0.041
StreamSize : 390 KiB
Writing library : XviD0046Is such information all that important anyway?
By-the-way... Would it be possible to add the "video frame total" count?
Cheers
spamalam
6th January 2007, 15:15
Is such information all that important anyway?
yes, when versioning it not only helps tracks the source, very often the PAL sources look for more vibrant than the NTSC by and large in this case.
MediaInfo used to offer standard calls, but they don't seem to work since several revisions back and Standard no longer returns everything.
I mean i can just use fps as an indicator to get the same information, just that bit neater if I can have mediainfo can do that instead of using some finickerty system :)
vlada
6th January 2007, 16:43
spamalam
If you're talking about digital video, PAL and NTSC don't exist anymore. Those were norms for analogue broadcasting. The only place where PAL and NTSC remain in digital world are DV and DVD-Video formats. Here you have video files, which are better optimized for PAL or NTSC (resolution and framerate).
Where do you think MediaInfo could get an information, what was the source of an AVI file?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.