Forum archive - Play mp4 file using direct show

http://www.supermediastore.com/



Forum Archive Home -> Programming -> Play mp4 file using direct show



Play mp4 file using direct show

kalpanaanb posted 2009 Mar 31 09:00
can anyone tell how to play a mp4 (h.264 + AAC) file using direct show ?


poisondeathray posted 2009 Mar 31 10:01
Option 1: If you use MPC, and disable the internal filters, it will use directshow by default

Option 2: You can construct a .grf and use graphedit or graphstudio

Optoin 3: You can specify DirectShowSource() in an avisynth .avs file, and play that in a media player that supports .avs playback (e.g MPC)



kalpanaanb posted 2009 Apr 02 23:12
Thanks for ur reply :-)
I was able to play mp4 file using graphedit.
But can u tell me the directshow source api to be used to play it programmatically.
To play mp4 I used Haali madia splitter and ffdhow filter. How to call these filter using directshow api.
Can u please help me in this .



JohnnyMalaria posted 2009 Apr 03 06:45
For each one, you need to know the CLSID for the filter and then call CoCreateInstance(...) to create the filter. Add it to the filter graph and connect the input and output pins. For the CLSIDs, look them up in GraphEdit (in the list of DirectShow filters).



Login/Register to our forum to be able to post here.








VSO Software ConvertXtoDVD lets you convert any video like AVI,MKV to DVD easily. More info or download trial!
About   Advertise   Forum Archive   RSS Feeds   Statistics