David
2009-06-17 14:53:01 UTC
I have develop an application that takes live video streams and combines them
into one and writes the stream to a WMV file using IWMWriter. I create a
buffer large enough for all video streams to fit in. Periodically, 1 of the
videos will drop off (no video input) while the others will continue to
stream video. Or, at the start of a video stream, until the vdeo decompressor
gets enough data to out put the video the screen is initial green, pink or
gray. When one of these videos stop streaming I have logic to blank out that
portion of the video so that its section doesn’t look frozen.
I have found that filling the buffer with 0x00 the video area turns Green,
0xff turns it Pink and 0x80 turns it gray. I have played around with
different numbers, but it appears that these colors are the only colors
available. Is the previous statement true? Is there any way to make the video
area black?
I am using Windows Media Foundation 9.5 SDK.
IWMWriter interface to write a WMV file.
“Windows Media Video V7 “ using CBR mode
The WMV file being created works properly, I am just trying to control the
video color when no video is being streamed. That is, when video is no longer
being sent the area it is using on the buffer will be set to a hex value and
will remain set to this value until video returns. The only colors I have
been able to achieve is green, pink and gray. Is this color limited to these
colors?
into one and writes the stream to a WMV file using IWMWriter. I create a
buffer large enough for all video streams to fit in. Periodically, 1 of the
videos will drop off (no video input) while the others will continue to
stream video. Or, at the start of a video stream, until the vdeo decompressor
gets enough data to out put the video the screen is initial green, pink or
gray. When one of these videos stop streaming I have logic to blank out that
portion of the video so that its section doesn’t look frozen.
I have found that filling the buffer with 0x00 the video area turns Green,
0xff turns it Pink and 0x80 turns it gray. I have played around with
different numbers, but it appears that these colors are the only colors
available. Is the previous statement true? Is there any way to make the video
area black?
I am using Windows Media Foundation 9.5 SDK.
IWMWriter interface to write a WMV file.
“Windows Media Video V7 “ using CBR mode
The WMV file being created works properly, I am just trying to control the
video color when no video is being streamed. That is, when video is no longer
being sent the area it is using on the buffer will be set to a hex value and
will remain set to this value until video returns. The only colors I have
been able to achieve is green, pink and gray. Is this color limited to these
colors?
--
Best Regards
"Failure is the opportunity to begin again more intelligently" – Henry Ford
Best Regards
"Failure is the opportunity to begin again more intelligently" – Henry Ford