View Full Version : MediaInfo(Lib) 0.7 - Reading information about media files
SeeMoreDigital
2nd December 2007, 23:16
Anyway I have another problem. I'm not sure if MediaInfo is supposed to handle elemantary streams, but I think it usually does. I have a h.264 stream demuxed from AVCHD camcorder. MediaInfo 0.7.5.5 reports it as an AC3 audio. A sample can be downloaded here (http://www.sendspace.com/file/cpgtaq) (7 MB).Yes it can handle "elementary" streams...
MediaInfo v0.7.5.3 reports your sample as being: -
General #0
Complete name : C:\Documents and Settings\SeeMoreDigital\Desktop\video5.264
Format : AVC
Format/Info : Advanced Video Codec
Format/Family : AVC
File size : 7.27 MiB
Video #0
Codec : AVC
Codec/Info : MPEG-4 AVC
Codec profile : High@L4.0
Width : 1440 pixels
Height : 1088 pixels
Aspect ratio : 4/3
PixelAspectRatio : 1.000
DisplayAspectRatio : 1.324
....and yes, MediaInfo v0.7.5.5 reports this: -
General #0
Complete name : C:\Documents and Settings\SeeMoreDigital\Desktop\video5.264
Format : AC3
Format/Info : Audio Coding 3
File size : 7.27 MiB
PlayTime : 1mn 59s
Bit rate : 512 Kbps
Audio #0
Codec : AC3
Bit rate : 512 Kbps
Bit rate mode : CBR
Channel(s) : 3 channels
Channel positions : L C R
Cheers
foxyshadis
3rd December 2007, 01:08
A friend of mine wrote a Python wrapper for the .dll so it is solved. I didn't have the time to dive into the code yet, I just verified it works. If anyone's interested in it, let me know.
Sure!
vlada
8th December 2007, 12:50
So here it is: http://www.sendspace.com/file/ks1hei
As my friend told me it might not be fully functional, because he's never programmed anything in Python before. I'll also post it as an attachment, I hope somebody will approve it. It's only 4kB.
From what I tested so far everything seems to work correctly. I removed some comments he wrote me in Czech and translated some of them to English.
vlada
9th December 2007, 22:20
Zenitram> I have a TS sample, where MediaInfo can't detect any streams. It has one h.264 video track and 4 AC3 audio tracks. Are you interested in that file?
Atak_Snajpera
18th December 2007, 21:12
Does anybody know why I get always that kind of garbage with every file on Vista?
http://img229.imageshack.us/img229/4749/new1wx2.th.png (http://img229.imageshack.us/my.php?image=new1wx2.png)
vlada
21st December 2007, 01:40
Atak_Snajpera
I can confirm this too with 0.7.5.6. Version 0.7.5.0 works correctly. (I use Czech WinXP)
Kurtnoise
21st December 2007, 16:40
try this build (http://kurtnoise.free.fr/index.php?dir=misc/&file=MediaInfo-0.7.5.6_CLI.zip)...
Kurtnoise
21st December 2007, 16:44
Zenitram> I have a TS sample, where MediaInfo can't detect any streams. It has one h.264 video track and 4 AC3 audio tracks. Are you interested in that file?
sure...upload a sample please. Same thing for the raw AVC (the link to download the file is dead).
Atak_Snajpera
23rd December 2007, 20:55
Thanks Kurtnoise13 for fixed version
vlada
1st January 2008, 20:09
sure...upload a sample please. Same thing for the raw AVC (the link to download the file is dead).
The problematic .TS file is uploaded at http://www.sendspace.com/file/xjfw21. I think the problem with AVC stream is general, because it happend to me with more files. But if you can't reproduce it I will reupload the sample again.
Also I have some features requests for MediaInfo. I'm now working on a program, which uses MediaInfo library to get information about media files and then displays the needed modification to transcode it to DVD-Video. I also plan to add more output formats and maybe some day even make it a simple to use transcoding tool.
Here is the problem I currently have:
I need to know video compression. I need to know if it is MPEG-1/2/4 ASP or AVC. Or any other compression format. I use the "codec/family" information to get the compression, but it only works for AVI. In other containers the video compression is found under "codec". I could workaround it, but I think this inconsistency should be fixed in MediaInfo.
Second problem is, that for Matroska files the DLL only displays Mk. Again I could workaround it very simply, but I think I should mention it.
Also I'd like to ask you if it is possible to indicate some more informations about H.264. For example B-frames, CABAC etc. Is it possible at all?
Also I get much more information from a RAW AVC stream then from the same video muxed in MKV. Why?
Kurtnoise
2nd January 2008, 06:20
The problematic .TS file is uploaded at http://www.sendspace.com/file/xjfw21. I think the problem with AVC stream is general, because it happend to me with more files. But if you can't reproduce it I will reupload the sample again.
thanks...I'll try.
Here is the problem I currently have:
I need to know video compression. I need to know if it is MPEG-1/2/4 ASP or AVC. Or any other compression format. I use the "codec/family" information to get the compression, but it only works for AVI. In other containers the video compression is found under "codec". I could workaround it, but I think this inconsistency should be fixed in MediaInfo.
Second problem is, that for Matroska files the DLL only displays Mk. Again I could workaround it very simply, but I think I should mention it.
Should be easy to tweak this...:)
Also I'd like to ask you if it is possible to indicate some more informations about H.264. For example B-frames, CABAC etc. Is it possible at all?
It's possible and it's planned afaik...but I've no deadline on that.
Also I get much more information from a RAW AVC stream then from the same video muxed in MKV. Why?
such as ? mkv parsing has been rewritten recently. So, several things are missing.
vlada
2nd January 2008, 16:48
such as ? mkv parsing has been rewritten recently. So, several things are missing.
For example used profile (Baseline, Main, High etc.)
Kurtnoise
2nd January 2008, 20:37
with which matroska writer tools ? (x264/xvid_encraw-mkvtoolnix-gdsmux-gstreamer-handrake-avidemux-avimux_gui)
vlada
3rd January 2008, 01:25
O.K., so I'll be more specific. This what I get from an MKV:
Hlavní #0
Celý název a cesta : C:\_avchd\video4.mkv
Formát : Mk
Velikost souboru : 16.2 MiB
Hrací čas : 22s 880ms
Bit rate : 5957 Kbps
Encoded date : UTC 2007-08-11 16:43:56
Použitý software : mkvmerge v2.0.2 ('You're My Flame') built on Feb 21 2007 23:40:55
Enkódoval : libebml v0.7.7 + libmatroska v0.8.1
Video #0
Codec : MPEG-4 AVC
Codec/Info : MPEG4 ISO advanced profile
Hrací čas : 22s 880ms
Bit rate : 5833 Kbps
Šířka : 1440pixely
Výška : 1080pixely
Poměr stran : 16/9
Frame rate : 25.000 fps
The SW used to create the video is clear. Sorry for the Czech description, but even if I switch MediaInfo to English, the text remains in Czech. But it should be clear what the parameters are.
Now the same file after demuxing in MediaInfo 0.7.5.6:
Hlavní #0
Celý název a cesta : C:\_avchd\video4.264
Velikost souboru : 16.2 MiB
And now the same file in 0.7.5.0 (CLI, but it would be the same with GUI version):
General #0
Complete name : C:\_avchd\video4.264
Format : AVC
Format/Info : Advanced Video Codec
Format/Family : AVC
File size : 16.2 MiB
Video #0
Codec : AVC
Codec/Info : MPEG-4 AVC
Codec profile : High@L4.0
Width : 1440 pixels
Height : 1088 pixels
Aspect ratio : 4/3
PixelAspectRatio : 1.000
DisplayAspectRatio : 1.324
So first of all there is a bug in newer versions of MediaInfo that they don't read RAW AVC streams. With the older version 0.7.5.0 there are no problems. Also as you can see, I get different information about the video stream when it is demuxed. From a RAW AVC stream I get the information about profile, but not bitrate, framerate and time. Neuron2 says it should be possible to read framerate information from an AVC stream.
Also aspect ratio doesn't match. Any idea why?
If you can't reproduce it and want to see this sample video, let me know and I'll upload it.
Kurtnoise
4th January 2008, 20:32
mmh, I just tried to parse a raw AVC stream on my side with the last library and I got all infos...could you upload a sample of your video4.mkv file. :)
Thanks.
vlada
4th January 2008, 23:37
The sample is at http://www.sendspace.com/file/gpb5ul. It is a 17MB clip from Panasonic AVCHD camcorder muxed into MKV (only video).
Kurtnoise
5th January 2008, 21:28
I've no idea why the parsing fails...I'll ask to Zenitram to look at this more carefully.
btw, I've made a fix for your 2nd problem from the post #211.
vlada
6th January 2008, 12:00
Thanks a lot for your great feedback.
Kurtnoise
23rd January 2008, 21:22
@vlada: some new stuff in the incoming release...
General #0
Complete name : D:\Tor_\Script ED new_h264.mkv
Format : Matroska
File size : 5.11 MiB
PlayTime : 36s 959ms
Bit rate : 1160 Kbps
Encoded date : UTC 2008-01-23 20:13:57
Writing application : mkvmerge v2.1.0 ('Another Place To Fall') built on Aug 19 2007 13:40:07
Writing library : libebml v0.7.7 + libmatroska v0.8.1
Video #0
Codec : MPEG-4 AVC
Codec/Family : AVC
Codec/Info : Advanced Video Codec
Codec profile : High@L5.1
PlayTime : 36s 920ms
Bit rate : 1107 Kbps
Width : 640 pixels
Height : 336 pixels
Display Aspect ratio : 1.905
Frame rate : 25.000 fps
Chroma : 4:2:0
Interlacement : Progressive
Writing library : x264 - core 57 svn-699C
vlada
23rd January 2008, 21:31
That's great thanks a lot. I hope to get back to coding my application after a 2-weeks break. It is great news that I'll be able to get more detailed info.
Malow
29th January 2008, 02:49
is mediainfo "compatible" with large files?
im having problems with large files, like 25gb.
it "freezes" and looks like is reading the entire file, the hard disk light keep "on"
the video is an avi file, dv codec, exported from sony vegas.
with 13gb files, it take about 13 seconds to identify, but works. ;)
Zenitram
29th January 2008, 10:46
is mediainfo "compatible" with large files?
the video is an avi file, dv codec, exported from sony vegas.
Yes, I had problems with AVI OpenDML files in the last versions because I try to parse the Index chunks for having the real video stream size, and there was bugs in it with OpenDML indexes...
I will release a version today (0.7.5.8), please test it with the biggest AVI you have, this should be a lot quicker (lot of speed improvements), and give me your feedback.
Zen, developper of MediaInfo.
Kurtnoise
4th February 2008, 22:45
@vlada: you want more ?
General #0
Complete name : D:\Tor_\Script ED new_h264.mkv
Format : Matroska
File size : 5.11 MiB
PlayTime : 36s 959ms
Bit rate : 1160 Kbps
Encoded date : UTC 2008-01-23 20:13:57
Writing application : mkvmerge v2.1.0 ('Another Place To Fall') built on Aug 19 2007 13:40:07
Writing library : libebml v0.7.7 + libmatroska v0.8.1
Video #0
Codec : AVC
Codec/Family : AVC
Codec/Info : Advanced Video Codec
Codec profile : High@L5.1
Codec settings, CABAC : Yes
PlayTime : 36s 920ms
Bit rate : 1107 Kbps
Width : 640 pixels
Height : 336 pixels
Display Aspect ratio : 1.905
Frame rate : 25.000 fps
Chroma : 4:2:0
Interlacement : Progressive
Writing library : x264 - core 57 svn-699C
Encoding settings : cabac=1 / ref=16 / deblock=1:1:1 / analyse=0x3:0x113 / me=umh / fpel_cmp=sad / subme=7 / me-prepass=0 / brdo=1 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=1 / nr=0 / decimate=1 / mbaff=0 / bframes=16 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / bime=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=1177 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30
:) test the last beta release...
Schrade
6th February 2008, 01:15
Just a little note about a misspelled codec name:
Video #0
Codec : WinNow
Codec/Info : WinNow Videum Hardware Compression
PlayTime : 9s
Bit rate : 14 Mbps
Width : 448 pixels
Height : 336 pixels
Display Aspect ratio : 4/3
Frame rate : 30.000 fps
Resolution : 24 bits
StreamSize : 15.0 MiB
That should say "Winnov (http://www.winnov.com/)" not "WinNow"
It's the WNV1 codec.
Schrade
6th February 2008, 07:50
Found another typo:
(Quictime in the Format/Info line)
General #0
Complete name : F:\DL\WGet\Game Trailers\quantic_video.mov
Format : QuickTime
Format/Info : Quictime movie
Format/Family : MPEG-4
File size : 70.0 MiB
PlayTime : 35s 35ms
Bit rate : 17 Mbps
StreamSize : 18.8 KiB
Encoded date : UTC 2008-01-22 15:17:13
Tagged date : UTC 2008-01-22 15:21:21
Zenitram
6th February 2008, 11:49
Found another typo:
Ah... typos :)
Corrected, will be OK in next version.
Schrade
6th February 2008, 17:43
Ah... typos :)
Corrected, will be OK in next version.
Thanks, Zenitram!
By the way, is it possible to make the window of MediaInfo remember its size? I hate having to resize the window manually every time to see everything in Text mode.
Zenitram
6th February 2008, 18:19
By the way, is it possible to make the window of MediaInfo remember its size? I hate having to resize the window manually every time to see everything in Text mode.
This is planned, but not he most urgent.
(I am completly rewriting the GUI, for being cross-platform...)
clsid
6th February 2008, 20:28
I also have a suggestion/request:
Could you make a simplified version of the GUI that is only capable of displaying the info as plain text output. No fancy options. Just a 'browse for file' button, a text field, and perhaps a copy-to-clipboard button.
Preferably statically linked with the mediainfo lib, so that everything is in a single executable file.
Zenitram
6th February 2008, 23:37
Could you make a simplified version of the GUI that is only capable of displaying the info as plain text output. No fancy options. Just a 'browse for file' button, a text field, and perhaps a copy-to-clipboard button.
For me, what you demand is simple :
- You configure MediaInfo for showing Text by default (in the main configuration window)
- in Win Explorer, right clic on the file, "MediaInfo", and you have the text (I must put a button "copy to clipboard here...).
Anyway, a guy wrote a tools which can be what you want:
http://fileforum.betanews.com/detail/MediaInfo_Lite/1183386892/1/
(not supported by me)
Preferably statically linked with the mediainfo lib, so that everything is in a single executable file.
Not planned currently for official release (doable from source easily).
I can't manage tens of versions with CLI/GUI/DLL, Windows/Linux/Mac, 32/64 bits...
Atak_Snajpera
7th February 2008, 01:18
Could you make a simplified version of the GUI that is only capable of displaying the info as plain text output. No fancy options. Just a 'browse for file' button, a text field, and perhaps a copy-to-clipboard button.
I've just made this simple gui http://www.mediafire.com/?d5yommkdxnz
clsid
7th February 2008, 12:06
Thanks Atak_Snajpera, that is exactly what I had in mind. A simple and small tool that doesn't require installation.
vlada
7th February 2008, 13:46
Kurtnoise13
That's great. Many thanks.
Also the consistency of video strem information in different containers is now much improved:
http://img249.imageshack.us/img249/103/migp8.th.png (http://img249.imageshack.us/my.php?image=migp8.png)
Many thanks for your work.
If I could have one more request: Would it be possible to display delay and stretch of audio in MKV? It is very important when converting such file.
Schrade
8th February 2008, 09:24
I've just made this simple gui http://www.mediafire.com/?d5yommkdxnz
I like this, Atak. Any chance you could make it so that it remembers the window size or at least resizes itself automatically to fit all the info?
Also, a way to change the font from hard to see grey to black would be good too. Oh, any chance to give it an argument? I'd like to be able for it to load a file by either commandline or creating a right click "MediaInfo" option.
Other than that, I like its simpleness and speed.
Atak_Snajpera
13th February 2008, 17:24
Also, a way to change the font from hard to see grey to black would be good too
Clsid asked for simple GUI so nothing more will be added. BTW This is dark grey (96,96,96) and have no problems with reading text. I suggest to calibrate your monitor :)
clsid
13th February 2008, 18:44
Allowing to open a file through command line would be a useful addition. That would for example allow a user to open a file in MediaInfoRaw through a "Send to" shortcut.
Edit: typo
SeeMoreDigital
13th February 2008, 20:44
Allowing to open a file through command line would be a useful addition. That would for example allow a user to open a file in MediaInfoRaw though a "Send to" shortcut.Very good idea :)
Atak_Snajpera
13th February 2008, 22:11
http://www.mediafire.com/?5mxjsmuvjir
with command line support
Schrade
13th February 2008, 23:44
Clsid asked for simple GUI so nothing more will be added. BTW This is dark grey (96,96,96) and have no problems with reading text. I suggest to calibrate your monitor :)
Monitor _IS_ calibrated. I just prefer black text on white to grey text on white.
http://www.mediafire.com/?5mxjsmuvjir
with command line support
Bah....when I suggest it you dismiss it. When clsid suggests it you listen :-P
Thanks for adding it. I'll definitely use it now. It's so speedy!
clsid
13th February 2008, 23:59
Thanks :)
Edit:
A little request. Could you make the window a bit wider? 50% or so. Now some stuff is getting word wrapped.
Atak_Snajpera
2nd March 2008, 15:39
MediaInfo 0.7.6.0 cannot detect VC-1 video
http://img442.imageshack.us/img442/4623/new1nz5.th.png (http://img442.imageshack.us/my.php?image=new1nz5.png)
Zenitram
2nd March 2008, 17:23
MediaInfo 0.7.6.0 cannot detect VC-1 video
It detects VC-1 video on my .evo example files.
I don't have .ts (or .m2ts) files with VC-1, so I don't know what is the "stream_type" registered in the TS_program_map_section.
Please contact me (zen@mediaarea.net) for providing me an short example (you can create a 512K file with the official MediaInfo GUi, menu debug, "create a header file"), or if you can't, at least provide me the stream_type (in the official GUI, menu debug, "details - 10", load a file and search for "stream_type" in the text).
Atak_Snajpera
2nd March 2008, 18:33
sample file
http://www.mediafire.com/?e2jafizmgdw
Atak_Snajpera
2nd March 2008, 20:48
Another problem
http://www.mediafire.com/?rnxx9z94jjg
this file should be detected as DTS. However if I rename to .dts everything is ok.
General #0
Complete name : C:\Users\Dawidos\Desktop\audio.1.mpa
Format : MPEG-1 Video
Format/Family : MPEG-1
File size : 11.0 MiB
Video #0
Codec : MPEG-1 Video
Codec/Family : MPEG-V
Codec settings, Matrix : Standard
Bit rate mode : CBR
Bit rate : 10 Mbps
Nominal bit rate : 10 Mbps
Width : 939 pixels
Height : 1076 pixels
Display Aspect ratio : 0.851
Frame rate : 0.000 fps
Interlacement : Progressive
Zenitram
3rd March 2008, 21:07
sample file
http://www.mediafire.com/?e2jafizmgdw
thanks for this example file, it is very useful.
I corrected problems, VC-1 will be detected in next version.
btw, PCM stream will too (but not a lot of information, I don't know to parse the PCM stream for finding the count of stream, the bitrate... If you have information about the PCM specifications in bluray, I am interested in :) )
And Dolby TrueHD stream will be detected as TrueHD, no more AC3 (but not a lot more information, I have only A/52B specifications, and there are no information about TrueHD :( )
Example of output with my development version for your file:
MPEG-1TS: 63.6 MiB
1920*1080 (16/9), at 24.000 fps, VC-1 (Advanced@3)
English, 640 Kbps, 48 KHz, 6 channels, AC3
English, PCM (Big / Signed)
English, 48 KHz, 6 channels, TrueHD
Chinese, 448 Kbps, 48 KHz, 6 channels, AC3
I will try to improve my MPEG parser for not detect your dts file as MPEG...
Atak_Snajpera
4th March 2008, 15:05
Great job!
1920*1080 (16/9), at 24.000 fps, VC-1 (Advanced@3)
It should be 23.976 :)
Zenitram
4th March 2008, 15:25
It should be 23.976 :)
Another bug :-D
I found my error, corrected, will be OK in the next version.
(sorry, VC-1 bitstream parsing is new for me, and I don't have the specifications, so I do a lot of tests and reading other source code, so I may make mistakes :( )
Zenitram
4th March 2008, 22:27
Great job!
You can test it here:
http://sourceforge.net/project/showfiles.php?group_id=86862&package_id=197932
File MediaInfo_20080304_GUI_Win32_WithoutInstaller.7z, you can decompress it and copy the DLL to the directory with your prefered GUI.
LeMoi
4th March 2008, 22:47
No more detailed x264 infos with latest official build :(
Schrade
4th March 2008, 22:55
No more detailed x264 infos with latest official build :(
I was never able to get any detailed x264 info :-/ No matter what build I tried.
Any chance you could point to one that worked for you?
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.