lua-users home
lua-l archive

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


I'll probably end up using this approach.
How do I capture the output of a command line program with os.execute ?  
Is the only way to redirect the commands output to a file then read that?

Here's an interesting utility here http://mediainfo.sourceforge.net/en that I think I'll end up using.

It's pretty easy to get this with javascript or vbscript
http://www.microsoft.com/technet/scriptcenter/guide/sas_fil_lunl.mspx




-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br on behalf of Hans
Sent: Fri 11/4/2005 1:49 AM
To: Lua list
Subject: RE: How would I go about getting the duration of a Windows MediaFileusing Lua?
 
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: lua-bounces@bazar2.conectiva.com.br
> [mailto:lua-bounces@bazar2.conectiva.com.br] 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? 

<<winmail.dat>>