I made a console program that previews a video from webcam and captures it throught the MJPEG compression filter to .avi format. My schema:
WebCam
->IBaseFilter(Video capture filter)
->IBaseFilter(MJPEG compression filter)
------------->ICaptureGraphBuilder2::RenderStream
->.avi
Any advice on how to set up MJPEG compression parameters via IAMVideoCompression interface to get the smallest video size and at least average quality? For now I set the putQuality method parameter to 0.1 and it helps me a lot; my video file size is about 15mb/minute.
I can't render this captured .avi file with any video players (I tried Windows Media Player, WMP Classic, VLC). Do I need to make a decompressor before I can watch this video?
Is there another compression filter I should be using? Which one is the best?
My aim is to write a video streaming server (like Skype). Do you think 15mb/minute is a good size to transfer the video packets down the network? I am going to use UDP(RTP) socket to transfer the mediastream.