Skip to content
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

SR300 recorded bag file #7482

Closed
lghasemzadeh opened this issue Oct 2, 2020 · 4 comments
Closed

SR300 recorded bag file #7482

lghasemzadeh opened this issue Oct 2, 2020 · 4 comments
Labels

Comments

@lghasemzadeh
Copy link

Hello,
I have recorded both RGB and IR streams at the same time into a bag file.
Now I want to watch the recorded videos, but not by the realsense viewer, I also don't want to do screen recording. I mean I want to watch them like mp4 or any other formats like that.
I checked other similar questions but I didn't get my answer.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Oct 2, 2020

Hi @lghasemzadeh It is certainly possible to write your own application to play back bag files. An example of that is the Python sample program read_bag_example.py and the rosbag reader program.

https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/read_bag_example.py

#2215

The RealSense Viewer provides the best multimedia experience for bag playback though. As the Viewer is open-source code, perhaps you could create a custom Viewer and modify the interface to suit your exact requirements.

Alternatively, if you want to just view a bag as a standard video file then you could record the bag in ROS and then use the make_video.py tool of the bag_tools tool suite in conjunction with ffmpeg to convert the bag to video.

http://wiki.ros.org/bag_tools?distro=hydro#make_video.py

@lghasemzadeh
Copy link
Author

I tried the first link but it didn't work. So I installed ROS and Rviz, and I am able to watch the bag videos now.

@MartyG-RealSense
Copy link
Collaborator

Glad you found a solution - thanks very much for the update!

@MartyG-RealSense
Copy link
Collaborator

Closed due to solution found and no further comments received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants