lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

This is probably to tedious but what about using an external app,
"mplayer -identify thefile.wmv" come to mind, to extract the info into a
temp file.  It will also give you some more info - res, fps, video
codec, audio codec etc.

On Thu, 2005-11-03 at 14:31 -0800, McMorris, Patrick wrote:
> Hello Mike,
> I don't believe that you will find what you are looking for directly
> within the Lua language yourself.  I think you would need to either find
> or make and extension module that contains the needed functionality.  I
> don't really know what is or isn't in LuaCOM but you may indeed find
> what you are looking for in some augmented package.
> I'm also new to Lua but so far it seems very much designed to be
> extended.  So if you can't find previous work that you can leverage, the
> facilities are there to add it in without "too much" work (depending on
> your skill set).
> Patrick
> -----Original Message-----
> From:
> [] On Behalf Of Mike Vidal
> Sent: Thursday, November 03, 2005 12:39 PM
> To: Lua list
> Subject: How would I go about getting the duration of a Windows Media
> Fileusing Lua?
> I'm new to Lua.  I'm working on a script that needs to find out the
> duration of a WMV file.  How would I do this?  Is there a way to
> interact with windows.  Is LuaCOM the way to do this?