Ask Your Question
0

Encoding videos for opencv

asked 2012-12-03 14:28:25 -0600

Tie-fighter gravatar image

updated 2012-12-03 18:29:44 -0600

I would like to use video datasets to test my program, but unfortunately it does not work.

How do I encode them for the current version of opencv?

PS: It seems to be a problem with cmake (OpenCV examples work but own project doesn't). I am using the tutorial CMakeList.txt that does not compile including the codecs. Can you give me any pointers on how to correctly do this?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2012-12-03 14:38:47 -0600

AlexanderShishkov gravatar image

updated 2012-12-03 14:40:02 -0600

The easiest way is to transcode the video with any available tool (mplayer, VirtualDub, etc...)

edit flag offensive delete link more

Comments

To what codec/format?

Tie-fighter gravatar imageTie-fighter ( 2012-12-03 14:48:10 -0600 )edit

divx video in AVI file container

AlexanderShishkov gravatar imageAlexanderShishkov ( 2012-12-03 14:54:49 -0600 )edit

I am running out of ideas... are there any fool-proof video samples I could try? Maybe it's a problem with the code.

Tie-fighter gravatar imageTie-fighter ( 2012-12-03 17:31:56 -0600 )edit

Our test videos are located in opencv_extra repository. For example you can test on big_buck_bunny.avi from https://github.com/Itseez/opencv_extra/tree/master/testdata/highgui/video

AlexanderShishkov gravatar imageAlexanderShishkov ( 2012-12-04 03:52:40 -0600 )edit

For ccp-examle-bgfg_gmg even the original mjpeg videos work... it seems to be a problem with compiling. I do not understand, wh...

Tie-fighter gravatar imageTie-fighter ( 2012-12-04 06:01:51 -0600 )edit

Do you use binary OpenCV package or you compiled OpenCV?

AlexanderShishkov gravatar imageAlexanderShishkov ( 2012-12-04 06:25:05 -0600 )edit

This is solved, but I am not allowed to close the question yet... It didn't work so I recompiled but forgot to "make install" -_- Everything works fine now...

Tie-fighter gravatar imageTie-fighter ( 2012-12-04 17:46:34 -0600 )edit
0

answered 2012-12-20 14:00:48 -0600

Tie-fighter gravatar image

I recompiled with ffmpeg but forgot to make install

-_-

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-12-03 14:28:25 -0600

Seen: 687 times

Last updated: Dec 20 '12