Click here to Skip to main content
15,879,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am creating the video player using directshow. And am using mp4 and avi containers. Am playing the video with predifined filters according to the containers. And i need to create the predefined filters according to the format of the video because the same container having different formats. EX: Avi Container having (DV, MPEG-4,..).
This is my predefined filters according to the container:
1.MP4[AVC format]
LAVSplitterSource->FFDShowVideoDecoder->VMR9

2.AVI[DV Format]
FileSource->AVISplitter->DVFormat->FFDShowVideoDecoder->VMR9

3.AVI[MPEG4-visual Format]
FileSource->AVIsplitter->FFDShowVideoDecoder->VMR9

After or before creating the Source filter i need to know the format so that i can create the down stream filters according to that.

It will be very useful if anyone help me to get this.

Thanks & regards,
J.Surjith Kumar
Posted
Updated 27-Jun-13 4:09am
v4
Comments
The_Inventor 2-Jul-13 1:25am    
I am presuming that the video player is your main goal, and the use of codecs secondary. (Yes or No)

All codec type lines like 1., needs to come after any A/V file type line like 2., 3.

http://www.codeproject.com/Articles/158053/DirectShow-Filters-Development-Part-2-Live-Source
J.Surjith Kumar 2-Jul-13 1:30am    
How i can get the format of the video!?
The_Inventor 2-Jul-13 4:32am    
You can create the down stream filters according to what you want. If you are going to use the input format the codec needs to be on the computers HDD, and it will play.

3.AVI[MPEG4-visual Format]
FileSource->AVIsplitter->FFDShowVideoDecoder /?

Also see above link.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900