Converting bag file to video
| Required Info | |
|---|---|
| Camera Model | D410 |
| Firmware Version | Newest |
| Operating System & Version | Win10 /Ubuntu 16 |
| Kernel Version (Linux Only) | 4.4 |
| Platform | PC |
| SDK Version | 2.11.0 |
I am planning to convert a bag file recorded by a D410 module into video (or jpeg for each frame), I am trying to follow the guide in ROS website(http://wiki.ros.org/rosbag/Tutorials/Exporting%20image%20and%20video%20data), and it is not working, I don't know if the device is not supported or we need a specific launch file design for d410 to acquire video. Or maybe it is a good idea to use the save to disk sample to do it frame by frame.
Hi,
The RealSense bag file uses a "unique" topic for video frames, which is different from the standard ROS topic for video. If you take a look at what you sent, you'll find: <remap from="image" to="/camera/image_raw"/>, which contains the standard ROS topic /camera/image_raw.
This topic does not exist in the bag files created by RealSense.
The video frames in the RealSense bag files are stored with topics that represent the device and sensor from which this frames we're captured.
The topic names are available under the record/playback documentation, and you can use the rosbag-inspector tool (under tools) to see the specific topic in you bag files.
Hi @Loriskar We recently added a new utility to the development branch to convert bag files into images. Let us know if it can help you.
Hi @dorodnic,
Thank you for the util - I tested the code but I get the same issue that I flagged in issue #1579, multiple calls to pause and resume will make the program crash. Does this happen at your end too?
@dorodnic Thanks a lot
[Realsense Customer Engineering Team Comment] Hi @Loriskar,
Since the util is available there, will close this. If any more concern/question, you can file another issue. Thanks.