English 中文(简体)
• 建立无视频传输的开放式社区项目(产品部分)
原标题:Creating OpenCV project with no Video Transcoding (ffmpeg part) Support on Linux how to?

目前,我利用这种方式创建项目,提供档案:

cmake -DCMAKE_INSTALL_PREFIX="./install-dir" -DBUILD_WITH_STATIC_CRT=ON -DBUILD_SHARED_LIBS=OFF -G "GCC" 

我将FFmpeg用于我精心汇编的项目。 同样,我不喜欢开放社区网络以任何方式播放录像,更喜欢用手提的方式使用。

我很想知道,是否能够利用Cmake建立项目档案,以便开放式社区网站video。 (不像png、jpg、tiff等图像) 互编码部分将不汇编(,而不是照相片-我喜欢并使用该片)?

最佳回答

If you would rather not have ffmpeg support with OpenCV, you can disable the WITH_FFMPEG option via the CMake GUI when you are building OpenCV. Or, if you can t use the GUI, you can do it from the command-line:

foo@bar:~/opencv-src/build> cmake -DWITH_FFMPEG=OFF <many other options...> ..

You won t be able to capture from files anymore if you disable this option. However, I think if you have V4L2 support enabled, you can capture from the camera. Hope that is helpful.

问题回答

暂无回答




相关问题
java in-memory on-the-fly class compilation (and loading)

I want to revisit an old question of mine about in-memory "compilation" of classes. Since about 1/2 a year have passed since I asked (and was somewhat answered), I d like to re-raise the issue and see ...

(c)make - resursive compile

Let s assume I have directories like: dir1 main.cpp dir2 abc.cpp dir3 def.cpp dir4 ghi.cpp jkl.cpp And let s assume that main.cpp ...

How to link to a static library in C?

I use code::blocks to compile my static library. The output result is a libstatic.a file. Now, how do I link to my library to use functions that were compiled? (I tried to use #include "libstatic.a"...

Statically linking Winsock?

I m using Winsock 1.1 in my project. I include wsock32.lib in "Additional Dependencies". I m looking at the DLL project using depends.exe and notice that the DLL depends on wsock32.dll. How can I ...

热门标签