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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th August 2008, 07:28   #381  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by pjo View Post
After cutting the news portion with tsMuxeR, the main show is really AAC5.1 when played with MPC without using ffdshow.
MediaInfo analyzes only the beginning of a file, and shows info about what it finds at the beginning. MediaInfo can't analyze quickly the complete file (imagine reading the whole 20 GB file from the HDD before showing something ;-) ), and it is not intented for detecting changes in a real time stream (when you provide a real time IP stream to MediaInfo, it shows what it detect at the date and time you provide, not later).

When MediaInfo analyzes your file, it shows what it had found at the beginning (it shows "1 channel").
When MediaInfo analyzes an extraction of your file at the end (cut by myself), it shows the right value for the current stream (it shows "6 channels", there is no info in AAC for saying if a channel is LFE or not)

MediaInfo is not designed for showing different formats in the timeline.
It could with some programming, but I don't have enough time for this, I will not do it.
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo
Zenitram is offline   Reply With Quote
Old 18th August 2008, 07:56   #382  |  Link
pjo
Registered User
 
Join Date: Dec 2005
Posts: 59
Thanks, Zenitram.

I fully understand that the changing stream is not supported in MediaInfo.

Please advise how to load the .m2ts into MediaInfo. I still cannot specify the file in the file selecting dialogue. Running Vista.

pjo

Last edited by pjo; 18th August 2008 at 08:05.
pjo is offline   Reply With Quote
Old 18th August 2008, 12:15   #383  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by pjo View Post
Please advise how to load the .m2ts into MediaInfo. I still cannot specify the file in the file selecting dialogue. Running Vista.
I don't understand well this part.
Since some versions (I don't remeber well, this is more a bug rather than a feature), there is no more filters in the file selecting dialog box.

Anyway, you can:
- Select "All files (*.*)" in the file selection box
- Drag and drop the file to MediaInfo
- Open with... "MediaInfo".

I will add m2ts to the list of the extensions with a context menu, I forgot it.
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo
Zenitram is offline   Reply With Quote
Old 18th August 2008, 12:52   #384  |  Link
pjo
Registered User
 
Join Date: Dec 2005
Posts: 59
Quote:
Originally Posted by Zenitram View Post
I don't understand well this part.
Since some versions (I don't remeber well, this is more a bug rather than a feature), there is no more filters in the file selecting dialog box.

Anyway, you can:
- Select "All files (*.*)" in the file selection box
- Drag and drop the file to MediaInfo
- Open with... "MediaInfo".

I will add m2ts to the list of the extensions with a context menu, I forgot it.
Thanks Zenitram, Drag and drop worked this time. I just restarted MediaInfo.

Will the version with the new context menu be available in the MediaInfo web site ?
pjo is offline   Reply With Quote
Old 18th August 2008, 12:54   #385  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by pjo View Post
Will the version with the new context menu be available in the MediaInfo web site ?
No. Next official version (next Friday).
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo
Zenitram is offline   Reply With Quote
Old 18th August 2008, 17:21   #386  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by pjo View Post
Will the version with the new context menu be available in the MediaInfo web site ?
A development snapshot (so... Not officialy supported version) is aavailable here:
http://downloads.sourceforge.net/med...utInstaller.7z
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo
Zenitram is offline   Reply With Quote
Old 19th August 2008, 05:25   #387  |  Link
pjo
Registered User
 
Join Date: Dec 2005
Posts: 59
Quote:
Originally Posted by Zenitram View Post
A development snapshot (so... Not officialy supported version) is aavailable here:
http://downloads.sourceforge.net/med...utInstaller.7z
Thanks !
pjo is offline   Reply With Quote
Old 17th September 2008, 00:46   #388  |  Link
DanielCardenas
Registered User
 
Join Date: Apr 2007
Posts: 13
Is your python script available? I'm thinking of writing one and could use the sample code. I'm thinking of creating a script that will enter media info into a database.

Quote:
Originally Posted by vlada View Post
Thanks for clearing this up. It really makes sense.

Maybe you could get the information about the number of consecutive B-frames also by scanning the first 10 seconds. It should be enough to judge for 99,9% of files.

I have a serious problem with the latest version and reading Duration (PlayTime) of a video. In my application I use MI.Get("Stream_Video", 0, "Duration", "Info_Text", "Info_Name"). At this line my program exits without any errors. I have no problems with older versions and "PlayTime". If you couldn't find what causes the problem, I could create a sample Python script which demonstrates it.
DanielCardenas is offline   Reply With Quote
Old 5th October 2008, 15:28   #389  |  Link
vlada
Registered User
 
Join Date: Apr 2003
Location: Czech Republic
Posts: 752
DanielCardenas> I'm sorry for my very late reply. After some moth I finally got back to develop my application. Within a month I should be able to make a first release. It will be available under GPL license. I'm afraid it wouldn't be much helpful to you in the current state.

Anyway if you plan to use MediaInfo from Python, there is a wrapper and an example program included with the DLL version of MediaInfo. If you have any problems using it, I should be able to help you, just PM me.

Last edited by vlada; 5th October 2008 at 15:30.
vlada is offline   Reply With Quote
Old 25th November 2008, 17:18   #390  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,815
Zenitram
MediaInfo does not see chapters in .IFO file
http://www.mediafire.com/?zwfigmmqtnz
Atak_Snajpera is offline   Reply With Quote
Old 25th November 2008, 19:38   #391  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by Atak_Snajpera View Post
MediaInfo does not see chapters in .IFO file
IFO support is currently basic, IFO chapters are unfortunatly not well supported (this is planned, but no ETA)
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo
Zenitram is offline   Reply With Quote
Old 30th November 2008, 23:39   #392  |  Link
hiper56
Registered User
 
Join Date: May 2006
Posts: 2
Why does the installer tries to connect to internet?
Why does MediaInfo associate itself with *.dat files without asking and why doesn't it have any option in the program settings to change that?

Last edited by hiper56; 30th November 2008 at 23:47.
hiper56 is offline   Reply With Quote
Old 30th November 2008, 23:48   #393  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,815
Quote:
Why does the installer try to connect to internet?
Why does MediaInfo associate itself with *.dat files without asking and why doesn't it have any option in the program settings to change that?
If you are not happy with official gui try my extremally simple alternative GUI. Link in signature.
Atak_Snajpera is offline   Reply With Quote
Old 1st December 2008, 08:14   #394  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by hiper56 View Post
Why does the installer tries to connect to internet?
Why does MediaInfo associate itself with *.dat files without asking and why doesn't it have any option in the program settings to change that?
It does.
Uncheck options "check for newest versions" and "Shell extensions" if you don't want this.
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo
Zenitram is offline   Reply With Quote
Old 2nd January 2009, 23:20   #395  |  Link
vlada
Registered User
 
Join Date: Apr 2003
Location: Czech Republic
Posts: 752
Hi Zenitram,

I'm getting close to release first version of my transcodig application. There are some things in MediaInfo which I need to workaround or wait for you to implement them.

1) Some files (usually VOBs and VFR FLVs) don't show duration and/or number of frames. I can't correctly transcode such files, because I can't set correct size if I don't know their length.

2) When opening VOBs I would like to see audio/subtitles language and chapters, as Atak_Snajpera already suggested. I know I can read the language from associated .IFO file. What about reading it automatically in MediaInfo?

Do you plan to implement these features in near future or should I find a workaround for them? Honestly I don't know how to get round the first issue. I know you might need to scan the whole file in some cases, but I wouldn't mind. You could make it as an option.
vlada is offline   Reply With Quote
Old 2nd January 2009, 23:26   #396  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
Quote:
Originally Posted by vlada View Post
2) When opening VOBs I would like to see audio/subtitles language and chapters, as Atak_Snajpera already suggested.
there are no such infos in vob files afaik...
Kurtnoise is offline   Reply With Quote
Old 3rd January 2009, 13:28   #397  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by vlada View Post
1) Some files (usually VOBs and VFR FLVs) don't show duration and/or number of frames. I can't correctly transcode such files, because I can't set correct size if I don't know their length.
This is bug, please contact me at zen@mediaarea.net for providing me the (complete, unfortunatly) files.
I can provide a FTP server if requested.
Quote:
Originally Posted by vlada View Post
2) When opening VOBs I would like to see audio/subtitles language and chapters, as Atak_Snajpera already suggested. I know I can read the language from associated .IFO file. What about reading it automatically in MediaInfo?

Do you plan to implement these features in near future or should I find a workaround for them?
For 1) as soon as you send me the file
For 2) When I have time (unfortunatly for you, associating .VOB and .IFO is not currently my priority)

Quote:
Originally Posted by vlada View Post
Honestly I don't know how to get round the first issue. I know you might need to scan the whole file in some cases, but I wouldn't mind. You could make it as an option.
In theory, I would not need to scan the complete file.
But if I must, I must adapt a little MediaInfo, but this is time (my time) consuming. Not sure I will do it soon if it is needed. Depends of a lot of things, I can't promise an ETA for this.

Quote:
Originally Posted by Kurtnoise13 View Post
there are no such infos in vob files afaik...
No, but in IFO associated with the .VOBs ;-)
.VOBs concatanation and IFO link option is unfortunatly not planed in a near release.
If I am motivated, I try to impement something quickly next week, because this is requested by some users (your feedback as users is a part of the priority I give to feature requests ;-) )
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo
Zenitram is offline   Reply With Quote
Old 3rd January 2009, 19:10   #398  |  Link
vlada
Registered User
 
Join Date: Apr 2003
Location: Czech Republic
Posts: 752
Thanks a lot for your answers. I sent you an e-mail regarding the sample files.

I have one more question if anyone could help. I tried to port the python bindings to Python but it doesn't work and I can't find out why.

This is a shorted version of what I did:
Code:
# -*- coding: utf-8 -*-
import os
from ctypes import *
if os.name == "posix":
    MI = CDLL("libmediainfo.so.0")
else:
    MI = windll.MediaInfo
NULL = c_void_p(0)

MediaInfo_New = MI.MediaInfo_New
MediaInfo_New.argtypes = []  
MediaInfo_New.restype  = c_void_p

MediaInfo_Delete = MI.MediaInfo_Delete
MediaInfo_Delete.argtypes = [c_void_p]

MediaInfo_Open = MI.MediaInfo_Open
MediaInfo_Open.argtype = [c_void_p, c_wchar_p]
MediaInfo_Open.restype = c_uint

MediaInfo_Get = MI.MediaInfo_Get
MediaInfo_Get.argtype = [c_void_p, c_int, c_uint, c_wchar_p, c_int, c_int]
MediaInfo_Get.restype = c_wchar_p

class Stream:
	General, Video, Audio, Text, Chapters, Image, Menu, Max = range(8)
class Info:
	Name, Text, Measure, Options, Name_Text, Measure_Text, Info, HowTo, Max = range(9)
class InfoOption:
	ShowInInform, Reserved, ShowInSupported, TypeOfValue, Max = range(5)
class FileOptions:
	Nothing, Recursive, CloseAll, xxNULLxx_3, Max = range(5)

class MediaInfo:
	Handle = c_void_p(0)
	def __init__(self):                
		self.Handle=MediaInfo_New()
	def __del__(self):
		MediaInfo_Delete(self.Handle)
	def Open(self, File):
		return MediaInfo_Open(self.Handle, File);
	def Open_Buffer(self, Begin, Begin_Size, End=NULL, End_Size=0):
		return MediaInfo_Open_Buffer(self.Handle, Begin, Begin_Size, End, End_Size)
	def Save(self):
		return MediaInfo_Save(self.Handle)
	def Close(self):
		return MediaInfo_Close(self.Handle)
	def Inform(self):
		return MediaInfo_Inform(self.Handle, 0)
	def Get(self, StreamKind, StreamNumber, Parameter, InfoKind=Info.Text, SearchKind=Info.Name):
		return MediaInfo_Get(self.Handle, StreamKind, StreamNumber, Parameter, InfoKind, SearchKind)
	def GetI(self, StreamKind, StreamNumber, Parameter, InfoKind=Info.Text):
		return MediaInfo_GetI(self.Handle, StreamKind, StreamNumber, Parameter, InfoKind)
	def Set(self, ToSet, StreamKind, StreamNumber, Parameter, OldParameter=u""):
		return MediaInfo_Set(self.Handle, ToSet, StreamKind, StreamNumber, Parameter, OldParameter)
	def SetI(self, ToSet, StreamKind, StreamNumber, Parameter, OldValue):
		return MediaInfo_SetI(self.Handle, ToSet, StreamKind, StreamNumber, Parameter, OldValue)
	def Option(self, Option, Value=u""):
		return MediaInfo_Option(self.Handle, Option, Value)
	def Option_Static(self, Option, Value=u""):
		return MediaInfo_Option(NULL, Option, Value)
	def State_Get(self):
		return MediaInfo_State_Get(self, Handle)
	def Count_Get(self, StreamKind, StreamNumber=-1):
		return MediaInfo_Count_Get(self.Handle, StreamKind, StreamNumber)

info = MediaInfo()
info.Open(u"video.avi")
print info.Get(Stream.General, 0, u"Format", Info.Text, Info.Name)
On Windows this works (except of an error when calling the delete constructor). On Linux I get a "Segmentation Fault" when running the "Open" function. Do you have any idea what did I wrong?
vlada is offline   Reply With Quote
Old 16th January 2009, 14:37   #399  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by vlada View Post
I have one more question if anyone could help. I tried to port the python bindings to Python but it doesn't work and I can't find out why.
(...)
On Windows this works (except of an error when calling the delete constructor).
I changed the Python binding in order to avoid this problem (Python is a bit stupid, it deletes the C function pointer before the MediaInfo python class, so when the Python class is destroyed, the call to the C function fails... No comment)

You can have the new binding here:
http://mediainfo.svn.sourceforge.net...py?view=markup

The example is updated too:
http://mediainfo.svn.sourceforge.net...py?view=markup
(if you know how to import the MediaInfoDLL.py instead of pasting and copying it, I am interested in, when I do "import MediaInfoDLL" in the example, I have some error message I don't understand)

Quote:
Originally Posted by vlada View Post
On Linux I get a "Segmentation Fault" when running the "Open" function. Do you have any idea what did I wrong?
I imagine you speak about a 64-bit version of Linux, because I succeed to have it working on 32-bit Linux, but not on 64-bit Linux.
I wrote to the Python ctypes guy about this, here is a link to the mailinglist with the details about my tests:
http://thread.gmane.org/gmane.comp.p...ypes.user/4191
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo

Last edited by Zenitram; 22nd January 2009 at 20:26. Reason: Errors in links
Zenitram is offline   Reply With Quote
Old 22nd January 2009, 20:29   #400  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by vlada View Post
I have one more question if anyone could help. I tried to port the python bindings to Python but it doesn't work and I can't find out why.
I have adapted my code to avoid the bug in Python/ctypes, so you can find a working copy here:
http://mediainfo.svn.sourceforge.net...py?view=markup

Note: I use now the "Ansi" version of the binding, and I didn't succeed yet to have this method working with files with non-american caracters (é, ü, chinesich characters), so it works with "classic" files, but not with all the filenames. libmediainfo has strange reactions when it is called by Python, I will try to find the problem later.
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo
Zenitram is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:46.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.