Re: How Long is a Sound [Without Using Quicktime]?

2013-06-03 Thread Ray Horsley
Thanks Phil but I usually need everything to run at least on both Windows and 
Mac.

On May 31, 2013, at 12:14 PM, Phil Davis wrote:

 On 5/31/13 2:16 AM, Ray Horsley wrote:
 You might be right Jackie.  I'm not sure how to guess how many desktop 
 systems there are without Quicktime installed so it might not be an issue.
 
 The overall goal is to display a progress circle like the one Fetch uses 
 while a sound is playing.  The idea is the circle will make one complete 
 trip for the duration of the sound.
 
 Dar, nice ideas and very interesting but the user will be supplying the 
 audio files so I'm not sure how that would work out.  I'm currently looking 
 into the link Warren supplied to Media Info although I'm not sure how I'll 
 tie it into my standalone.
 
 Hi Ray,
 
 I maintain one app that has mediaInfo in the app bundle, and the app uses 
 shell() to run it as needed. So that's one option on the Mac at least.
 
 Phil Davis
 
 On May 30, 2013, at 5:37 PM, J. Landman Gay wrote:
 
 On 5/30/13 2:36 PM, Ray Horsley wrote:
 I know this is available with QuickTime using the CurrentTime and
 TimeScale properties but if the user doesn't have QuickTime installed
 I'd hate to be stuck.  Are there any other ways to get the duration
 of an audio file?
 Can you say what the goal is? Maybe there's another way to do it.
 
 All Macs have QT. If a Windows user doesn't, Media Player should run and 
 the same functions should be available as long as you're using player 
 objects. I'm not sure about Linux, I hear there are some issues with 
 players there.
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 -- 
 Phil Davis
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How Long is a Sound [Without Using Quicktime]?

2013-05-31 Thread Ray Horsley
You might be right Jackie.  I'm not sure how to guess how many desktop systems 
there are without Quicktime installed so it might not be an issue.

The overall goal is to display a progress circle like the one Fetch uses while 
a sound is playing.  The idea is the circle will make one complete trip for the 
duration of the sound.

Dar, nice ideas and very interesting but the user will be supplying the audio 
files so I'm not sure how that would work out.  I'm currently looking into the 
link Warren supplied to Media Info although I'm not sure how I'll tie it into 
my standalone.

On May 30, 2013, at 5:37 PM, J. Landman Gay wrote:

 On 5/30/13 2:36 PM, Ray Horsley wrote:
 I know this is available with QuickTime using the CurrentTime and
 TimeScale properties but if the user doesn't have QuickTime installed
 I'd hate to be stuck.  Are there any other ways to get the duration
 of an audio file?
 
 Can you say what the goal is? Maybe there's another way to do it.
 
 All Macs have QT. If a Windows user doesn't, Media Player should run and the 
 same functions should be available as long as you're using player objects. 
 I'm not sure about Linux, I hear there are some issues with players there.
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How Long is a Sound [Without Using Quicktime]?

2013-05-31 Thread Phil Davis

On 5/31/13 2:16 AM, Ray Horsley wrote:

You might be right Jackie.  I'm not sure how to guess how many desktop systems 
there are without Quicktime installed so it might not be an issue.

The overall goal is to display a progress circle like the one Fetch uses while 
a sound is playing.  The idea is the circle will make one complete trip for the 
duration of the sound.

Dar, nice ideas and very interesting but the user will be supplying the audio 
files so I'm not sure how that would work out.  I'm currently looking into the 
link Warren supplied to Media Info although I'm not sure how I'll tie it into 
my standalone.


Hi Ray,

I maintain one app that has mediaInfo in the app bundle, and the app 
uses shell() to run it as needed. So that's one option on the Mac at least.


Phil Davis


On May 30, 2013, at 5:37 PM, J. Landman Gay wrote:


On 5/30/13 2:36 PM, Ray Horsley wrote:

I know this is available with QuickTime using the CurrentTime and
TimeScale properties but if the user doesn't have QuickTime installed
I'd hate to be stuck.  Are there any other ways to get the duration
of an audio file?

Can you say what the goal is? Maybe there's another way to do it.

All Macs have QT. If a Windows user doesn't, Media Player should run and the 
same functions should be available as long as you're using player objects. I'm 
not sure about Linux, I hear there are some issues with players there.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



--
Phil Davis


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


How Long is a Sound [Without Using Quicktime]?

2013-05-30 Thread Ray Horsley
I know this is available with QuickTime using the CurrentTime and TimeScale 
properties but if the user doesn't have QuickTime installed I'd hate to be 
stuck.  Are there any other ways to get the duration of an audio file?
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How Long is a Sound [Without Using Quicktime]?

2013-05-30 Thread Dar Scott
I don't have a good solution but here are some crazy ideas...

If these are all sounds you supply, you can write a script that times all the 
sounds in some folder (or stack) and creates a table.

If you know these all are the same bit rate and the same number of channels, 
and there is no compression in the format, then maybe you can estimate from the 
file length.  Tweak an offset to cover headers and trailers.

Maybe there are some command-line tools that can work with shell().  I quick 
search brought up names like mp3info, soxi, afinfo, mp3split, and sox.

Or, if you handle only a small number of sound formats, parse the files.

Dar


On May 30, 2013, at 1:36 PM, Ray Horsley wrote:

 I know this is available with QuickTime using the CurrentTime and TimeScale 
 properties but if the user doesn't have QuickTime installed I'd hate to be 
 stuck.  Are there any other ways to get the duration of an audio file?
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How Long is a Sound [Without Using Quicktime]?

2013-05-30 Thread Warren Samples

On 05/30/2013 02:36 PM, Ray Horsley wrote:

I know this is available with QuickTime using the CurrentTime and TimeScale 
properties but if the user doesn't have QuickTime installed I'd hate to be 
stuck.  Are there any other ways to get the duration of an audio file?
___



http://mediainfo.sourceforge.net/en


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode