| Author |
Message |
wilma
Joined: 11 Mar 2005
Posts: 12
|
Posted:
Wed May 11, 2005 11:45 pm Post subject:
clip length |
|
|
Is there any way to know the duration of a clip without setting the Windows Media Player's src to the clip?
I have a stack of clips (~400) to deal with, and I'd like to batch process grabbing the duration. However, I think if I just kept setting the embedding video object's source and writing the length to file, it would crash pretty quickly, and take forever to complete.
Anyone have any ideas?
|
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Thu May 12, 2005 4:30 pm Post subject:
Re: clip length |
|
|
On Wed, 11 May 2005 19:30:21 -0500,
unknown@unknown-dot-com.no-spam.invalid (wilma) wrote:
| Quote: | Is there any way to know the duration of a clip without setting the
Windows Media Player's src to the clip?
|
Not without examining the file headers - you'd need I think the WM
Format SDK available to read the file headers, the WMP SDK doesn't
have this functionality without instantiating the player.
| Quote: | I have a stack of clips (~400) to deal with, and I'd like to batch
process grabbing the duration. However, I think if I just kept
setting the embedding video object's source and writing the length to
file, it would crash pretty quickly, and take forever to complete.
|
Ive done it, it's not so bad - not quick mind, but doesn't crash
either ;-) |
|
| Back to top |
|
 |
wilma
Joined: 11 Mar 2005
Posts: 12
|
Posted:
Thu May 12, 2005 5:27 pm Post subject:
Re: clip length |
|
|
| Neil Smith [MVP Digital M wrote: | Not without examining the file headers - you'd need I think the WM
Format SDK available to read the file headers, the WMP SDK doesn't
have this functionality without instantiating the player. |
How would it work with the SDK?
|
|
| Back to top |
|
 |
Sebastian Gottschalk
Guest
|
Posted:
Thu May 12, 2005 9:51 pm Post subject:
Re: clip length |
|
|
Neil Smith [MVP Digital Media] wrote:
| Quote: | Is there any way to know the duration of a clip without setting the
Windows Media Player's src to the clip?
Not without examining the file headers - you'd need I think the WM
Format SDK available to read the file headers, the WMP SDK doesn't
have this functionality without instantiating the player.
|
Any name of a utility? metadataedit, wmstats and wmvedit don't have that
ability, and besides those I can only see source-code-sample-only tools to
do so.
| Quote: | Ive done it, it's not so bad - not quick mind, but doesn't crash
either ;-)
|
Try 4000 clips with each length of about 5 to 10 seconds. :-)
--
Dieser Schrieb stellt eine private Meinungsäußerung des Verfassers im
Sinne der gesetzlich garantierten Meinungsfreiheit dar. Wem das nicht
passt, der wende sich an das Bundesverfassungsgericht. Viel Erfolg!
Key: 0xA0E28D18 FP: 83AE 1136 1E2B 9767 8FB2 7594 4128 1A9E A0E2 8D18 |
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Fri May 13, 2005 12:30 am Post subject:
Re: clip length |
|
|
On Thu, 12 May 2005 18:51:55 +0200, Sebastian Gottschalk
<seppi@seppig.de> wrote:
| Quote: | Neil Smith [MVP Digital Media] wrote:
Is there any way to know the duration of a clip without setting the
Windows Media Player's src to the clip?
Not without examining the file headers - you'd need I think the WM
Format SDK available to read the file headers, the WMP SDK doesn't
have this functionality without instantiating the player.
Any name of a utility? metadataedit, wmstats and wmvedit don't have that
ability, and besides those I can only see source-code-sample-only tools to
do so.
|
Well as I said I can't think of anything : the WMProp console app
might be adaptable (from the format SDK), but I've not used it :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmform95/htm/sampleapplications.asp
There *are* standalone apps to read this stuff I've seen, but they're
not batchable like you would do with VDub or other software. For
example Sliq do the "WMSnoop" tool currently available for free
download : http://www.sliq.com/default.asp?view=wmsnoop
| Quote: | Ive done it, it's not so bad - not quick mind, but doesn't crash
either ;-)
Try 4000 clips with each length of about 5 to 10 seconds. :-)
|
Hah, don't be such a girl, just get a faster PC ;-)
I guess it depends if the OP has a job which is a one-off and he needs
to process the 400 files once, or if it's a job which needs doing once
an hour. He didn't say.
Cheers - Neil |
|
| Back to top |
|
 |
Sebastian Gottschalk
Guest
|
Posted:
Fri May 13, 2005 12:30 am Post subject:
Re: clip length |
|
|
Neil Smith [MVP Digital Media] wrote:
| Quote: | Ive done it, it's not so bad - not quick mind, but doesn't crash
either ;-)
Try 4000 clips with each length of about 5 to 10 seconds. :-)
Hah, don't be such a girl, just get a faster PC ;-)
I guess it depends if the OP has a job which is a one-off and he needs
to process the 400 files once, or if it's a job which needs doing once
an hour. He didn't say.
|
Huh? The problem is that is simply hangs up because of bugs.
However, one could imagine to use "start utility params" as long as no-one
is working on the machine, so one bad file / error condition doesn't stop
the entire progress.
--
Dieser Schrieb stellt eine private Meinungsäußerung des Verfassers im
Sinne der gesetzlich garantierten Meinungsfreiheit dar. Wem das nicht
passt, der wende sich an das Bundesverfassungsgericht. Viel Erfolg!
Key: 0xA0E28D18 FP: 83AE 1136 1E2B 9767 8FB2 7594 4128 1A9E A0E2 8D18 |
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Fri May 13, 2005 12:30 am Post subject:
Re: clip length |
|
|
On Thu, 12 May 2005 22:12:24 +0200, Sebastian Gottschalk
<seppi@seppig.de> wrote:
| Quote: | Neil Smith [MVP Digital Media] wrote:
Ive done it, it's not so bad - not quick mind, but doesn't crash
either ;-)
Try 4000 clips with each length of about 5 to 10 seconds. :-)
Hah, don't be such a girl, just get a faster PC ;-)
I guess it depends if the OP has a job which is a one-off and he needs
to process the 400 files once, or if it's a job which needs doing once
an hour. He didn't say.
Huh? The problem is that is simply hangs up because of bugs.
|
No, that's not the problem. The OP said and I quote :
"However, I think .... it would crash pretty quickly, and take
forever to complete" : He's saying he hasn't tried it, and I'd agree
it would take forever to complete. Bugs or no bugs, it's not my
experience that a crash is predicated on loading 400 (or 4000) files.
| Quote: | However, one could imagine to use "start utility params" as long as no-one
is working on the machine, so one bad file / error condition doesn't stop
the entire progress.
|
No, you'd use "try ... catch" blocks so that one error condition
results in the loop body being skipped.
Cheers - Neil |
|
| Back to top |
|
 |
Bill Burns
Guest
|
Posted:
Sat May 14, 2005 12:30 am Post subject:
Re: clip length |
|
|
Seems to me the best way to do this is to build something server side, like
a web page you could hit that would run a utility to look at the files and
return the clip lengths.
Thanks,
Bill
"wilma" <unknown@unknown-dot-com.no-spam.invalid> wrote in message
news:84qdnZiD6Ou8aB7fRVn_vg@giganews.com...
| Quote: | Neil Smith [MVP Digital Mwrote:
Not without examining the file headers - you'd need I think the WM
Format SDK available to read the file headers, the WMP SDK doesn't
have this functionality without instantiating the player.
How would it work with the SDK?
|
|
|
| Back to top |
|
 |
|
|
|
|