Log in

View Full Version : Help me learning open file by DirectShow


thuongshoo
4th December 2006, 08:52
Hi ! I'm studying DirectShow.

Which components are needed to view a video and their function?
Is it a array of these filter ?
-Source filter , splitter filter, codec filter, render device ?

If I installed Cyberlink Decoder and Ligos demuxer( from K-lite), Will I be able to view DVD by WMP ?
If not, why ?

Thank you very much!

JohnnyMalaria
4th December 2006, 13:06
Hi ! I'm studying DirectShow.

Which components are needed to view a video and their function?
Is it a array of these filter ?
-Source filter , splitter filter, codec filter, render device ?

If I installed Cyberlink Decoder and Ligos demuxer( from K-lite), Will I be able to view DVD by WMP ?
If not, why ?

Thank you very much!

You should download Microsoft's Platform SDK and look at all the examples for programming DirectShow.

Your list of filters is correct though additional filters may be required (colorspace conversion and audio rendering).

Whether WMP can use those filters to play a DVD depends on how WMP decides which decoder to use.

To guarantee using those filters, you would have to create your own filter graph. The easiest way is to use the GraphEdit application that is part of the Platform SDK.

thuongshoo
5th December 2006, 09:36
Thank JohnnyMalaria!
You should download Microsoft's Platform SDK and look at all the examples for programming DirectShow. I haven't download it but I guess its size is about 1 CD. ---> going to this forum is better :D

I only intend to write a small guide "how can you to view all video file ?" . I haven't intended to program in DirectShow :)

foxyshadis
5th December 2006, 13:46
If that's all you need, then yes, splitter->decoder->renderer, plus any special plugins (like subtitles or DMO wrappers) along the way. If renderer's input and the decoder's output don't match, a microsoft colorspace translation filter will be inserted. Sometimes the splitter and decoder are the same filter, but I can't think of any off the top of my head like that.

Some filters are locked to specific other filters, or host applications. >( Some splitters also don't provide the bitstream in the format the decoder expects, so while I'd ordinarily say that for instance, Ligos+Cyberlink should work, it may not.

thuongshoo
6th December 2006, 03:22
I found that all media program willn't able to open mpg file if MPEG-I stream filter is locked. I don't know why although I have already had splitter filter
This filter is manufactured by Microsoft. Is there any company/person also make this filter ?

There is a user which complain that he can't play DVD although he also install Cyberlink decoder and MPEG demuxer

feedback
9th December 2006, 17:53
Haali Media Splitter is a DirectShow splitter for .MKV (matroska) .MP4 and .AVI