Click here to Skip to main content
11,795,848 members (76,065 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++ Win32 directshow VC++
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]

2.AVI[DV Format]

3.AVI[MPEG4-visual Format]

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 18-Jun-13 0:58am
Edited 27-Jun-13 4:09am
The_Inventor at 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.
J.Surjith Kumar at 2-Jul-13 1:30am
How i can get the format of the video!?
The_Inventor at 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)

  Print Answers RSS
0 Maciej Los 350
1 Sergey Alexandrovich Kryukov 326
2 KrunalRohit 239
3 Andy Lanng 236
4 OriginalGriff 230
0 OriginalGriff 1,852
1 Maciej Los 1,465
2 KrunalRohit 1,300
3 CPallini 840
4 Richard MacCutchan 828

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 27 Jun 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100