简体   繁体   中英

Directshow VC++ express 2010 vs Graph Edit

I have a program that creates a directshow graph for capture of video from a hardware device and direct encoding into mpeg-4 format.

I had originally ran this code on another machine, where it worked. Now that I have switched machines, the code has the behaviour below:

What works: The graph is set up correctly ALL FILES ARE CREATED There are no errors in creating the graph I use IMediaControl::Start and ::Stop The issue occurs for XVID, ffdshow, divx encoders and haali matroska, matroska, and gdcl muxers

The issue: When I run the program in VC++ 2010 express, the file remains static and gains no content. However, when I run the graph using Graph Edit, the file increases in size.

Any ideas (settings, maybe?) on what might be different between the machines? Or why the graph runs properly in GraphEdit but not in VC++ 2010 Express?

You do something wrong. You should show some code. A typical reason would be your NOT dispatching window messages on filter graph management/wait thread.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM