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

incorrect RGB when streaming depth alligned RGBD (iHD, Ubuntu 20.04) #28

Open
bmegli opened this issue Feb 16, 2021 · 6 comments
Open
Labels
bug Something isn't working

Comments

@bmegli
Copy link
Owner

bmegli commented Feb 16, 2021

  • KabyLake
  • only for depth aligned RGB
  • only with iHD
  • both PointCloudRenderer and GPUPointCloudRenderer
# streaming command
./realsense-nhve-depth-color 192.168.0.100 9768 depth 848 480 848 480 30 500 /dev/dri/renderD128 8000000 1000000 0.0000390625

image

With i965 everything is ok

LIBVA_DRIVER_NAME=i965 ./realsense-nhve-depth-color 192.168.0.100 9768 depth 848 480 848 480 30 500 /dev/dri/renderD128 8000000 1000000 0.0000390625
@bmegli bmegli added the bug Something isn't working label Feb 16, 2021
@bmegli
Copy link
Owner Author

bmegli commented Feb 16, 2021

From RNHVE encoding pipelines the difference between aligning to color/depth is color format used (the reason)

  • YUYV for color aligned (VAAPI yuyv422)
  • RGBA8 for depth aligned (VAAPI rgb0)

@bmegli
Copy link
Owner Author

bmegli commented Feb 17, 2021

A quick test with HVE encoding raw bgr0/rgb0 (U 20.04, FF 4.2.4, both iHD and i965) suggests that problem is not on encoding side
(both raw H.264 play correctly with ffplay)

Edit:

  • turns out problem is resolution dependent (manifests at 848x480)

@bmegli
Copy link
Owner Author

bmegli commented Feb 20, 2021

Possibly related FFmpeg ticket

@bmegli
Copy link
Owner Author

bmegli commented Feb 21, 2021

Narrowing down the problem (with color streaming only):

  • happens with iHD -> iHD
  • doesn't happen with i965 -> iHD
  • happens at 848x480
  • doesn't happen at 640x360

The fact that it is resolution dependent suggests some kind of stride problem

@bmegli
Copy link
Owner Author

bmegli commented Feb 21, 2021

Retesting using HVE with specifically 848x480 leads to problem even with FFmpeg playback

  • ok when encoding with i965
  • problem when encoding with iHD

Which means that the problem may be on the encoding side and it is resolution dependent.

@bmegli
Copy link
Owner Author

bmegli commented Mar 4, 2021

The problem is on encoding side. Nothing to be done here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant