Search code examples
c#emgucvavi

Emgu.CV to make an .avi


I am using Emgu.CV library for object detection and worrying if it is possible to save my .bmp image as a frame to .AVI with this library. I found VideoWriter class but pls give some examples or links.

I appreciate any ideas and give marks^^


Solution

  • Have you tried putting it all together? Here's my take on the VideoWriter:

    //VideoWriter vw = new public VideoWriter(string fileName, int fps, int width, int height, bool isColor);
    VideoWriter vw = new VideoWriter("test.avi", 30, 500, 500, true);
    //Then write your frame
    vw.WriteFrame(frame);
    

    I'm not sure about the WriteFrame() method yet. Check out the link to it.