Save video and depth info
Hello,
is there a easy way to save rgb video and depth information without having large bag files? I need the depth information later but dont to save big bag files. Saving the depth information in an array would be also an idea.
Thanks.
-
Hi Andi Forster There are a range of methods that you could use to reduce file size.
1. Record a bag file in ROS and the RealSense ROS compatibility wrapper with rosbag record so that you can use the 'split' instruction of rosbag record to set a maximum file size or recording duration, after which the current bag recording will be closed and another bag file recording will automatically begin.
https://github.com/IntelRealSense/librealsense/issues/2424#issuecomment-423284173
2. Write a Python program that uses an instruction called save_single_frameset() to save each frame as an individual bag file.
3. Use the Z16H depth format to record depth into a bag file in a compressed format in conjunction with the enable_record_to_file() instruction. A C++ script at the link below demonstrates this principle.
https://github.com/IntelRealSense/librealsense/issues/9295#issuecomment-874045003
4. Record a large bag file and then convert it into other file formats with a smaller file sze using the RealSense SDK's rs-convert tool.
https://github.com/IntelRealSense/librealsense/tree/master/tools/convert
5. Save the depth and RGB data as non-interactive .avi video files using a Python script that stores the data in numpy arrays.
https://github.com/IntelRealSense/librealsense/issues/8528
6. Save the RGB and depth as a colored pointcloud .ply file.
https://github.com/IntelRealSense/librealsense/issues/6194#issuecomment-608371293
Please sign in to leave a comment.
Comments
1 comment