Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARN: Camera disconnected #4865

Open
2 tasks done
tudorapo opened this issue Apr 20, 2024 · 2 comments
Open
2 tasks done

WARN: Camera disconnected #4865

tudorapo opened this issue Apr 20, 2024 · 2 comments

Comments

@tudorapo
Copy link

  • I have read the FAQ.
  • 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?

@rom1v
Copy link
Collaborator

rom1v commented Apr 20, 2024

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

@tudorapo
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants