-
Notifications
You must be signed in to change notification settings - Fork 865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to open capture device (Linux and macOS builds are not compiled with FFmpeg) #14
Comments
The Linux builds have been built without ffmpeg. I can enable it (and I'm looking into #6), but there remains the GPL/LGPL licensing issue. Statically linking the ffmpeg to the cv2.so is a no go (I don't know if this is even possible). Shipping the shared ffmpeg lib with the package might be possible. Another solution is to build the package with ffmpeg support and then users manually install ffmpeg on their systems. |
The Linux wheel built this way is useless to me then. A shame, for this could be an easy way to get OpenCV rolling in my environments. I have gstreamer also installed but it looks like it is of no help. The lack of ffmpeg codecs could be the reason why I can not read my videos, but what about the camera? Any hints on how I can work through this? Anyone using this on Linux with success? Can anyone |
Using the wheels built here, I cannot get capture devices to work on either OS X or Linux (Ubuntu). |
It looks like windows support was added: #15 |
Haven't found yet enough time to enable ffmpeg on Linux/OS X. Yes, Windows support was a lot easier to add than for example Linux because precompiled ffmpeg shared libs are provided within OpenCV. |
https://github.com/opencv/opencv/tree/master/3rdparty/ffmpeg talks about various options around ffmpeg, etc and dealing with licenses. It seems that at least on OS X, oepncv should link against AVFoundation. It might also be worth looking at how brew builds opencv3: https://github.com/Homebrew/homebrew-science/blob/master/opencv3.rb |
There is also some flag: |
EDIT2: Forget all of the above. We will ship LGPL FFmpeg with the packages like in the Windows wheels. Work in progress. It will take some time to test this, so do not except video support any time soon. I haven't forgotten this or the other issues :) |
@skvark is it in progress? are there any rc with it already? Thanks m8 |
I'm waiting for pull request for macOS support, see #49. For Linux builds FFmpeg will be added hopefully during this year. |
How is V4L2 (using VideoCapture with webcams) related to FFmpeg in any way? The two are orthogonal (except maybe to support h264 webcams, which are somewhat rare anyway). Is there a problem building with V4L2 support with the manylinux setup? |
I haven't tried, but I hope it works. I'm just trying to provide consistent and comprehensive packages across different platforms given that Windows builds already use FFmpeg for video I/O and macOS builds will have FFmpeg support hopefully soon. |
As @kerio92 mentioned. We could have webcam video capture enabled without FFMPEG. |
FFmpeg will be supported in the next release. I will try to enable V4L2 also. |
Some of the V4L/V4L2 headers were missing on those Cent OS 5 containers. I ended up adding them there manually since anything else didn't seem to work. OpenCV detects now both of them and builds fine. Can't really test if webcams work in reality since I don't have actual HW for testing but I guess we will see at some point. |
Once it's released I can help testing it. |
My system is
I have a virtual environment with
Any try on opening a
VideoCapture
fails... Any of the following always returnFalse
when I test withcap.isOpened()
I have
ffmpeg
installed and other OpenCV installations from source on my system work fine.I was now giving a try with your package but it is not working. What am I missing? Do I need to link
ffmpeg
in some way?The text was updated successfully, but these errors were encountered: