[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: How would I go about getting the duration of a Windows MediaFileusing Lua?
- From: "Mike Vidal" <MVidal@...>
- Date: Fri, 4 Nov 2005 06:47:25 -0600
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.
From: firstname.lastname@example.org 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).
> -----Original Message-----
> From: email@example.com
> [mailto:firstname.lastname@example.org] 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?