Re: From RGB frames to stream



juky wrote:

> I have an application where I can capture single frames
> in RGB format. Now I need to generate a real stream and
> watch it remotely by using WMP. Is WME SDK able to
> generate such stream starting from single RGB frame?
> I've never used WME SDK before, so any good link or
> example in VC++ would be fine.

You can use the WMWriter object in the WMFSDK. Start by
reading the programming guides in the SDK docs and from the
UncompAVIToWMV sample. This sample reads RGB pictures from
an AVI, but you can change that part to read them from
anywhere else.

If you need to stream the result instead of saving it to a
local file, you can use the WMWriterNetworkSink which will
set up a pseudo-streaming HTTP server just like
WindowsMediaEncoder to which WMP can connect.


--

// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net


.



Relevant Pages

  • Re: Windows media format 9 - streaming bitmap images
    ... the input profile subtype as documented so based on other ... Are you configuring an image stream or a video stream? ... RGB, have you told the write *not* to compress the images ... int nScreenWidth = GetSystemMetrics; ...
    (microsoft.public.windowsmedia.sdk)
  • YUV / RGB
    ... treat and display video stream. ... I cannot render in RGB format. ... IVMRMixerBitmap interface but if I do this on this device the result display ...
    (microsoft.public.win32.programmer.directx.graphics)
  • YUV / RGB
    ... treat and display video stream. ... I cannot render in RGB format. ... IVMRMixerBitmap interface but if I do this on this device the result display ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: do I use fopen or fsockopen to get an image as a stream of bytes?
    ... Andy Hassall wrote: ... >>How do I get an image like that, as a stream of bytes? ... echo $rgb; ... Prev by Date: ...
    (comp.lang.php)

Quantcast