-
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
Turn enable_record_to_file() on/off #4801
Comments
Yes. Should look something like this: profile = pipe.start(config) # Store the recording profile used by the pipeline
recorder = profile.get_device().as_recorder() # Obtain the streaming device and cast it to recorder type
recorder.pause() # Pause recording while continuing to stream
recorder.resume() # Resume recording of running stream |
Thank you, @lramati! In the meantime, I have found the save_single_frameset() method, which suits my needs perfectly as it allows for saving single frames with different file names. (Restarting the pipeline with a new config, on the contrary, takes quite some time.) However, there are quite a few unanswered posts in regards to the depth frame not being recorded correctly: #4020, #2588 , #3671, and #3704. Can you please provide an example showing how to correctly use the method? |
The save_single_frameset processing block neglected to save the value of depth_units associated with the frame. When querying this value from the bag, it would see that it didn't have one and default to 0, which resulted in functions like depth_frame.get_distance reporting a distance of 0, even though the depth data was correctly recorded. |
@bernland With the suggestion of lramati, did you get it through now? Looking forward to your update. Thanks! |
Yes, @RealSenseCustomerSupport, since compiling the branch from source, the method save_single_frameset() has been working as expected. Thank you! |
@bernland Glad to know this resolved. Close it accordingly. Thanks! |
Issue Description
Here's what I'm trying to achieve: I'd like to save a single (depth) frame in PLY format and a BAG stream a few seconds before and after that frame. I understand that enable_record_to_file() allows for capturing the BAG stream. However, the only way I got this to work is by restarting the pipeline with a different configuration, which is very cumbersome since I need to take a lot of subsequent snapshots.
Is there a way to turn on/off the recording feature? Just like pressing the record/stop buttons in the Intel RealSense Viewer.
The text was updated successfully, but these errors were encountered: