I checked cv2.version after import cv2, and it seems '3.3.0' also pip freeze result like that. For that reason, I added cv2 versions and paths. I didn't understand why FFmpeg has seemed "YES" when I have building OpenCV at that time has given "NO" result with cv2.getBuildInformation().ģ.2.0 (cv_env)➜ cv_env python Python 2.7.6 (default, Oct 26 2016,įFMPEG: NO (cv_env)➜ cv_env python Python 2.7.6Ĥ.8.4] on linux2 Type "help", "copyright", "credits" or "license"Ĭv2._file_ '/opt/cv_env/local/lib/python2.7/site-packages/cv2/cv2.so'Ĥ.8.4] on linux Type "help", "copyright", "credits" or "license"Ĭv2._file_ '/usr/local/lib/python3.4/dist-packages/cv2/'Īlso, I didn't remember which steps I applied (for python2 or python3). avc On2 Audio for Video Codec (decoders: on2avc ) ffmpeg -codecs | grep -i avc and, the output is :ĭEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_cuvid ) (encoders: h264_nvenc nvenc nvenc_h264 ) D.A.L. I also tried to find if FFMPEG supports codec for decoding AVC encoded files. I installed OpenCV with following these steps. When I tried to check FFmpeg support with this command: I built the OpenCV with -D WITH_FFMPEG=ON option and it would finish successfully and the result that about FFmpeg was seemed to be OK.Īlso, when I run "make -j8" command, it finished with no problem. Problem is that: "cv2.videoCapture() return always false". I installed OpenCV in the virtual environment a lot of times when trying to solve this problem. I read nearly all of the questions about this subject but I didn't solve it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |