How To: Fix “No accelerated colorspace conversion found from yuv420p to bgr24.” | OpenCV-2.2.0 & Ubu
来源:互联网 发布:淘宝怎么咨询人工客服 编辑:程序博客网 时间:2024/06/06 07:12
This problem is basically an issue converting YUV to RGB using ffmpeg, in order for it to work ffmpeg needs to be recompiled with x264. To get around it use the following to recompile ffmpeg and OpenCV 2.1/2.2:
- Follow steps 1-to-4 of FakeOutdoorsman’s guide on ubuntuforums.org – here
- OpenCV 2.1/2.2 Install Guide by Sebastian Montabone - here
another solution:
http://ozbots.org/opencv-install-troubleshooting/
$ ./my_webcam_program
[swscaler @ 0x89c3e30]No accelerated colorspace conversion found from yuv420p to bgr24.
[swscaler @ 0x8893810]No accelerated colorspace conversion found from yuv420p to bgr24.
[swscaler @ 0x889c5b0]No accelerated colorspace conversion found from yuv420p to bgr24.
Last message repeated 1 times
Solution
The “accepted” solution is to rebuild x264 and ffmpeg with the shared library option. To rebuild x264, change to the directory where you untared the x264 source files, and enter the following commands:
./configure --enable-shared --enable-pic
make
sudo make install
To rebuild ffmpeg, change to the directory where you untared the ffmpeg source files, and enter the following commands:
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-shared
make
sudo make install
After rebuilding x264 and ffmpeg, you do not need to rebuild OpenCV. If the swscaler message still occurs when you run your program, runsudo ldconfig
, and run your program again.
This solution comes from the following thread on ubuntuforums.org: http://ubuntuforums.org/showthread.php?t=1471616
Unfortunately for me, configuring and recompiling x264 and ffmpeg does not make the warning meesage go away. If try the solution above, please let me know in the comments if it works for you.
- How To: Fix “No accelerated colorspace conversion found from yuv420p to bgr24.” | OpenCV-2.2.0 & Ubu
- No accelerated colorspace conversion found from yuv420p to rgba.的问题
- How to fix “Firefox is already running” error by Matt Cutts on January 2, 2007 in How to,Linux/Ubu
- HOW TO FIX No module named pywintypes
- How to fix the Android AVD no target problem
- How-to fix "Warning: No support for locale: en_US.utf8"
- How to fix "FAILURE DURING CONVERSION TO COFF: FILE INVALID OR CORRUPT"
- How To Fix 0x8007045d i/o
- How to Fix Msvbvm50.dll
- How to fix oozie problem
- Conversion from int16_t to uint32_t
- How to eliminate the compile error "conversion from 'double ' to 'float ', possible loss of data"
- How to get rid of `deprecated conversion from string constant to 'char*'` warnings in GCC?
- yuv420(planer) to bgr24 to bmp
- How to fix "Resource file <C_PsdRsdll> not found" issue in Windows OS
- How to Fix UbuntuDebian apt-get 404 Not Found Repository Errors
- How to read a frame from YUV file in OpenCV?
- Tips from Manish Sharma about how to writing your own FIX engine
- 思考——思想
- ARM的指令集体系结构
- IBaseFilter的FindPin方法的问题
- Java,List生成二维数组
- pfring(pf_ring)运行的几种模式
- How To: Fix “No accelerated colorspace conversion found from yuv420p to bgr24.” | OpenCV-2.2.0 & Ubu
- Linux常用命令整理
- php自带函数大全
- Struts2输入校验(二) の 替换原有的错误信息提示格式
- onkeyup,onkeydown,onkeypress事件
- cygwin下执行makefile报/bin/sh: svn: command not found
- C# 图片加水印
- WTL中经常遇到的一些错误问题
- 奇偶校验&&CRC校验