Ask Your Question
2

Building the video I/O part only?

asked 2012-08-04 11:06:19 -0600

ardi gravatar image

Hi,

It's possible that OpenCV could be the best suited video I/O code for my needs. However, I don't need the "whole monster", as I'm not doing any computer vision stuff. But I need a way of doing video I/O on several platforms, and it seems OpenCV has the approach that best suits my ideas, because it uses the native video API on each OS.

So, I'd like to build only the OpenCV part I need...

Is it possible to build the video I/O part of OpenCV only? How? Can you point me to some page or site describing so?

Thanks a lot,

ardi

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2012-08-07 19:58:57 -0600

CTD gravatar image

That stuff is in highgui. If you go in to the generated CMakeCache.txt file in your build dir and set the build module lines to something like:

BUILD_opencv_features2d:BOOL=OFF

for everything except highgui and core, it should do as you want.

edit flag offensive delete link more

Comments

Ok, thanks a lot!!

ardi gravatar imageardi ( 2012-08-08 03:30:25 -0600 )edit
1

answered 2012-08-05 14:27:09 -0600

Adi gravatar image

OpenCV uses ffmpeg for it video I/O.
You can use that directly without pulling in any OpenCV.

edit flag offensive delete link more

Comments

Are you sure of this? I think I've read that OpenCV uses the native backend on each OS (ie: Quicktime on OSX, Windows Media on MSW, and ffmpeg on Linux). Does OpenCV use ffmpeg on all platforms?

ardi gravatar imageardi ( 2012-08-06 03:39:38 -0600 )edit

I think so but regardless, ffmpeg is cross-platform too.

Adi gravatar imageAdi ( 2012-08-06 04:30:24 -0600 )edit

But last time I saw ffmpeg it was not so trivial to use it. So, if OpenCV works, I would recommend to try using opencv_highgui module. Later it will be split into several smaller modules, so you will take even less.

Kirill Kornyakov gravatar imageKirill Kornyakov ( 2012-08-06 10:42:14 -0600 )edit

Note that I'm not looking for a cross-platform video I/O library, so I'm not interested in ffmpeg. I'm looking for a cross-platform video I/O API that uses the native video backend on each OS. I want that my applications use the native OS video libraries, but I don't want to write different code for each platform. I'll take a look at the advice by CTD. Thanks!

ardi gravatar imageardi ( 2012-08-08 03:33:16 -0600 )edit

Question Tools

Stats

Asked: 2012-08-04 11:06:19 -0600

Seen: 930 times

Last updated: Aug 07 '12