ROS Image Topic to virtual webcam

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

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?

Thanks!

edit retag flag offensive close merge delete

Comments

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 -0500 )edit

Thanks for your reply. Do you know any alternatives?

phil788 gravatar image phil788  ( 2021-07-24 12:35:58 -0500 )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 -0500 )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 -0500 )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 -0500 )edit