"Playing time" of a sound and video file?
-
Hi.. Just wanna ask??? How do u determine how long a sound or a video file is played? Is there some form of command that VC++ has that would allow me to input a file name and it automatically gives me an approximate playing time of the sound or video file? Thanks in advance....:)
-
Hi.. Just wanna ask??? How do u determine how long a sound or a video file is played? Is there some form of command that VC++ has that would allow me to input a file name and it automatically gives me an approximate playing time of the sound or video file? Thanks in advance....:)
You can do it through DirectShow. There is one interface (sorry I can't remember the name at this time, but you can find it very easily in the DirectX SDK documentation) that you can query through the IFilterGraph interface, and use the methods to get the time of the media file.
-
You can do it through DirectShow. There is one interface (sorry I can't remember the name at this time, but you can find it very easily in the DirectX SDK documentation) that you can query through the IFilterGraph interface, and use the methods to get the time of the media file.
Cool - I was hoping someone would answer this question. Looks like my weekend has been plotted out - I am working on a database for media files and this was my next problem. Thanks Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.