locked
About AVI mux capture file size RRS feed

  • Question

  • My scenario is that recording the video to a file from webcam.

    The webcam generate YUV format data. I used avi mux and connect with file writer. It seems no problem.

    But then I want to adopt  the Microsoft MJPEG encoder to reduce the file size. The graph is

    Video Capture filter->MJPEG Encoder->AVI Mux->File Writer. It can be work.

    But the result file size is the same with the preview YUV format without compressing.

    Could anyone give me the suggestion? The only thing I want to do is reduce the recording file size

    Saturday, September 26, 2009 2:37 AM

Answers

  • You have to use the IAMVideoCompression->put_Quality(quality) method on the output pin, with quality<1.0 for compression to be effective.
    Michel Roujansky, http://www.roujansky.com
    • Proposed as answer by Chris P_ Wednesday, September 30, 2009 6:06 PM
    • Marked as answer by The March Hare Wednesday, October 7, 2009 5:51 PM
    Sunday, September 27, 2009 1:51 PM