View Full Version : how can i use directshow to play two kinds of files with the same extern file name
captaincrash
3rd July 2006, 16:49
We do a project to research some source filter to support our own media fiile format. we use stander 3GP as reference but change something, so we creat some special 3GP files, but we still use the same extern file name .3gp.
we research a source filter to support our own 3GP file. after we register the .ax file. media play can play these our own 3GP file, but it can not support to play stander 3gp files any more.
so my question is if we can add something in my source filter, to make sure if the file is our own 3gp file, we use the filter we researched to play it, and if not, use stander 3gp related to play it. can we do it? if we can, how to do?
It's the first question on DOOM9, so thanks a lot to anyone who can answer my question.
We do a project to research some source filter to support our own media fiile format. we use stander 3GP as reference but change something, so we creat some special 3GP files, but we still use the same extern file name .3gp.
I don't like the sound of that. Surely that will just create confusion. And it sounds like it's already creating confusion as your trying to register the same extension for two different incompatible files.
Your source filter could become a wrapper for another 3gp source filter if it detects the file is not the correct 3gp format. I.e. if it is an actual 3gp file, create an instance of the real 3gp source filter and map all your interface functions to it.
This thread should really be in the development forum, not the general discussion forum.
-Nic
captaincrash
4th July 2006, 07:02
Thank you very much, Nic. your code is very helpful to our project, i think many programer like my companion and i appreciated your work.
sorry for my word to make confusion, it may be because my bad english, i hope it will not make confusion any more.
In this question, do you mean to implement a new source filter in my own source filter. i have not done it before, i wonder if it can work. our own source filter is like a source+spliter filter ,so it works as push mode. and i think the source filter which will be suitable may be async file source which works as pull mode.
so can you give me some advice on how to implement a source filter(async file source) on another source filter(our own).
Thanks a lot to u and anyone who can help me to solve this question.
captaincrash
4th July 2006, 09:18
There is another question. we created a source filter to support one of our own media files. this kind of files have audio and video part, the audio part is using mp3, video part is using MJPEG, and the audio part is in the fornt of the file, when audio part finished, video part begin. we register the filter and it's ok in media play classical, audio and video can play well, but when i try to play these files with mediaplay10, mediaplay recognize it as a mp3 file and only play the audio. it seems our ownsource filter does not work. i have set a high merit of our own filter ,but it still can not support our file. idon't know why.
p.s. media play classical and graph edit can support our own files after registering the .ax file
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.