Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
Thread Tools | Search this Thread | Display Modes |
15th June 2007, 13:24 | #181 | Link | |
Registered User
Join Date: Aug 2002
Location: France, Paris
Posts: 672
|
Quote:
Command : MediaInfo --Inform=General;%PlayTime% FileName.ac3 Command : MediaInfo --Inform=Audio;%PlayTime% FileName.avi Result : 1256960 (in milliseconds) Command : MediaInfo --Inform=Audio;%PlayTime/String% FileName.avi Result : 20mn 56s Note : during the verification of the command, I noticed that lenght in the audio part (MediaInfo --Inform=Audio;%PlayTime%) for an AC3 file is lacking. I will correct this. For AspectRatio : Command : MediaInfo.exe --Inform=Video;%AspectRatio% FileName.avi Result : 1.777 Command : MediaInfo.exe --Inform=Video;%AspectRatio/String% FileName.avi Result : 16/9 Command : MediaInfo --Info-Parameters Result : list the available parameters (between %)
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo |
|
16th June 2007, 09:17 | #182 | Link |
stupid
Join Date: Sep 2004
Location: Cologne
Posts: 638
|
First of all thanks for your help.
Here the results from my test. I used the following commandline: mediainfo --Inform=Video;%AspectRatio% C:\files\****\Daten\VTS_01_1.VOB The result is the same as if I would have used mediainfo --Inform C:\files\****\Daten\VTS_01_1.VOB => mediainfo.exe shows all informations and ignores *Video;%AspectRatio%* I do have the same result with AC3 streams. mediainfo.exe shows always all informations and not the selected ones. Maybe I´m doing it wrong, but I used exactly your commandlines Herewith my versions of mediainfo.exe and mediainfo.dll
__________________
cu Joe ------------------------ freedom is just another word for nothing left to loose Last edited by JoeBG; 16th June 2007 at 09:21. |
16th June 2007, 10:17 | #183 | Link |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
You do have to use the command-line version; the command-line commands don't work with the GUI. (They have the same name, which makes it unnecessarily confusing. I always rename mine mediainfo-cli.exe. Even nicer would be if the GUI recognized cli commands and emulated it, removing the need for two executables...)
|
16th June 2007, 10:31 | #184 | Link | |
stupid
Join Date: Sep 2004
Location: Cologne
Posts: 638
|
Quote:
__________________
cu Joe ------------------------ freedom is just another word for nothing left to loose |
|
16th June 2007, 11:06 | #186 | Link | |||
Registered User
Join Date: Aug 2002
Location: France, Paris
Posts: 672
|
Quote:
Maybe a problem with your OS, your localization, I don't know. I don't know what to do more I propose you contact me at zen@mediaarea.net for giving me an access to your computer, and I will do more tests. Quote:
Quote:
But yes, the GUI version will parse CLI options in the future. (but I didn't plan my software would become so used and this is my first program, I must work a lot to have a all people happy, with a good programming, and whith the time I have...)
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo |
|||
16th June 2007, 16:44 | #187 | Link | |
stupid
Join Date: Sep 2004
Location: Cologne
Posts: 638
|
Quote:
My plan is to use the variable %PlayTime% for further actions in DOS. But I think I cannot use it as %PlayTime% for further calculations isn´t it?
__________________
cu Joe ------------------------ freedom is just another word for nothing left to loose Last edited by JoeBG; 16th June 2007 at 16:50. |
|
9th October 2007, 08:52 | #188 | Link |
Registered User
Join Date: Apr 2007
Posts: 3
|
The current syntax to get particular parameters using Inform is a little odd in Linux. Bash interprets the semicolon as the end of a command/line and tries to execute whatever comes after it.
Workaround is currently: MediaInfo --Inform=xxx\;%param% file.ext |
9th October 2007, 09:21 | #189 | Link | |
Registered User
Join Date: Aug 2002
Location: France, Paris
Posts: 672
|
Quote:
I don't plan to change this soon. You can use a file too: MediaInfo --Inform=file://SpecFile file.ext And SpecFile contains "xxx;%param%" If I add an option for accepting commas too, will it be better?
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo |
|
9th October 2007, 09:33 | #190 | Link |
Registered User
Join Date: Apr 2007
Posts: 3
|
Commas would be nice. I personally don't mind the semicolon but I figured the behaviour was worth noting anyway.
On a side note, I'm looking through mediainfo lib's source; trying to figure out how it gets an FLV's dimensions since I kind of need to implement that in php. It would probably help if I were a bit more competent though... no go as of yet. |
9th October 2007, 11:18 | #191 | Link | |
Registered User
Join Date: Aug 2002
Location: France, Paris
Posts: 672
|
Quote:
I heard about several user who call mediainfo from PHP without problems. ./mediainfo --Inform=Video;%Width% %Height% for example.
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo |
|
9th October 2007, 15:36 | #192 | Link |
Member of a Library
Join Date: Oct 2002
Posts: 463
|
On another note, since many programs use MediaInfo dll now, can it be placed in a path directory to avoid multiple copies and for better updating? (On Windows)
Will that affect these programs (I guess only their authors would know)? GL |
9th October 2007, 15:40 | #193 | Link | |
Registered User
Join Date: Aug 2002
Location: France, Paris
Posts: 672
|
Quote:
- Search in the .exe directory - Search in the path If you delete yourself the .dll in the porgram directory, the program will search in the path. this is not a problem from the DLL, but from any third-party programs mainteners. For MediaInfo (the GUI), the status of MediaInfo.dll is not "stable", so I prefer to not force updating. After, others do what they want. When MediaInfo.dll is more stable, I may propose to install in a shared directory. Not now. (the version 0.x, not 1.x ;-) )
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo |
|
25th November 2007, 22:11 | #195 | Link |
Registered User
Join Date: Apr 2003
Location: Czech Republic
Posts: 752
|
I was using MediaInfo in my PHP-GTK application from command line. No I decided to move a little further and switch to Python. I heard somewhere it should be possible to use a C/C++ dll in Python. Does anyone have any idea (or code sample) how to use the mediainfo.dll in Python?
|
26th November 2007, 02:30 | #196 | Link |
Registered User
Join Date: Sep 2006
Posts: 2,197
|
would it be possible that mediainfo could give the length of both, audio and video stream inside a container file? dont know which of these 2 is meant with the general "length" info of the file.
Last edited by Thunderbolt8; 26th November 2007 at 02:33. |
27th November 2007, 23:57 | #197 | Link |
Registered User
Join Date: Apr 2003
Location: Czech Republic
Posts: 752
|
I made Python load MediaInfo.dll through ctypes. But when I try to call the function result = lib.MediaInfo_Open("video.avi"), then Python complains there are not enough parameters for the function. What other parameters should be there?
Sorry for probably stupid questions, I'm just a beginner. |
2nd December 2007, 22:27 | #200 | Link |
Registered User
Join Date: Apr 2003
Location: Czech Republic
Posts: 752
|
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.
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 (7 MB). |
|
|