-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Comments
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.
|
Thank you for your reply. I have tested it and found that it did not take effect. The screen I preview is still missing. My test was passed by one, which is
Below is the error log, help me look again, thank you 2025-01-10 15:01:17.247 29447-29447 librs com.gather.terminal E [rs2_pipeline_wait_for_frames( pipe:0x7273c630f0 ) Wrong Api Call Sequence] wait_for_frames cannot be called before start() |
this is error log:
|
You said that 640x480 works. What about 848x480 please? |
848x480 is also OK, this is the configuration code |
1 similar comment
848x480 is also OK, this is the configuration code |
What RealSense camera model are you using, please? |
Intel D435 |
Ok, so 1280x720 should be achievable as it is supported on D435. Are you using the official USB cable supplied with the camera or a cable that you chose yourself? |
Using the official original |
Thank you. And what is your librealsense SDK version and camera firmware driver version, please? |
SDK version is 2.55.1 |
If you can use the camera on PC then you can retrieve the firmware version with the command rs-enumerate-devices -s Alternatively, if you can access the realsense-viewer tool then clicking the 'Info' button at the top of the options side-panel will list the firmware. For librealsense 2.55.1, firmware version 5.16.0.1 should be installed in the camera. |
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
The text was updated successfully, but these errors were encountered: