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

Not handling scenario without ORIN #60

Closed
remintz opened this issue Aug 4, 2022 · 5 comments
Closed

Not handling scenario without ORIN #60

remintz opened this issue Aug 4, 2022 · 5 comments

Comments

@remintz
Copy link

remintz commented Aug 4, 2022

I'm running version v0.53.0 and when I try to convert to csv or generate the dashboard I get the following exception:

Traceback (most recent call last):
  File "venv/bin/gopro-to-csv.py", line 37, in <module>
    ts = framemeta_from(args.input,
  File "/home/remintz/projects/gopro/gopro-dashboard-overlay/venv/lib/python3.8/site-packages/gopro_overlay/framemeta.py", line 239, in framemeta_from
    return parse_gopro(gpmd_from, units, metameta)
  File "/home/remintz/projects/gopro/gopro-dashboard-overlay/venv/lib/python3.8/site-packages/gopro_overlay/framemeta.py", line 230, in parse_gopro
    accl_frame_meta = accl_framemeta(gopro_meta, units, metameta=metameta)
  File "/home/remintz/projects/gopro/gopro-dashboard-overlay/venv/lib/python3.8/site-packages/gopro_overlay/framemeta.py", line 203, in accl_framemeta
    meta.accept(
  File "/home/remintz/projects/gopro/gopro-dashboard-overlay/venv/lib/python3.8/site-packages/gopro_overlay/gpmd.py", line 311, in accept
    item.accept(visitor)
  File "/home/remintz/projects/gopro/gopro-dashboard-overlay/venv/lib/python3.8/site-packages/gopro_overlay/gpmd.py", line 189, in accept
    i.accept(container_visitor)
  File "/home/remintz/projects/gopro/gopro-dashboard-overlay/venv/lib/python3.8/site-packages/gopro_overlay/gpmd.py", line 191, in accept
    container_visitor.v_end()
  File "/home/remintz/projects/gopro/gopro-dashboard-overlay/venv/lib/python3.8/site-packages/gopro_overlay/gpmd_visitors_xyz.py", line 71, in v_end
    self._on_end(
  File "/home/remintz/projects/gopro/gopro-dashboard-overlay/venv/lib/python3.8/site-packages/gopro_overlay/gpmd_visitors_xyz.py", line 147, in <lambda>
    return XYZStreamVisitor(on_end=lambda i: self._on_item(self._counter, i))
  File "/home/remintz/projects/gopro/gopro-dashboard-overlay/venv/lib/python3.8/site-packages/gopro_overlay/gpmd_visitors_xyz.py", line 115, in convert
    correct_orientation = components.orin.apply(point)
AttributeError: 'NoneType' object has no attribute 'apply'

Trying to trace the error I found the problem is the lack of an ORIN tag on my video. This video was recorded on a GoPro Max and treated on the GoPro Player.

I was able to run using v.0.48.0

Thanks

@time4tea
Copy link
Owner

time4tea commented Aug 4, 2022

Hi. Thanks for reporting this issue. I'll take a look. If you could share a very short video that demonstrates the problem, that would be very helpful. The email is gopro-overlay [at] time4tea.net - maybe use wetransfer?

@remintz
Copy link
Author

remintz commented Aug 4, 2022

Thanks. I sent using wetransfer and the above email.

@time4tea
Copy link
Owner

time4tea commented Aug 5, 2022

Thanks - just downloaded. Love the video! So exciting to see what types of activity people are using this software for. If there are any other widgets that would be useful, please don't hesitate to ask. I can't promise, but it is great to know what would be useful for people.

@time4tea
Copy link
Owner

time4tea commented Aug 5, 2022

I've opened an issue with GoPro to make sure I'm understand this correctly.

gopro/gpmf-parser#165

@time4tea
Copy link
Owner

time4tea commented Aug 5, 2022

Probably fixed in 0.54.0 - It won't crash anymore, I'm expecting, but I'm not 100% sure the acceleration values are correct. They seem to be be, using your test video.

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

No branches or pull requests

2 participants