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

In Android, how to set the initial depth camera resolution 1280x720 or 1920x1080 ? #13653

Open
1programmer2dfg3 opened this issue Jan 6, 2025 · 1 comment
Labels

Comments

@1programmer2dfg3
Copy link

I am currently setting through this function
config.enableStream(StreamType.DEPTH, 1280, 720);
The result is abnormal, camera data cannot stream in, preview black screen.
But setting 640x480 is no problem。

2025-01-06 10:18:27.365 27702-27702 librs com.gather.terminal I ... /dev/bus/usb/001/003
2025-01-06 10:18:27.365 27702-27702 librs com.gather.terminal I Found 1 RealSense devices (0xfe requested & 0xff from device-mask in settings)
2025-01-06 10:18:27.366 27702-27702 librs com.gather.terminal I ... /dev/bus/usb/001/003
2025-01-06 10:18:27.366 27702-27702 librs com.gather.terminal I Found 1 RealSense devices (0xfe requested & 0xff from device-mask in settings)
2025-01-06 10:18:27.367 27702-27702 RemoteCaptureFragment com.gather.terminal D try start streaming
2025-01-06 10:18:27.367 27702-27702 librs com.gather.terminal I ... /dev/bus/usb/001/003
2025-01-06 10:18:27.367 27702-27702 librs com.gather.terminal I Found 1 RealSense devices (0xfe requested & 0xff from device-mask in settings)
2025-01-06 10:18:27.390 27702-27715 gather.termina com.gather.terminal I ThreadFlipBegin blocked for 11.482ms
2025-01-06 10:18:27.404 27702-27702 librs com.gather.terminal I Request: Z16 Depth,
Resolved to: Z16 Depth,
2025-01-06 10:18:27.404 27702-28865 librs com.gather.terminal W control_transfer returned error, index: 1, error: Broken pipe, number: 32
2025-01-06 10:18:27.405 27702-28865 librs com.gather.terminal W control_transfer returned error, index: 1, error: Broken pipe, number: 32
2025-01-06 10:18:27.406 27702-28865 librs com.gather.terminal W control_transfer returned error, index: 1, error: Broken pipe, number: 32
2025-01-06 10:18:27.407 27702-28865 librs com.gather.terminal W control_transfer returned error, index: 1, error: Broken pipe, number: 32
2025-01-06 10:18:27.407 27702-28865 librs com.gather.terminal W control_transfer returned error, index: 1, error: Broken pipe, number: 32
2025-01-06 10:18:27.408 27702-28865 librs com.gather.terminal W control_transfer returned error, index: 1, error: Broken pipe, number: 32
2025-01-06 10:18:27.408 27702-27702 librs com.gather.terminal E Probe-commit control transfer failed with error: RS2_USB_STATUS_OTHER
2025-01-06 10:18:27.411 27702-27702 librs com.gather.terminal E [rs2_pipeline_start_with_config( pipe:0x7273c61290, config:0x7273c707b0 ) Invalid Value]
Failed to resolve the request:
Format: Z16, width: 1280, height: 720

                                                                                                Into:
                                                                                                 Formats: 
                                                                                                  Z16
@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jan 6, 2025

Hi @1programmer2dfg3 Please try adding the FPS speed to your Android stream configuration instruction. The Failed to resolve the request error could occur if the program is automatically attempting to use 30 FPS but the camera is unable to provide it. A good FPS value to test with is '6', or '5' if you have the RealSense D455 camera model.

cfg.EnableStream(StreamType.Depth, 1280, 720, Format.Z16, 6);

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

No branches or pull requests

2 participants