![]() |
OpenCV + ffmpeg hangs at low resolutions and low framerate
In case anyone is using OpenCV + ffmpeg to do their image processing, I found a bug in OpenCV that causes ffmpeg to hang for up to 30 seconds or so when trying to connect to the AXIS M1011 camera. I'm surprised the SmartDashboard doesn't run into this problem, since it appears to use ffmpeg underneath the hood for capturing with camera extension widgets (but not for the default camera widget that comes with it).
If you're interested in more details, check out the bug reports at OpenCV and FFMpeg. |
Re: OpenCV + ffmpeg hangs at low resolutions and low framerate
Around the start of this year's build season, I contacted Spectrum 3847 about using OpenCV on an onboard Raspberry Pi for vision processing. They replied describing a problem with ffmpeg and OpenCV causing significant lag. It is probably the same issue you found above.
Well, a few months later and here I am. I created a fully working Node.js based OpenCV processing server. I'm using the Axis VAPIX Video Streaming API (which is just MJPG over HTTP) and it's giving me 25 processed target images (640x480) per second. I created node-vapix to implement this and interface with the camera and I'm using node-opencv for OpenCV bindings. This entire time, I never even had to introduce FFmpeg into my project. So I'm asking, why even use OpenCV's VideoCapture instead of directly providing images? oculus.js: https://github.com/team178/oculus.js node-vapix: https://github.com/gluxon/node-vapix node-opencv: https://github.com/peterbraden/node-opencv |
Re: OpenCV + ffmpeg hangs at low resolutions and low framerate
Quote:
|
Re: OpenCV + ffmpeg hangs at low resolutions and low framerate
Im so glad to hear 1706 isnt the only team using OpenCV. We use the microsoft kinect though with illuminators (as of this year). Good luck!
|
Re: OpenCV + ffmpeg hangs at low resolutions and low framerate
Quote:
So, what caused the OpenCV + ffmpeg issues and how did you resolve it? |
Re: OpenCV + ffmpeg hangs at low resolutions and low framerate
Just make sure whenever you call functions such as cvCreateWindow and cvCreateMemStorage, you get rid of them too at the end.
|
Re: OpenCV + ffmpeg hangs at low resolutions and low framerate
Quote:
|
| All times are GMT -5. The time now is 03:03. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi