Click here to Skip to main content
Rate this: bad
good
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]
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 18-Jun-13 1:58am
Edited 27-Jun-13 5:09am
v4
Comments
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.
 
http://www.codeproject.com/Articles/158053/DirectShow-Filters-Development-Part-2-Live-Source
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 Kornfeld Eliyahu Peter 169
1 Zoltán Zörgő 139
2 George Jonsson 135
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 27 Jun 2013
Copyright © CodeProject, 1999-2014
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