Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write/pipe to a virtual webcam created by V4L2loopback module?

I have written an application which reads from a webcam and processes the frames using OpenCV on linux. Now I want to pipe the output of my application to a virtual webcam that has been created by the V4L2loopback module so other applications are able to read it. I have written the application using C. I am not sure how to approach doing this. Could you please give me any hints?

like image 394
user477519 Avatar asked Jun 16 '12 22:06

user477519


1 Answers

I have found an answer in the old V4L2loopback module's page on Google code.

http://code.google.com/p/v4l2loopback/source/browse/test.c

newer link: https://github.com/umlaeute/v4l2loopback/blob/master/examples/test.c

This has helped me so far just to write to the device.

like image 182
user477519 Avatar answered Sep 30 '22 21:09

user477519