When we use CentOS7 to bring the source, Yum search is not the title of the above two related packages, and OPENCV need to use FFmpeg read video files. This has to be installed.
You can refer to the FFmpeg official documentation:
Http://rpmfusion.org/FAQ
Install the title-said package with a rpmfusion third-party external software repository.
First you need to install this source, run the command:
Su-c ' Yum localinstall--nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/ rpmfusion-free-release-6-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/6/i386/ rpmfusion-nonfree-release-6-1.noarch.rpm '
And then it's ready.
After that, yum search ffmpeg and gstreamer-ffmpeg have these two packages.
References
http://blog.csdn.net/yasi_xi/article/details/11746255
Http://blog.sina.com.cn/s/blog_74797cc90101pbak.html
Installing FFmpeg and Gstream-ffmpeg on CentOS