Thursday, June 19, 2008

WinCE Camera application architecture

winCE Camera Capture application Architecture
-----------------------------------------------------------------------
1.Preview pin is connected to the Video Renderer
2.Capture pin is connected as follows:

Capture Pin -> Video Encoder -> Muxer filter


Normally preview pin will render the video; Capture Pin Stream is
stopped using ControlStream() fn;
whenever the "Start Recording" button was pressed then we need to
Start the capture Pin Stream;


In other words we need to Captured video data to be written into media
file as well as to be rendered on screen;


For doing this, we will connect the filters as follows:

Video Capture Pin -> Video Encoder->Muxer
Audio Capture Pin ->Audio Encoder->Muxer

video Preview pin -> Video Renderer;

Until the user gives "Start Recording" command, we need to Stop the
Stream in Video capture and Audio Capture pin;
we need to Start them only when the user gives "Start Recording";


if No media file was recorded, then during the connection itself the
muxer filter will creates an empty file;

we need to delete it ; if No media file was recorded, then the current
filename is to be deleted from the file system;

This is what we have done ;

1 Comments:

Anonymous Sandeep Dhull said...

Hello !i am new video streaming, and i have read your blogs, but i want to know how stream an mp4 file over rtsp..email your response at sandeepdhull1990@gmail.com

3:16 AM  

Post a Comment

<< Home