Ruddle / RemoteCam

Your android camera streamed on your desktop: use as a source for OBS, or as a webcam with v4l2. Free✅, No Ads✅, Open Source✅
MIT License
477 stars 55 forks source link

redirect to Webcam (virtual) in Firefox #16

Closed sagittarius06 closed 9 months ago

sagittarius06 commented 9 months ago

I finally managed, inspired by the remote sh file, to get a virtual webcam to work properly in Firefox or Brave, so thanks to the dev. My PC has by default no webcam or video device.

  1. $ sudo modprobe -r v4l2loopback
  2. $ sudo modprobe v4l2loopback video_nr=0 card_label="Webcam" exclusive_caps=1
  3. Check with $ v4l2-ctl --list-devices which gives: Webcam (platform:v4l2loopback-000): /dev/video0
  4. $ ffmpeg -hide_banner -reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -timeout 30000000 -stream_loop -1 -f mjpeg -i "http://192.168.0.128:8080/cam.mjpeg" -vf "format=yuv420p, transpose=1, fps=25" -f v4l2 /dev/video0

And it works great. Thanks again.