|
| How to get duration from wmv file without playing it ? |
 |
Fri, 10 Aug 2007 12:20:48 +053 |
Dear Friends
How can i read duration directly from wmv file without actually playing it ?
loading it in TMediaPlayer and read duration takes time , specially when
there are too many wmv file.
is there any component to read some part of wmv file header directly and
know duration and other properties
Thanks
Kamlesh
|
| Post Reply
|
| Re: How to get duration from wmv file without playing it ? |
 |
Mon, 13 Aug 2007 09:35:25 +100 |
you can use the IMediaDet interface under DirectShow
http://msdn2.microsoft.com/en-us/library/ms785892.aspx
although performance wise it is about the same as opening a file for
playback.
Kamlesh wrote:
> Dear Friends
>
> How can i read duration directly from wmv file without actually playing it
?
>
> loading it in TMediaPlayer and read duration takes time , specially when
> there are too many wmv file.
>
> is there any component to read some part of wmv file header directly and
> know duration and other properties
>
>
> Thanks
> Kamlesh
>
|
| Post Reply
|
| Re: How to get duration from wmv file without playing it ? |
 |
Mon, 13 Aug 2007 09:50:10 +100 |
here's a Delphi example: http://files.dsp-worx.de/DXMIR.zip
you'll need DSPack if you want to use/compile
http://progdigy.com/modules.php?name=DSPack
harrie wrote:
> you can use the IMediaDet interface under DirectShow
>
> http://msdn2.microsoft.com/en-us/library/ms785892.aspx
>
> although performance wise it is about the same as opening a file for
> playback.
>
> Kamlesh wrote:
>> Dear Friends
>>
>> How can i read duration directly from wmv file without actually
>> playing it ?
>>
>> loading it in TMediaPlayer and read duration takes time , specially
>> when there are too many wmv file.
>>
>> is there any component to read some part of wmv file header directly
>> and know duration and other properties
>>
>>
>> Thanks
>> Kamlesh
|
| Post Reply
|
| Re: How to get duration from wmv file without playing it ? |
 |
Mon, 13 Aug 2007 09:58:17 -070 |
"harrie" <hpearce@magian[dot]com> wrote in message
news:46bffcde@newsgroups.borland.com...
> Just found another interesting option using the open source codec tool
> MediaInfo: http://mediainfo.sourceforge.net/en
>
> here's an example that wraps the MediaInfo.dll with Delphi - no extra
> libraries required.
>
> http://forum.doom9.org/showthread.php?t=108800
I've used this, too. It's very effective. However, I'd suggest testing it
against a number of sources and see how close the results are. You may find
that there are differences between different sources, depending on encoding,
use of digital right management code (DRM), compatibility with newer codecs,
etc.
|
| Post Reply
|
| Thank You Harrie |
 |
Mon, 13 Aug 2007 11:47:37 +053 |
Thank You Harrie
Regards
Kamlesh
"harrie" <hpearce@magian[dot]com> wrote in message
news:46bf9bf0$1@newsgroups.borland.com...
> here's a Delphi example: http://files.dsp-worx.de/DXMIR.zip
>
> you'll need DSPack if you want to use/compile
>
> http://progdigy.com/modules.php?name=DSPack
>
> harrie wrote:
>> you can use the IMediaDet interface under DirectShow
>>
>> http://msdn2.microsoft.com/en-us/library/ms785892.aspx
>>
>> although performance wise it is about the same as opening a file for
>> playback.
>>
>> Kamlesh wrote:
>>> Dear Friends
>>>
>>> How can i read duration directly from wmv file without actually
playing
>>> it ?
>>>
>>> loading it in TMediaPlayer and read duration takes time , specially
when
>>> there are too many wmv file.
>>>
>>> is there any component to read some part of wmv file header
directly and
>>> know duration and other properties
>>>
>>>
>>> Thanks
>>> Kamlesh
>>>
|
| Post Reply
|
|
|
|
|
|
|
|
|
|