Receiving a VLC video stream with OpenCV

Just have a drink and chat
alb84
Blank Cone
Blank Cone
Posts: 29
Joined: 16 Dec 2009 15:40

Receiving a VLC video stream with OpenCV

Postby alb84 » 16 Dec 2009 15:58

Hi everybody, I posted this question in this section of the forum because I could not figure out which was the most proper section to post it.

My problem is that I have a VLC video stream from a VLC server, and I'd like to receive the stream and do some real time processing with OpenCV.
OpenCV highlevel API can only manage video from files stored on file system or from capture devices but there is no way to manage a VLC video stream.
Which is the best solution you can advise? Possibly the easiest and quickest one.

I looked if it was possible to virtualize a dummy video capture device to use as a VLC client output and as a OpenCV input but I found no solutions.
My next step is to download the VLC source and modify it in order to get the raw RGB data ready to be visualized on the screen and pass it to the OpenCV application.
I already snooped around the source tarball but I did not figure out where I can add the code to get the raw RGB data. I hope you can help me, or maybe you can advise me some other solutions more simple and comfortable.
I've seen there is a libVLC API which seems to be done for these problems but I only found a call to take a snapshot of the current video frame on a file and I found no useful example to do what I need.
Any help / reference / tutorial / sample code is welcome!
Thanks

Return to “Coffee Corner”

Who is online

Users browsing this forum: No registered users and 14 guests