New Webcam stack + WebRTC + Logitech C920

Camera model

Logitech, Inc. HD Pro Webcam C920

What is the problem?

MJPEG stream works but WebRTC doesn't

What did you already try to solve it?

  • Use /webcam/control to test WebRTC in Firefox - player loads but shows no image (pressed play)
  • Use /webcam/webrtc in Firefox - player loads but shows no image (pressed play)
  • Use /webcam/webrtc in VLC - doesn't play, debug log:
    main debug: `http://anycubic-i3.local/webcam/control' successfully opened
    ps warning: garbage at input from 509, trying to resync...
    prefetch debug: end of stream
    
  • journalctl -u camera-streamer-usb@default.service
    Jan 30 14:04:24 anycubic-i3 sh[789]: output/webrtc/webrtc.cc: rtc-xzowgqhvvirhbpsarkcb: Stream requested.
    Jan 30 14:04:24 anycubic-i3 sh[789]: util/http/http.c: HTTP8080/6: Client disconnected 127.0.0.1.
    Jan 30 14:04:24 anycubic-i3 sh[789]: util/http/http.c: HTTP8080/4: Client connected 127.0.0.1 (fd=6).
    Jan 30 14:04:24 anycubic-i3 sh[789]: util/http/http.c: HTTP8080/4: Request 'POST' '/webrtc' ''
    Jan 30 14:04:24 anycubic-i3 sh[789]: output/webrtc/webrtc.cc: rtc-xzowgqhvvirhbpsarkcb: Answer received.
    Jan 30 14:04:24 anycubic-i3 sh[789]: util/http/http.c: HTTP8080/4: Client disconnected 127.0.0.1.
    Jan 30 14:04:27 anycubic-i3 sh[789]: util/http/http.c: HTTP8080/5: Client connected 127.0.0.1 (fd=7).
    Jan 30 14:04:27 anycubic-i3 sh[789]: util/http/http.c: HTTP8080/5: Request 'GET' '/snapshot' ''
    Jan 30 14:04:27 anycubic-i3 sh[789]: device/links.c: SNAPSHOT:capture:mplane:buf0: Capture image is outdated. Skipped. Now: 4639943043, vs 4634818785.
    Jan 30 14:04:27 anycubic-i3 sh[789]: util/http/http.c: HTTP8080/5: Client disconnected 127.0.0.1.
    

Have you tried running in safe mode?

Yes.

Did running in safe mode solve the problem?

No.

Systeminfo Bundle

octoprint-systeminfo-20250130140219.zip (416.4 KB)

Additional information about your setup

  • OctoPrint 1.10.3
  • OctoPi Build 2024.11.05.100055 with "camera-streamer", based on OctoPi 1.0.0, running on Raspberry Pi 4 Model B Rev 1.1
  • Screenshot of /webcam/control with available webcam controls: