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

Hero 9 Not Capturing Video Wired #549

Closed
chofmus opened this issue May 15, 2024 · 1 comment
Closed

Hero 9 Not Capturing Video Wired #549

chofmus opened this issue May 15, 2024 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@chofmus
Copy link

chofmus commented May 15, 2024

Component
What is the bug in?

  • Demos (python sdk, etc)
  • Tutorials

Describe the bug
Giving AssertionError when trying to take video using the API.
I have tried to downgrade the API to previous versions but that has also not worked.

To Reproduce
Steps to reproduce the behavior:

  1. Install API by cloning the public repo
  2. Run gopro-video --wired 1

Expected behavior
Record a video from the GoPro using USB

Screenshots
INFO 12:39:20.253 Querying mDNS to find _gopro-web._tcp.local.... mdns_scanner.py:67
INFO 12:39:20.262 gopro_base.py:396
<<<<<<<<--------------
"id" : "Camera Control Wired Usb",
"protocol" : "Protocol.HTTP",
"endpoint" : "gopro/camera/control/wired_usb",
"p" : "Toggle.ENABLE",
<<<<<<<<--------------

WARNING 12:39:20.268 Received non-success status 404: Not Found gopro_base.py:403
INFO 12:39:20.269 gopro_base.py:418
-------------->>>>>>>>
"id" : "http://172.21.198.51:8080/gopro/camera/control/wired_usb?p=1",
"status" : "ErrorCode.ERROR",
"protocol" : "Protocol.HTTP",
-------------->>>>>>>>

INFO 12:39:20.271 gopro_base.py:396
<<<<<<<<--------------
"id" : "Version",
"protocol" : "Protocol.HTTP",
"endpoint" : "gopro/version",
<<<<<<<<--------------

INFO 12:39:20.275 gopro_base.py:418
-------------->>>>>>>>
"id" : "http://172.21.198.51:8080/gopro/version",
"status" : "ErrorCode.SUCCESS",
"protocol" : "Protocol.HTTP",
"data" : "2.0",
-------------->>>>>>>>

INFO 12:39:20.277 Using Open GoPro API version 2.0 gopro_wired.py:110
INFO 12:39:20.278 gopro_base.py:396
<<<<<<<<--------------
"id" : "Camera State",
"protocol" : "Protocol.HTTP",
"endpoint" : "gopro/camera/state",
<<<<<<<<--------------

WARNING 12:39:20.291 SettingId.MEDIA_FORMAT does not contain a value 12 parsers.py:110
INFO 12:39:20.293 gopro_base.py:418
-------------->>>>>>>>
"id" : "http://172.21.198.51:8080/gopro/camera/state",
"status" : "ErrorCode.SUCCESS",
"protocol" : "Protocol.HTTP",
"data" : {
# i took out all the data for conciseness
},
-------------->>>>>>>>

INFO 12:39:20.310 gopro_base.py:396
<<<<<<<<--------------
"id" : "Camera State",
"protocol" : "Protocol.HTTP",
"endpoint" : "gopro/camera/state",
<<<<<<<<--------------

WARNING 12:39:20.322 SettingId.MEDIA_FORMAT does not contain a value 12 parsers.py:110
INFO 12:39:20.325 gopro_base.py:418
-------------->>>>>>>>
"id" : "http://172.21.198.51:8080/gopro/camera/state",
"status" : "ErrorCode.SUCCESS",
"protocol" : "Protocol.HTTP",
"data" : {
# i took out all the data for conciseness
},
-------------->>>>>>>>

INFO 12:39:20.338 gopro_base.py:396
<<<<<<<<--------------
"id" : "Camera Presets Set Group",
"protocol" : "Protocol.HTTP",
"endpoint" : "gopro/camera/presets/set_group",
"_id" : "1000",
<<<<<<<<--------------

