2

Is there any way to write H.264/MPEG-4 AVC videos using VideoWriter in EmguCV? I have attempted and it throws an InvalidOperationException where WriteFrame is invoked. By the way I am new to EmguCV. Please help.

here is my code

Image<Bgr, byte> img0 = new Image<Bgr, byte>("1.jpg");

VideoWriter v = new VideoWriter("5.mp4",-1, 1, 1920, 1080, true);

v.WriteFrame(img0);
4

1 回答 1

0

I am still new at this but i realized when using a file name with the extension '.avi' it pop up a dialog when using -1 as the second parameter. but when i try anything else such as mpeg or mp4 it doesnt do anything.

于 2013-10-01T06:31:35.603 回答