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

ZED svo playback fps error #225

Open
2 tasks done
mikeszabi opened this issue Jun 21, 2023 · 0 comments
Open
2 tasks done

ZED svo playback fps error #225

mikeszabi opened this issue Jun 21, 2023 · 0 comments
Labels

Comments

@mikeszabi
Copy link

Preliminary Checks

  • This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • This issue is not a question, feature request, or anything other than a bug report directly related to this project.

Description

With the python-api I'm trying to play a saved svo file (saved at 15fps). I'm using the grab() method and the playback fps is much higher than at recording.

init = sl.InitParameters()
init.set_from_svo_file(svo_file)

def zed_playback_loop(init):
zed1 = sl.Camera()
status = zed.open(init)
if status != sl.ERROR_CODE.SUCCESS:
print(repr(status))
exit()

exit_app=False
svo_image = sl.Mat()
while not exit_app:
  if zed1.grab() == sl.ERROR_CODE.SUCCESS:
      print(f"fps: {zed.get_current_fps()}")
      zed1.retrieve_image(svo_image, sl.VIEW.SIDE_BY_SIDE)
      # Get frame count
      svo_position = zed1.get_svo_position();
  else:
      exit_app=True

Steps to Reproduce

1.Save an svo file
2.Playback the svo with python -api
3.
...

Expected Result

Same fps at playback, as at recording

Actual Result

Playback at ~80 fps instead of 15

ZED Camera model

ZED Mini

Environment

OS: Ubuntu 20.04
Python: 3.9
ZED SDK 3.8.2
pyzed: 3.8 
ZED Mini

Anything else?

No response

@mikeszabi mikeszabi added the bug label Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant