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

Start bagfile in enable_device_from_file from a certain position #9695

Closed
snopytas opened this issue Aug 27, 2021 · 4 comments · May be fixed by bitbrain-za/librealsense#11
Closed

Start bagfile in enable_device_from_file from a certain position #9695

snopytas opened this issue Aug 27, 2021 · 4 comments · May be fixed by bitbrain-za/librealsense#11

Comments

@snopytas
Copy link

Required Info
Camera Model { D435 }

Hi, I am using enable_device_from_file in my program and I would like to skip some seconds of the bag file, such that it starts a t=5s for example and not at t=0s. Is this possible?

@MartyG-RealSense
Copy link
Collaborator

Hi @snopytas It is possible to navigate to a particular frame number of a bag, as described in #3121

If your bag was recorded at a certain FPS speed then conceivably you could work out a rough frame-number starting point from that. For example, if recording 30 frames per second, t = 5 seconds might equate to a rough frame number position of 30 x 5 = 150 (the 150th frame). So if your aim was to jump to a particular position and then begin normal playback from that point onwards, you could maybe set playback to paused first, skip to the desired frame and then unpause playback.

@MartyG-RealSense
Copy link
Collaborator

Hi @snopytas Do you require further assistance with this case, please? Thanks!

@snopytas
Copy link
Author

snopytas commented Sep 4, 2021

Thank you! I don't need further assistance.

@snopytas snopytas closed this as completed Sep 4, 2021
@MartyG-RealSense
Copy link
Collaborator

Thanks very much @snopytas for the update!

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

Successfully merging a pull request may close this issue.

2 participants