scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

WARN: Camera disconnected

Open tudorapo opened this issue 1 year ago • 3 comments

  • [x] I have read the FAQ.
  • [x] I have searched in existing issues.

Environment

  • OS: Debian GNU/Linux trixie/sid x86_64
  • scrcpy version: 2.3.1
  • installation method: manual build
  • device model: Samsung Galaxy A53 5G
  • Android version: 14

I am running the camera through scrcpy and after a couple of minutes I get this:

[server] WARN: Camera disconnected

Stopping scrcpy and starting it again makes it work, the video continues.

# scrcpy --video-source=camera --no-audio --camera-facing=back  --v4l2-sink=/dev/video2 --disable-screensaver 
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
INFO: Video orientation is locked for v4l2 sink. See --lock-video-orientation.
INFO: Camera video source: control disabled
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
INFO: ADB device found:
INFO:     -->   (usb)  CODE                     device  SM_A536B
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 132.1 MB/s (66007 bytes in 0.000s)
[server] INFO: Device: [samsung] samsung SM-A536B (Android 14)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 23.3.5-1
INFO: Trilinear filtering enabled
[server] INFO: Using camera '0'
INFO: v4l2 sink started to device: /dev/video2
INFO: Texture: 4624x3468
[server] WARN: Camera disconnected
^C

What this could be? A timeout in the phone?

tudorapo avatar Apr 20 '24 09:04 tudorapo

This can happen if you start a new capture (either via scrcpy or an app on the phone).

rom1v avatar Apr 20 '24 10:04 rom1v

Apparently if I limit the resolution down to fullhd it runs much longer. At least a hour, it's still running.

tudorapo avatar Apr 20 '24 10:04 tudorapo