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

Not all cameras are showing up on the Samsung Galaxy S24 Ultra #5304

Closed
ImAtWork420 opened this issue Sep 18, 2024 · 4 comments
Closed

Not all cameras are showing up on the Samsung Galaxy S24 Ultra #5304

ImAtWork420 opened this issue Sep 18, 2024 · 4 comments

Comments

@ImAtWork420
Copy link

Environment

  • OS: Linux Mint 22 x86_64
  • Scrcpy version: 2.7
  • Installation method: git and then install_release.sh
  • Device model: Samsung Galaxy S24 Ultra
  • Android version: 14

Describe the bug

when i use scrcpy --list-cameras i only get 4 camras (2 in front, 2 in back), but the phone has 4 in back. 0 to 3 works fine, and i can iven use id 4.

scrcpy --list-cameras
scrcpy 2.7 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     --> (tcpip)  192.168.1.240:5555              device  SM_S928B
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 89.4 MB/s (71200 bytes in 0.001s)
[server] INFO: Device: [samsung] samsung SM-S928B (Android 14)
[server] INFO: List of cameras:
    --camera-id=0    (back, 4080x3060, fps=[10, 11, 15, 24, 30, 60])
    --camera-id=1    (front, 4000x3000, fps=[10, 15, 24, 30, 60])
    --camera-id=2    (back, 4000x3000, fps=[10, 15, 24, 30, 60])
    --camera-id=3    (front, 3392x2544, fps=[10, 15, 24, 30, 60])
@rom1v
Copy link
Collaborator

rom1v commented Sep 18, 2024

See discussions in #4392 about logical cameras.

@ImAtWork420
Copy link
Author

I think there’s a misunderstanding. The four cameras that show up are working fine, including camera ID=4. However, the phone has four cameras on the back, not just two. Sorry for not being clear about that.

scrcpy --video-source=camera --camera-id=0 --no-audio --camera-fps=60 --camera-size=1920x1080
scrcpy 2.7 <https://github.com/Genymobile/scrcpy>
INFO: Camera video source: control disabled
INFO: ADB device found:
INFO:     --> (tcpip)  192.168.1.240:5555              device  SM_S928B
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 163.8 MB/s (71200 bytes in 0.000s)
[server] INFO: Device: [samsung] samsung SM-S928B (Android 14)
[server] INFO: Using camera '0'
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 24.0.9-0ubuntu0.1
INFO: Trilinear filtering enabled
INFO: Texture: 1920x1080
scrcpy --video-source=camera --camera-id=4 --no-audio
scrcpy 2.7 <https://github.com/Genymobile/scrcpy>
INFO: Camera video source: control disabled
INFO: ADB device found:
INFO:     --> (tcpip)  192.168.1.240:5555              device  SM_S928B
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 150.3 MB/s (71200 bytes in 0.000s)
[server] INFO: Device: [samsung] samsung SM-S928B (Android 14)
[server] INFO: Using camera '4'
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 24.0.9-0ubuntu0.1
INFO: Trilinear filtering enabled
INFO: Texture: 640x480

@ImAtWork420
Copy link
Author

I managed to get it to work by replacing CameraCapture.java and LogUtils.java with the same files from https://github.com/chenxiaolong/scrcpy/commits/phys. Then, I fixed a few errors, mostly by deleting if statements. I will attach the two modified files; I had to change the extension to .txt to be able to upload them.
CameraCapture.txt
LogUtils.txt

@ImAtWork420
Copy link
Author

By the way, rom1v, sorry for not reading your comment well enough.

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