ROS Image Topic to virtual webcam

asked 2021-07-18 04:44:33 -0600

phil788 gravatar image

Hi everyone!

I'm searching for a ROS package to create a virtual webcam device streaming the content of a topic of type image. The virtual webcam should be accessed by a browser to stream content with WebRTC.

Has anyone a solution for that?


edit retag flag offensive close merge delete


Please see #q203812.

The jgoppert/ros-virtual-cam mentioned in the second answer is still available.

gvdhoorn gravatar image gvdhoorn  ( 2021-07-18 06:32:44 -0600 )edit

Thanks for your reply. Do you know any alternatives?

phil788 gravatar image phil788  ( 2021-07-24 12:35:58 -0600 )edit

Not without you telling us why you'd need alternatives?

Do the discussed packages not work any more? If not: why not?

gvdhoorn gravatar image gvdhoorn  ( 2021-07-25 05:33:25 -0600 )edit

Its not working in my scenario (Firefox recognises the virtual camera but fails on displaying video while chrome does not even detect the camera)

phil788 gravatar image phil788  ( 2021-07-25 05:36:39 -0600 )edit

That's likely a problem with v4l2loopback, not with those packages. It's not specific to any application, it's a known limitation with known work-arounds.

See v4l2loopback device detected by Chrome, not seen by Zoom or Firefox for instance.

And it seems you already posted lucasw/image_to_v4l2loopback#5, so let's give @lucasw some time to respond.

gvdhoorn gravatar image gvdhoorn  ( 2021-07-25 05:41:46 -0600 )edit