-
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
Pausing file in pyrealsense2 and replaying in realsense viewer #4249
Comments
@jkenney9a Could you please try the rosbag-inspector tool(https://github.com/IntelRealSense/librealsense/tree/v2.23.0/tools/rosbag-inspector) to see if the recorded frames are normal? Thanks! |
@jkenney9a Any update from your side? Thanks! |
Apologies for the delay. yes, the videos are all normal. There doesn't seem to be any issues using pyrealsense2 to interact with the .bag files, as we can cycle through it and do our analysis etc. It seems that perhaps the time stamps or something like that get messed up with the pausing step so that when the realsense-viewer reads the bag file it cannot access the time info normally, which causes issues using the playback functions (scrolling, stopping, re-starting, pausing etc.). |
@jkenney9a Sorry for late reply. Did you still see this issue with the latest SDK? |
@jkenney9a Could you please update? Thanks! |
Apologies for the delay. I'll have a chance to update and check this out in about a week, and will let you know then. |
@jkenney9a Any update from your side? Thanks! |
So I updated pyrealsense2 to 2.31.0.1235. I updated all the librealsense libraries to 2.31, and updated all the firmware on the cameras to the latest versions. I still get the issue. So to reiterate, the issue only happens when I introduce the following code to pause the camera:
If I set camera_startup_pause to 0, I still get the issue. If I comment these lines out, then opening a file in the realsense-viewer is fine and I can navigate it no problem. Clearly the pausing and/or resuming is causing the issue? |
@jkenney9a Thanks for the feedback! We also reproduced here and will have engineers to look at it. Thanks! |
Confirmed to be fixed in 2.50 (see #9887) |
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Issue Description
We are using pyrealsense2 to record 6 minute videos for our research. Because the camera takes a second or so to warm up, we are pausing the camera for two seconds prior to recording the full video. However, when we do this and open up the subsequent video in the realsense viewer, the frame numbers are incorrect and we cannot navigate the video as usual (i.e. we can only start the video from the beginning, but cannot drag to a specific frame). It looks like the frame number starts at ~63 (video is at 30fps, so this would be ~equal to the two second pause). If we record the videos without the pause, then there is no issue. This is our code for collecting the video and pausing the camera:
``
#Turn on emitting camera
pipeline_emit = rs.pipeline()
config_emit = rs.config()
config_emit.enable_device(SN_D415[camera_pair])
pipeline_emit.start(config_emit)
The text was updated successfully, but these errors were encountered: