librealsense: Problems in rs-convert

Required Info
Camera Model D435
Firmware Version 05.10.13.00
Operating System & Version Windows 10
Platform PC
SDK Version 2.18.0
Language C++

Issue Description

Hi there,

I have used the RealSense Viewer to record the streams as videos and then tried to extract the frames into .csv and .png files with the rs-convert tool. However, the utility tool sometimes doesn’t work for me.

In most situations, the tool drops frames. I cannot convert all the frames through this tool. Sometimes the tool even crashes or get stuck when executing. There are some log files generated by the tool, and in the log files are the warning messages like this:

 24/01 17:58:59,736 WARNING [16332] (playback_device.cpp:198) Playback device does not provide a matcher
 24/01 17:58:59,751 WARNING [1756] (playback_device.cpp:198) Playback device does not provide a matcher
 24/01 17:58:59,755 WARNING [15868] (playback_device.cpp:198) Playback device does not provide a matcher

There might be something wrong with the playback_device.cpp.

But I looked through the section that generates the warning messages but cannot figure out what it means:

std::shared_ptr<matcher> playback_device::create_matcher(const frame_holder& frame) const
{
    //TOOD: Use future implementation of matcher factory with the device's name (or other unique identifier)
    LOG_WARNING("Playback device does not provide a matcher");
    auto s = frame.frame->get_stream();
    return std::make_shared<identity_matcher>(s->get_unique_id(), s->get_stream_type());
}

I also noticed that @marcovs posted a similar issue #1919 and that issue seemed to be solved. However, I believed that I still have the same issue as marcovs with the 2.18.0 version of librealsense.

I think this issue could be quite critical because using RealSense Viewer to take the videos and using rs-convert to extract frames could be the most convenient way to get the data directly from the camera. It could make things much harder for the users of the camera if this issue is such widespread.

Thank you, Yang

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (2 by maintainers)

Most upvoted comments


Hi YangJiao1996,

Regarding to the API description, what UnaNancyOwen corrected is right.

For sync’ing up frames from a bag file (assuming there is no frame drop during recording to bag files), besides using backend timestamp to decide frames from sensors, another choice could be with HW sync enabled and record to bag file.

Thanks!

Hi @YangJiao1996 @UnaNancyOwen has develop a great tool to convert streams from bag files to images, using opencv. Works great!