I am using gstreamer, because when I tried to install OpenCV (version 2.4.7.1) via brew and then test to see if it works python segfaulted. Maybe I need to find a different source for OpenCV. $ brew install opencv ==> Downloading https://github.com/Itseez/opencv/archive/2.4.7.1.tar.gz Already downloaded: /Library/Caches/Homebrew/opencv-2.4.7.1.tar.gz ==> Patching patching file cmake/OpenCVFindOpenNI.cmake ==> cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/opencv/2.4.7.1 -DCMAKE_BUILD_TYPE=None -DCM ==> make ==> make install Warning: Could not fix libpython2.7.dylib in /usr/local/Cellar/opencv/2.4.7.1/lib/python2.7/site-packages/cv2.so 🍺 /usr/local/Cellar/opencv/2.4.7.1: 224 files, 40M, built in 2.7 minutes $ python Python 2.7.6 |Anaconda 1.7.0 (x86_64)| (default, Jan 10 2014, 11:23:15) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import cv Segmentation fault: 11
On Wednesday, February 12, 2014 4:17:45 PM UTC-8, Josh Warner wrote:
Sounds like you’re using Gstreamer. If you have access to OpenCV, it would be informative to see if the same file is opened correctly via the OpenCV backend, with data = io.Video(source=video_path, backend='opencv')
I’ve heard our Gstreamer backend could use some attention…
On Wednesday, February 12, 2014 5:36:01 PM UTC-6, !link wrote:
Hello,
I'm trying to get skimage working with video, and I'm using a relatively small video to test the functionality I need.
If I run the following code (with a video I know to play in multiple players) it seems to hang python.
import os from skimage import io ** Message: pygobject_register_sinkfunc is deprecated (GstObject) video_path = os.path.join(os.getcwd(),'test.avi') data = io.Video(source = video_path)
as in, I've let it run for 5 + min on a 2.5 MB file and had to kill the python process.
I'm running OS X 10.9.1 and I have:
Python 2.7.6 :: Anaconda 1.7.0 (x86_64) skimage 0.8.2 Gstreamer 1.2.3 from binary at http://gstreamer.freedesktop.org/ and gst-python010 installed
In case it matters, I installed gst-python via: $ brew tap homebrew/versions $ brew install gst-python010
I would appreciate any suggestions or recommendations as to how to determine where the error is, and then how to go about correcting it.