Here ( How to compile OpenCV 2.3 with ffmpeg support with Visual Studio 2010) I found how to compile opencv and ffmpeg yourself on windows. I'm currently using opencv2.4.6 and in this discussion ( how can I use the openCV FFMPEG video I/O rather than the DirectShow one in Windows?) someone mentioned that in opencv2.4 ffmpeg is automatically included. ![]() I found that for this to work, I need to have ffmpeg support. However it doesn't work, I tried the following sample code but while running I get the following error: "could not find encoder for codec id 28: encoder not found." cv::VideoWriter makeVideo ![]() ![]() Everything works with the xvid codec but offcourse this is not a lossless compression so I found that the x264 codec is suitable. I want to save a video with opencv with lossless compresion so I don't lose any details of the frames.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |