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

无人久伴 提交于 2019-12-18 12:41:23

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/11067588/how-to-write-pipe-to-a-virtual-webcam-created-by-v4l2loopback-module

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!