INFO 12:39:21.009 gopro_base.py:418
-------------->>>>>>>>
"id" : "http://172.21.198.51:8080/gopro/camera/presets/set_group?id=1000",
"status" : "ErrorCode.SUCCESS",
"protocol" : "Protocol.HTTP",
-------------->>>>>>>>

INFO 12:39:21.011 gopro_base.py:396
<<<<<<<<--------------
"id" : "Camera State",
"protocol" : "Protocol.HTTP",
"endpoint" : "gopro/camera/state",
<<<<<<<<--------------

WARNING 12:39:21.022 SettingId.MEDIA_FORMAT does not contain a value 12 parsers.py:110
INFO 12:39:21.024 gopro_base.py:418
-------------->>>>>>>>
"id" : "http://172.21.198.51:8080/gopro/camera/state",
"status" : "ErrorCode.SUCCESS",
"protocol" : "Protocol.HTTP",
"data" : {
# i took out all the data for conciseness
},
-------------->>>>>>>>

INFO 12:39:21.037 gopro_base.py:396
<<<<<<<<--------------
"id" : "Media List",
"protocol" : "Protocol.HTTP",
"endpoint" : "gopro/media/list",
<<<<<<<<--------------

INFO 12:39:21.059 gopro_base.py:418
-------------->>>>>>>>
"id" : "http://172.21.198.51:8080/gopro/media/list",
"status" : "ErrorCode.SUCCESS",
"protocol" : "Protocol.HTTP",
"data" : {
"identifier" : "64438127300848920",
"media" : [

             ],                                                                                                                   
         },                                                                                                                       
     -------------->>>>>>>>                                                                                                       

Capturing a video...
INFO 12:39:21.061 gopro_base.py:396
<<<<<<<<--------------
"id" : "Camera State",
"protocol" : "Protocol.HTTP",
"endpoint" : "gopro/camera/state",
<<<<<<<<--------------

WARNING 12:39:21.073 SettingId.MEDIA_FORMAT does not contain a value 12 parsers.py:110
INFO 12:39:21.076 gopro_base.py:418
-------------->>>>>>>>
"id" : "http://172.21.198.51:8080/gopro/camera/state",
"status" : "ErrorCode.SUCCESS",
"protocol" : "Protocol.HTTP",
"data" : {
# i took out all the data for conciseness
},
-------------->>>>>>>>

INFO 12:39:21.089 gopro_base.py:396
<<<<<<<<--------------
"id" : "Camera Shutter",
"protocol" : "Protocol.HTTP",
"endpoint" : "gopro/camera/shutter",
"mode" : "start",
<<<<<<<<--------------

WARNING 12:39:21.095 Received non-success status 404: Not Found gopro_base.py:403
INFO 12:39:21.096 gopro_base.py:418
-------------->>>>>>>>
"id" : "http://172.21.198.51:8080/gopro/camera/shutter/start",
"status" : "ErrorCode.ERROR",
"protocol" : "Protocol.HTTP",
-------------->>>>>>>>

ERROR 12:39:21.097 AssertionError() video.py:50
Exiting...

Hardware

  • Camera: Hero 9
  • Desktop: Linux Ubuntu 22

Additional context
Using version 0.16.1
Firmware version v01.72
Hero 9 Black

@chofmus chofmus added the bug Something isn't working label May 15, 2024
@github-actions github-actions bot added the triage Needs to be reviewed and assigned label May 15, 2024
@tcamise-gpsw
Copy link
Collaborator

Hello. The demos are only tested and supported on the latest camera (Hero 12 Black currently).

The problem here is that the Shutter command is not supported via HTTP on Hero 9. So it is not possible to capture video via USB on Hero 9 Black.

@tcamise-gpsw tcamise-gpsw closed this as not planned Won't fix, can't repro, duplicate, stale Jul 10, 2024
@tcamise-gpsw tcamise-gpsw added wontfix This will not be worked on and removed triage Needs to be reviewed and assigned labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants