Split .bag according to time
linahourieh opened this issue · comments
Required Info | |
---|---|
Camera Model | D435 |
Firmware Version | Open RealSense Viewer 2.55.1 |
Operating System & Version | Linux (Ubuntu 22.04) / Windows 11 |
Kernel Version (Linux Only) | 6.5.0-35-generic |
Platform | PC |
SDK Version | legacy / 2.0 |
Language | python } |
Segment |
Issue Description
I have recorded .bag file with my RealSense viewer (on windows 11), i would like to split this file into 2 files or more according to time, is there a way other than Rosbag to split this file ??
Hi @linahourieh The only option available in the RealSense SDK would be to use the save_single_frameset() instruction to save each frame as an individual bag file, which would result in a very large volume of files. A Python example of implementing this instruction can be found at the link below.
https://github.com/soarwing52/RealsensePython/blob/master/separate%20functions/single_frameset.py
@MartyG-RealSense Thank you for the answer, I would find that inconvienent, is there a form other than .bag that I can use to record the RGB and depth?
Thak you in advance
If you want to record data as a continuous stream in one or two files instead of many multiples of file then bag is the only available option unless you record the streams to a non-interactive video file such as mpeg or avi.
Hi @linahourieh Do you require further assistance with this case, please? Thanks!