-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems in rs-convert #3208
Comments
Hi @YangJiao1996 |
Hi @codesian My current solution is developing a tool to directly save the streams as images (also using OpenCV) instead of bag files. It works fine now (at least the frames from different streams are synchronized, according to the frame numbers and timestamps). I may post the tool to Github once I think it is ready to be released. |
Hi @YangJiao1996 In general, the frame numbers do not match in each streams because they are not synchronized. |
Hi @UnaNancyOwen I checked the RealSense API for the The issues with rs-convert could be related to the unsynchronized frames. I will do more recordings with different machines to examine what actually happens when the frames are dropped. Also, thank you again for your tools and explanations! |
I think that the description of get_frame_number() in API reference is incorrect. the frame number of the frame, |
@YangJiao1996 Please add support for saving as csv/binary. Thanks. |
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. I better explain my problem in this issue: #3297 (comment) Thanks! |
Hi @frankfalse , |
For the rs-convert tool, I did more recordings with my camera and tested them with rs-convert, and only one of them caused the crash. It could be related to the compression format (1z4) of rosbag, or the state of the camera when recording. |
Thank you for your replay. |
Hi @YangJiao1996 rs_bag2image save depth frame in black and white png files, while rs-convert save colorized images! If I have made a mistake please help me! |
Hi @frankfalse , What |
Hi @YangJiao1996 thank for your interesting reply. Instead I have found a workaround for the problem of rs-convert. |
Hi YangJiao1996, Wonder if you have any update on this one? Do you still need help on it? Thanks! |
Hi @RealSenseCustomerSupport , |
Hi YangJiao1996, Thanks for the update. Thanks! |
Hi @RealSenseCustomerSupport, |
Hi YangJiao1996, Thanks for the updates and sharing a test file. Cheers! |
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 thers-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:
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:
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
The text was updated successfully, but these errors were encountered: