Unable to load recorded sequence into realsense2 viewer.
Hi, The issue I'm seeing is not found in the support community. I'm unable to open .bag files in realsense2 sdk viewer. I keep gettinig the following message:
Failed to load file 20200602_122353.bag. Reason: Zero order filter requires both IR and Depth streams turned on.
Please rectify the configuration and rerun.
My question is how would I change the configuration of this file without being able to open it? is there a configuration file I need to edit? if so where might it be located? I am new to realsense sdk and details are below:
OS : Mac OSX 10.15.4
realsense2 sdk 2.34
file: .bag file from L515 lidar camera
I don't have the camera onsite. Working remotely with another site that has cameras and is sending files for me to build object detection model. Any help would be appreciated.
-
Hi Jallanhall The Zero Order Filter is a depth "post-processing" filter specific to the L515 that was added in SDK version 2.31.0 and is set to 'On' by default.
'Post-processing' means that it is a filter that changes the data captured by the camera to change it in a specific way (filling holes in the image, for example). The documentation link below explains about post-processing filters in the SDK.
https://dev.intelrealsense.com/docs/depth-post-processing
Looking through the SDK's code, it seems that the error that you got is triggered when the Zero Order mode cannot be enabled.
This is an issue I will have to consult with the developer team on. I apologise for the delay in the meantime.
-
The RealSense SDK does have a tool called rs-convert for converting a bag to other formats, if the tool could access the bag when the RealSense Viewer cannot import it.
https://github.com/IntelRealSense/librealsense/tree/master/tools/convert
A RealSense user called UnaNancyOwen created an alternative tool called Bag2Image that works in a similar way to exact frames from a bag created in the RealSense SDK as PNG images..
https://github.com/UnaNancyOwen/rs_bag2image
Alternatively the other site that has the L515 could recreate the bag and make sure that they are not using a Zero Order Filter when they create it, and ask them to test import of the bag into the Viewer without the camera plugged in before they send the bag to you.
Edit: I remembered that the SDK also has a bag reader program called rosbag reader that was contributed by a RealSense community member:
https://github.com/IntelRealSense/librealsense/issues/2215
There is also a bag reader program called read_bag_example.py in the Python language:
-
Thank you for the resources.
For the other site to recreate the bag, would they need to re-record the footage? or can they just open the file and make the changes.
My other question is would they need to switch off only the Zero Order Filter or is the problem with all post-processing filters?
-
The other site would have to re-record the footage.
An unusual characteristic of this case is why post-processing settings that were active during the recording would matter at all. This is because the bag does not save changes made to the camera data such as post-processing and alignment. You have to load the bag in and then apply those changes in real-time.
If post-processing changes are not saved, then the safest option may be for the other site to disable the 'Post Processing' filter set completely in the Viewer. This can be done by turning red (off) the activation icon beside the option 'Post-Processing' at the top of the filter list.
-
It is not likely that the SDK version has a bearing on the ability to play a bag, as the SDK has a download page of sample bag files that are not limited to use with particular SDK versions. Having said that, it may be worth trying a sample file with your Viewer to test whether there is a problem with your Viewer's bag playback rather than the L515 bag.
https://github.com/IntelRealSense/librealsense/blob/master/doc/sample-data.md
-
Hi Marty,
I am able to load other .bag files, but none of the samples looks like it is from a 515 lidar camera.
The reason I thought downgrading the sdk would work is because you mentioned the postprocessing is automatically turned on in version 2.31+. The other party is on 2.29 and does not have a problem opening files and has not used post-processing.
I downloaded the updated 2.35.2 SDK which says it includes support for 515 and mac, but the viewer merely crashes when I attempt to load in the .bag file. A part of me thinks it could be because the file is several gigs large, but that seems to be the nature of these files so not sure why that would have an effect.
-
After discussions with Intel, I have confirmed that I am leading your support case. I will continue the discussion on the RealSense GitHub version of this case to make it easier to officially handle. I will post a new comment there. Could you continue the support discussion at the GitHub please instead of posting here? Thanks!
Please sign in to leave a comment.
Comments
9 comments