View Full Version : MediaInfo(Lib) 0.7 - Reading information about media files
Sirber
15th October 2005, 13:49
I can release a new beta version special for you this WE, with language subtitles if you can't wait.
But this will be a beta version ;-)
Note : maybe better to ask this with private messages? ;-)
Betas, alphas, all good to me :D
@SeeMoreDigital
Is it a square party? ;)
Sirber
16th October 2005, 21:01
@Zenitram
Is it possible for a track (video, audio, sub) in MKV (MP4) to know which track number it is in the source file?
ex:
MP4
1: general
2: general
3: video
4: audio
MKV
1: video
2: audio
3: audio
4: sub
5: sub
Could be very very usefull to get infos about a file and build a command line to extract each tracks to separate files.
Thanks!
[edit]
Also, in the doc you only show the first 2-3 params for function Parameters. Where can I have a full list?
Sirber
16th October 2005, 21:09
I cannot know which track reported by MediaInfo match which track from the MP4:
General
Complete name : Y:\Animes\...\E01.mp4
File size : 156 MiB
Format : MPEG 4
Overal BitRate : 1000 Kbps
PlayTime : 21mn 50s
Video #0
Codec : MPEG-4 Adv Simple@L5
Bit rate : 874 Kbps
Width : 512
Height : 384
Aspect ratio : 4/3
Frame rate : 29.970
Bits/(Pixel*Frame) : 0.148
PlayTime : 21mn 50s
Audio #0
Codec : MPEG-4 AAC LC
Bit rate : 120 Kbps
Sampling rate : 24 KHz
PlayTime : 21mn 50s
Zenitram
17th October 2005, 09:23
Is it possible for a track (video, audio, sub) in MKV (MP4) to know which track number it is in the source file?
This is not really possible, because libraries I use (mp4ff and matroskalib) doesn't give this kind of info.
MKV give an unique ID ("KaxTrackNumber" in the spec), you can retrieve it with "ID" parameter (but need more tests.
Could be very very usefull to get infos about a file and build a command line to extract each tracks to separate files.
You are welcome to help me programming ;-)
Now, I am very occupied with GCC under Linux compilation, add more tags support, support of new formats (last quicktime version...), debugging, and I have not the time to do this...
Also, in the doc you only show the first 2-3 params for function Parameters. Where can I have a full list?
http://mediainfo.sourceforge.net/fr/Support/SDK/More_Info#Capacities
(need to be more detaileld, but lack of time...)
What you need is MediaInfo::Option("Info_Parameters_CSV")
Note : I am late for a new version, but for subtitles in MKV 0.7.0.1 should have already implemented it ("Language" or "Language/String1" parameter)
At this time, 0.7 branch is very unstable, so I need time to stabilize this, be patient, it will be done...
ac-chan123
17th October 2005, 12:01
Can you add some feature from "ABCAVI Tag"(http://abcavi.tk/)? E.g. avi struc view, shell extention for info output on mouseover Icon, ...
There is also the biggest fourcc list i know(over 550), twocc(180) and a nice tag comparson.
Sirber
17th October 2005, 12:19
ok, thanks!
Zenitram
17th October 2005, 13:48
Can you add some feature from "ABCAVI Tag"(http://abcavi.tk/)? E.g. avi struc view, shell extention for info output on mouseover Icon, ...
There is also the biggest fourcc list i know(over 550), twocc(180) and a nice tag comparson.this is planned, but I am alone on MediaInfo, and I have a personal life which takes a lot of time too ;-)
Sirber
17th October 2005, 16:56
this is planned, but I am alone on MediaInfo, and I have a personal life which takes a lot of time too ;-)
Yeah, but sometimes it's better to be alone in a project, most of the time you will be stuck with people that doesn't do a damn thing.
Zenitram
17th October 2005, 22:59
@Sirber : DLL v0.7.0.2 is out, with more "language" support :
- "Language" for the Language in the container
- "Language/String" for a translation (in English)
- "Language/2" for ISO format (2 digits)
And for MKV (mainly, maybe others later) :
- "StreamID" for the track number of this kind
- "ID" for the track number it is in the source file
- "UniqueID" for the track Number specified as Unique Identifier of the track
To know all supported formats :
MediaInfo::Option("Info_Parameters")
Will try to correct other bugs now ;-)
History :
x #1323208 : Video Bitrate for OGM files with VBR audio was incorrect
+ Better detection and handling of DivX container
+ #1327902 : More meta data properties for RIFF files
x #1327468 : RIFF (AVI) files with not-padded (INFO) sub chunks can't be parsed
+ More "generic" tags added
x Some other minor bugs
Sirber
17th October 2005, 23:15
sweeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeet!!!!1!!1!one!!! :D
I will try tonight to play with it :D
For my soft, the only missing thing would be track number for MP4 and I'm all set :D
BTW, do you have a paypal link?
Sirber
17th October 2005, 23:26
ShowMessage(MediaInfo_Get(handle, 1, 0, 'ID', 1, 0));... gives me nothing on MKV :(
General
Complete name : Y:\Animes\E155-001.mkv
File size : 7.97 MiB
Format : Matroska
Overal BitRate : 742 Kbps
PlayTime : 1mn 30s
Date : UTC 2005-10-14 13:24:19
Video #0
Codec : V_MPEG4/ISO/AVC
Width : 640
Height : 480
Aspect ratio : 4/3
Audio #0
Codec : AAC LC
[edit]
In fact, all other new flags gives me '' :(
Zenitram
18th October 2005, 09:36
BTW, do you have a paypal link?
https://www.paypal.com/xclick/business=jerome_martinez@yahoo.com&item_name=MediaInfo
Or if you prefer to donate with SourceForge :
http://mediainfo.sourceforge.net/Help
Zenitram
18th October 2005, 12:20
In fact, all other new flags gives me '' :(Have you tested DLL v0.7.0.2 (do not work on v0.7.0.1...)? I tried with some MKV files, and it works :(
Note : for Debugging, I need the "debug" output (Debug-->Advanced mode) to have all indicators.
But, maybe the best is to use private messages for debugging...
Sirber
18th October 2005, 12:37
I got the 0.7.0.2b. I will make more tests. Do you have msn?
Sirber
22nd October 2005, 20:07
problems with "Language". In Martoska, japanese is "jpn" while MI gives me "ja". Any clue why?
Zenitram
23rd October 2005, 13:13
problems with "Language". In Martoska, japanese is "jpn" while MI gives me "ja". Any clue why?
iso639 : http://www.w3.org/WAI/ER/IG/ert/iso639.htm or http://www.loc.gov/standards/iso639-2/frenchlangn.html
In MediaInfo, I use for all containers the 2-character iso639-1 code.
If the container use the 3-character iso639-2 code (like matroska), I translate it in iso639-1 (if possible, 99.99999% of cases ;-) ).
The 2-character code of Japanese is "ja".
So, if you read a DVD or an AVI or a Matroska file, Japanese will always be "ja", not sometines "jpn" and sometimes "ja"!
Sirber
23rd October 2005, 14:28
ok, thanks! I will convert :)
Sirber
4th November 2005, 02:01
Hi
I would need a "releasable" version :D RealAnime LE alpha 3 is coming to store near you ;)
Elias
4th November 2005, 07:41
tags are a special issue in mp4 because there is an official tagging standard for mp4, but the power of itunes (which uses a private tagging way) lead to that people use only the itunestagging
and as always private stuff leads to a mess...
i would say there are two good mp4 libs available: the one from mpeg4ip and the one from gpac
mpeg4ip tags in the itunesway, gpac i think in the official mpeg way (but i have to admit i never really tested it so i dunno much about it)Is there any explanation about this on the Gpac site (I've never found anything similar on gpac.sf.net)? Any commands for MP4Box?
bond
4th November 2005, 12:40
i never really tried mp4box' meta options, you might want to talk to jeanlf about this
LAIN
7th January 2006, 02:55
Hi,
I'm a realanime dev and i'v incounter a problème using media info dll. We extract FPS to make sure that the output will be correct.
with few files (that have a fps of 29.96999 that i'v found with matroska shell addon) when i try to find the fps with MI, it give me that :
Video #0 : DivX 5
Aspect : 704 x 528 (1.333) at %fps% fps
i'm unable to find FPS in this file
source is a MKV.
*MediaInfo version : 0.7.0.4
** when the file is extracted, we can have
Thank you
LAIN
foxyshadis
7th January 2006, 08:18
MKV isn't generally supported in mediainfo, sadly. For my own tools I parse the output of mkvverify (mkvinfo would also work, but mkvverify is very compact and gives more info).
Zenitram
7th January 2006, 11:56
I did not have time to work well on Matroska, so the support is not good at this time.
But I plan to have a better support soon (maybe next release)
Sorry for the delay.
LAIN
22nd February 2006, 01:50
Hi,
I'v recently downloaded the last version of MediaInfo 0.7.1.0 available on your web site because i have a problem knowing the fps of a file. In MkvInfo it is available but not in MI current release and dll that we use in RealAnime 4.
here is the video section of mkvinfo
| + A track
| + Track number: 1
| + Track UID: 3752893478
| + Track type: video
| + MinCache: 1
| + Timecode scale: 1.000000
| + Codec ID: V_MS/VFW/FOURCC
| + CodecPrivate, length 40 (FourCC: DX50, 0x30355844)
| + Default duration: 33.367ms (29.970 fps for a video track)
| + Default flag: 1
| + Language: jpn
| + Name: [a4e]Lost Universe - 01
| + Video track
| + Pixel width: 696
| + Pixel height: 520
| + Display width: 696
| + Display height: 520
| + Lacing flag: 0
MediaInfo video section :
Video #0
Count : 35
Count of stream of t : 1
Kind of stream : Video
StreamKindID : 0
Inform : Japanese, 1422 Kbps, 696*520 (4/3), DivX 5
ID : 1
UniqueID : 3752893478
Title : [a4e]Lost Universe - 01
Codec : DX50
Codec : DivX 5
Info : (MPEG4) DivX Networks
Url : http://www.divx.com
Bit rate : 1422220
Bit rate : 1422 Kbps
Width : 696
Height : 520
Aspect ratio : 1.338
Aspect ratio : 4/3
Resolution : 24
Language : ja
Language : Japanese
If you want more information here is the full .txt file
mkvinfo : http://www.sobanet.ca/files/mkvinfo.txt
mediainfo: http://www.sobanet.ca/files/mediainfo.txt
LAIN
Zenitram
22nd February 2006, 09:04
I'v recently downloaded the last version of MediaInfo 0.7.1.0 available on your web site because i have a problem knowing the fps of a file. In MkvInfo it is available but not in MI current release and dll that we use in RealAnime 4.
Yes, I did not have time to work on mkv, sorry.
But a v0.7.1.1 will come in few weeks, and I plan to work well on this missing fps in mkv...
Zenitram
22nd February 2006, 12:12
OK, Lain.
I succeeded to find FrameRate for all kind of video track (AVI codec, or Real, or AVC...)
I do some cleanups, and release a new version befor the end of the week.
Sirber
22nd February 2006, 13:17
Nice! :D Even RV? Sweet!! :D
foxyshadis
22nd February 2006, 21:36
Oh, zeni, one quick request, in case you have more time; can you also gather the bitrate for audio in mkv? That would be so helpful! =D Or is that still a difficult problem?
LAIN
24th February 2006, 18:56
OK, Lain.
I succeeded to find FrameRate for all kind of video track (AVI codec, or Real, or AVC...)
I do some cleanups, and release a new version befor the end of the week.
Thank you very much for the FPS :D
I'd like to post you another problem that I encounter using the version 0.7.1.1 that you'v send to sirber.
When we try to do --> MediaInfo_Open(handle, filename); <-- we have a Acces Violation in delphi... it said that it's in mediainfo.dll ... in the version 0.7.1.0 dev (5.18 mb) that we use tu try was working #1 without any error.
Thank you
LAIN
Kurtnoise
24th February 2006, 21:23
When we try to do --> MediaInfo_Open(handle, filename); <-- we have a Acces Violation in delphi... it said that it's in mediainfo.dll ...
I'm testing the last version with my Delphi tool and it works fine...pb with the Handle maybe.
Sirber
24th February 2006, 21:39
0.7.1.1 works fine in some place, but not others, using the same code. It's wierd.
LAIN
24th February 2006, 22:13
I'm testing the last version with my Delphi tool and it works fine...pb with the Handle maybe.
Ok... i'll continu to take a look and i'll ask sirber to do some test... maybe it's a p4 problem :P
Thank you
LAIN
Sirber
24th February 2006, 22:20
We'll use the 0.7.1.0-dev (pre 0.7.1.1, post 0.7.1.0) if we get no news from Zetriman.
Zenitram
25th February 2006, 11:37
Sorry, I will not have time to work on it this Week-end.
This is not normal, I have not change a lot ot things (maiunly changed of compiler : Boraland to Microsoft)
And I will need more info, let's see you on IM...
Sirber
16th March 2006, 16:54
I get a lot of Access Violation uising MediaInfo 0.7.2.0 on MKV. Contact me for more infos.
Sirber
17th March 2006, 03:00
Procedure:
1) Get reaanime 4.1.0
2) Drag the MKV I sent you
3) Start encode
4) While Analyzing, right click the file and press Info.
--> Access Violation
Kill RealAnime4.exe or else you'll be stuck in a crash loop.
Now retry with the AVI I sent you. After #4, we see the info as it should be.
Verdict: death errr MKV is borked ;)
I tryed with 0.7.1.0, same problem.
Sirber
17th March 2006, 03:04
AVI and MP4 are #1.
Sirber
29th March 2006, 01:06
http://img93.imageshack.us/img93/6566/mi1sz.png (http://imageshack.us)
using:
MediaInfo_Close(handle);
MediaInfo_Delete(handle);
Maybe the AV is on my side (the one I talked to you about eariler), since this one tells explicitly it's MediaInfo.
Sirber
29th March 2006, 01:09
Here's the screenshot of previous RA AccessViolation:
http://img93.imageshack.us/img93/5093/ra1gb.png (http://imageshack.us)
http://img93.imageshack.us/img93/7863/ra28fr.png (http://imageshack.us)
:confused:
Sirber
29th March 2006, 01:20
I get the popup (MediaInfo.dll) using the MKV I sent ya, but not my AVI test, by just asking "Info" on it.
Zenitram
29th March 2006, 07:29
I have not the time to work on MediaInfo DLL now, you will have to waite some days/weeks...
Kurtnoise
1st April 2006, 15:32
Sirber : could you put online your mkv which fails with this library ? I would like to check something. Thanks..
Sirber
1st April 2006, 15:44
At the moment mkvmerge does not support converting from VfW-mode AVC/h.264 tracks to native Matroska-mode AVC/h.264 tracks. You can, however, first import the video track into a MP4 file with e.g. 'MP4Box' (use Google). Then you can use mkvmerge and put the video into a Matroska file.
bad source, BAD!
Death to VFW!!!! :devil:
chipzoller
12th April 2006, 04:03
Thank you for a great piece of software. I use it all the time!
thuongshoo
22nd April 2006, 08:07
I used Belight to convert a wav file to aac
I uses Winamp-encoder . AVIcodec says source file has 44khz samplerate . MediaInfo always says that destination file has 22khz samplerate after I try to convert this file with many samplerate. AVIcodec and Gspot isn't also stable
Zenitram
22nd April 2006, 11:34
MediaInfo always says that destination file has 22khz samplerate after I try to convert this file with many samplerate.
I am interested in all files which have a problem with MediaInfo.
Please send me axample files with different bitrates at zen@mediaarea.net
multicone
22nd April 2006, 22:20
matroska people have added a link to Mediainfo on their download page : http://www.matroska.org/downloads/windows.html
Looks like they are happy about the great MKV support in your app, Zenitram :)
thuongshoo
23rd April 2006, 10:36
I am interested in all files which have a problem with MediaInfo.
Please send me axample files with different bitrates at zen@mediaarea.net
Thank for interesting my problem !
My wav file is made by Virtualdub . Perhaps AVIcodec only say right if file isn't AAC, MP4
You can download Belight , AVIcodec and do some transcoding .
Sometimes AVIcodec and Gspot say right but MediaInfo isn't . Media Classic Player seem to say right but I still know it actually . I will post more information at next post
Zenitram
23rd April 2006, 10:40
You can download Belight , AVIcodec and do some transcoding .
I already do a lot of transcoding, but never the one you do.
This is why I am interested in your files, to have not "common" (from my point of view) files.
Sirber
23rd April 2006, 15:07
@Zenitram
You should update first post for 0.7 :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.