How to render a video file and pass the stream to FillBuffer of Source Filter



Hi all,

Well, i really dont know how to put this question.

I want to render a video file to the output of a source filter.
The source filter is modified to look like a web camera.

So, i want to have the output of that video file directed to the
output of the video camera.
Lets say if someone wants to use the cam in netmeeting or yahoo, then
his friends would see the video file content that the source filter is
rendering on this guy's computer.

I would like to know what would be the steps to achieve this ?

I identified the following :

1) If i want to play as much video codecs as possible i should make
directshow build the graph for rendering automatically ( using
renderfile ), in this way it would automatically use the codecs
available on the machine.
2) The output that the users of the virtual camera sees is send in the
FillBuffer method of the sourcefilter.

Is there a way to connect the graph that is built by RenderFile to
FillBuffer of the source filter ?
Is there a way to take a video frame inside a byte array and send it
to fillbuffer ?
Isnt this process slow ?
Is there a quicker way to send the output buffer of the rendered file
to the output buffer of the source filter ?

I would be very grateful for any points/tips/answers.
Thank you!

.



Relevant Pages

  • Rendering to file with jpeg2mjpeg source filter fails
    ... I have some problem with Alessandro Angeli's jpeg2mjpeg example: ... I have to collect jpeg images from a folder and save them into an ... solution is write a source filter in c++, but it gave me a hard time, ... it saves the video file correctly. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: How to render a 3D scene to a video
    ... Can you please recommend any good book or site for DirectShow newbie? ... -> FileWriter) into a video file if that makes sense, ... YOu could also modify the Push Source filter to be fed directly from your ... of data on the hard disk). ...
    (microsoft.public.win32.programmer.directx.video)
  • Network Stream rendering problem
    ... I have a MPEG 2 TS source filter that sources from a videolan UDP ... stream, but when i render the graph, the graph requests data much ... rendering breaks every n number of seconds, ... to a encoder and file writer, so is there anything I can do to get the ...
    (microsoft.public.win32.programmer.directx.video)
  • Cancelled rendering by mistake
    ... I cancelled the rendering of a video file that was going to take too long for ... Can I finish the rendering using the data in the tmp file? ... card. ... There is no original file. ...
    (microsoft.public.windowsxp.moviemaker)
  • How to get stream time from renderer.
    ... I have custom source filter which is used for the purpose of rendering ... And I want to ask to the filter graph manager about stream time of now. ... I guess I can't use IMediaSeeking because of my source filter. ...
    (microsoft.public.win32.programmer.directx.video)