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

Difference sample-based & client-based streaming. Simultaneous AHAT & PV #93

Closed
anjelomerte opened this issue Mar 13, 2024 · 2 comments
Closed

Comments

@anjelomerte
Copy link

anjelomerte commented Mar 13, 2024

Hi jdibenes, just testing your repo. Documentation is great! Got some questions again:)

In simple_recorder.py it say that "Simultaneous PV and RM Depth AHAT streaming is not supported [...]". Is that true? If so, why is that? It is definitely possible to access both simulatneously on the HL2.

Running client_stream_pv.py and client_stream_rm_depth_ahat.py at the same time works fine.
Combining client_stream_pv.py and e.g. sample_si_rm_depth_ahat.py does work for a couple of seconds, then it freezes.
That also got me wondering what the different in streaming approach is between the sample[...].py and client[...].py implementations?

Edit: Just stumbled across sample_pv_depth_ahat.py which streams near depth ahat and pv simulatneously. Am I missing something?

Edit: Forcing simultaneous streaming of pv and depth ahat works in sample_vide.py. Are the comments simply deprecated or will there be problems on the way?

Thanks a lot!

@jdibenes
Copy link
Owner

Hello,
The comments are deprecated, PV+AHAT did not work in some older OS versions (microsoft/HoloLens2ForCV#133).
For the sample[...].py scripts that use multiple streams, the main difference is that we use multiprocessing (producer, consumer in hl2ss_mp) to get around the global interpreter lock.
When the scripts froze did they throw any errors?
Both client_stream_pv.py and sample_si_rm_depth_ahat.py use a lot of network bandwidth so it's possible they stopped working due to network conditions.

@anjelomerte
Copy link
Author

Hi, thanks for the insights! Makes sense now. No, I got no errors, the streams just froze.

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