Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DirectShow, problem rendering avi video with bad header

Status
Not open for further replies.

paolob

Programmer
Sep 21, 2006
1
IT
I have some avi video not well formed. GSpot tells me the header is corrupted.
But if i try opening them using Media Player Classic all works good.
Instead when I try opening them using Directshow GraphBuilder.RenderFile() it doesn't play. I report a piece of code:

********* Defined in .h *****************
IGraphBuilder *m_pGraphBuilder;
*****************************************

CoCreateInstance( CLSID_FilterGraph, NULL, CLSCTX_INPROC, IID_IGraphBuilder, (void **)&m_pGraphBuilder);

m_pGraphBuilder->RenderFile( wFile, NULL);


I analized the graph of both my software and media player classic using GraphEdit. Changing some MPC options (but alwais checking the video can play), I obtained 2 graph with one only difference, the Avi splitter:
MPC uses Avi Splitter (low merit),
RenderFile builds a graph using Avi Splitter.

Does someone know how can I render that files in my code?
Thanks for any help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top