Is VLC OpenCV plugin working?

This forum is about all development around libVLC.
biga
Blank Cone
Blank Cone
Posts: 21
Joined: 11 May 2011 10:31

Is VLC OpenCV plugin working?

Postby biga » 19 May 2011 15:33

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Is VLC OpenCV plugin working?

Postby Jean-Baptiste Kempf » 19 May 2011 15:45

I am not sure it does.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

biga
Blank Cone
Blank Cone
Posts: 21
Joined: 11 May 2011 10:31

Re: Is VLC OpenCV plugin working?

Postby biga » 19 May 2011 17:10

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

biga
Blank Cone
Blank Cone
Posts: 21
Joined: 11 May 2011 10:31

Re: Is VLC OpenCV plugin working?

Postby biga » 20 May 2011 12:31

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?

biga
Blank Cone
Blank Cone
Posts: 21
Joined: 11 May 2011 10:31

Re: Is VLC OpenCV plugin working?

Postby biga » 13 Jun 2011 16:01

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?

carlesls
Blank Cone
Blank Cone
Posts: 24
Joined: 17 Jun 2011 13:42

Re: Is VLC OpenCV plugin working?

Postby carlesls » 07 Nov 2011 13:34

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...


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 12 guests