Page 1 of 1

Is VLC OpenCV plugin working?

Posted: 19 May 2011 15:33
by biga
Hi!

I compiled successfully VLC 1.1.9 with OpenCV 2.2, but I can't get it working. 'vlc --list' shows that the plugin is installed, but when I try to use it with 'vlc -vvv --video-filter=opencv_example v4l2:///dev/video0' then an error message come into the log, that the video_filter2 plugin not found? What is the problem? Is there anybody with working VLC+OpenCV? Should it be working anyway? Please help me.

Thx, bigA.

Re: Is VLC OpenCV plugin working?

Posted: 19 May 2011 15:45
by Jean-Baptiste Kempf
I am not sure it does.

Re: Is VLC OpenCV plugin working?

Posted: 19 May 2011 17:10
by biga
Here is the error messages found in the log. I found the compiled plugin files in /usr/local/lib/vlc/plugins/video_filter/. Why doesn't find vlc them? vlc --list listed them. It seems that the plugin is not registered as a video_filter2 plugin. How can I make it visible for VLC?

[0x4b8c88] main filter debug: looking for video filter2 module: 0 candidates
[0x4b8c88] main filter debug: no video filter2 module matched "opencv_example"
[0x4b8c88] main filter debug: TIMER module_need() : 0.702 ms - Total 0.702 ms / 1 intvls (Avg 0.702 ms)
[0x416b40] main video output error: Failed to create video filter2 'opencv_example'
[0x416b40] main video output error: Failed while trying to append 'opencv_example' to filter chain
[0x416b40] main video output error: Video filter chain creation failed

Re: Is VLC OpenCV plugin working?

Posted: 20 May 2011 12:31
by biga
After changing set_capability to "video filter2" the plugin is loaded, but I get segmentation fault. Maybe the problem around converting picture_t to IplImage. How can I workaround what the problem is?

Re: Is VLC OpenCV plugin working?

Posted: 13 Jun 2011 16:01
by biga
Finally I got opencv_example video filter working.
Now I am trying to workaround another problem: how can I catch the event that the filter raises? I need to handle it somehow because the event_info stores the positions of found faces.
Anyone out there knowing how to handle video filter events?

Re: Is VLC OpenCV plugin working?

Posted: 07 Nov 2011 13:34
by carlesls
Here is the error messages found in the log. I found the compiled plugin files in /usr/local/lib/vlc/plugins/video_filter/. Why doesn't find vlc them? vlc --list listed them. It seems that the plugin is not registered as a video_filter2 plugin. How can I make it visible for VLC?

[0x4b8c88] main filter debug: looking for video filter2 module: 0 candidates
[0x4b8c88] main filter debug: no video filter2 module matched "opencv_example"
[0x4b8c88] main filter debug: TIMER module_need() : 0.702 ms - Total 0.702 ms / 1 intvls (Avg 0.702 ms)
[0x416b40] main video output error: Failed to create video filter2 'opencv_example'
[0x416b40] main video output error: Failed while trying to append 'opencv_example' to filter chain
[0x416b40] main video output error: Video filter chain creation failed
My guess is that you canb not transform the stream into a queue of Images for the open cv capture method...