camera-streamer icon indicating copy to clipboard operation
camera-streamer copied to clipboard

Raspberry Pi - WebRTC Stream Not Available

Open SCH00N3R opened this issue 1 year ago • 5 comments

Hello,

I followed your instructions on installing camera-streamer to my Raspberry Pi. I can connect to the web interface and can see the /stream working. However, when I click on /webrtc I get a blank playback screen with an infinitely spinning wheel. Also, if I go to the control section, The Start WebRTC button is greyed out. What did I miss?

Thank you!

SCH00N3R

SCH00N3R avatar Oct 28 '24 05:10 SCH00N3R

Same for me. On what RasbianOS version are you? cat /etc/os-release

stablestud avatar Jan 12 '25 18:01 stablestud

Did you ever figure this out? Maybe its just me but the instructions wasn't very clear how to enable webrtc.

"The WebRTC is accessible via http://:8080/webrtc by default and is available when there's H264 output generated."

I'm using the precompiled binary and my service file looks like this:

`[Unit] Description=camera-streamer web camera for USB camera on Generic platform After=network.target

[Service] ExecStart=/usr/bin/camera-streamer
-camera-path=/dev/video0
-camera-format=JPEG
-camera-width=1280 -camera-height=720
-camera-fps=15
; use two memory buffers to optimise usage -camera-nbufs=3
-camera-video.height=720
-camera-snapshot.height=720
-camera-stream.height=720
--http-listen=0.0.0.0
--http-port=8080

DynamicUser=yes SupplementaryGroups=video i2c Restart=always RestartSec=10 Nice=10 IOSchedulingClass=idle IOSchedulingPriority=7 CPUWeight=20 AllowedCPUs=1-2 MemoryMax=250M

[Install] WantedBy=multi-user.target`

But when I click on the webrtc link, just the spinning loading bar.

macavelly avatar Mar 02 '25 05:03 macavelly

Use --webrtc-disable_client_ice=1

WereCatf avatar Aug 26 '25 11:08 WereCatf

Same issue here, --webrtc-disable_client_ice=1 has no effect.

More context:

  • running on Raspberry Pi 3 (bookworm) with Klipper and Crowsnest
  • "normal" Stream via Mainsail on /webcam/?action=stream works
  • "normal" Stream via SSH tunnel directly on camera-streamer on /?action=stream works
  • WebRTC also does not work if tunneling directly to camera-streamer, so it's not getting lost in mainsails nginx server.

MartinEmrich avatar Sep 03 '25 08:09 MartinEmrich

... and the solution for me was adding gpu_mem=128 to the config.txt.

This IS documented, but without it the normal MJPEG streams still work, and there are no error messages whatsoever. So I noticed it just by chance.

MartinEmrich avatar Sep 03 '25 09:09 MartinEmrich