Question

I have a DirectShow source filter for receiving a Network stream containing RFC2435 data (MJPEG over RTP).

The properties of the source filter's output pin need to be set-up prior to receiving the stream which is the only source of the image's dimension data. The dimensions for the output pin are currently set to some default values (640x480).

Is it possible to modify the properties of the Output Pin to reflect the new image's dimensions after the output pin has already been created and connected to another filter which decodes the MJPEG data?

Was it helpful?

Solution

I believe the answer is to use the 'Dynamic Format Change' mechanism which can be used to switch media types. This can be done several different ways depending on whether the graph is active or stopped. The following page on MSDN explains the details.

http://msdn.microsoft.com/en-us/library/dd388731(VS.85).aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top