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

Can not take a photo while in webcam mode but goes well in live stream mode (GoPro 11 black) #333

Closed
leongthb opened this issue Apr 23, 2023 · 3 comments
Labels
bug Something isn't working triage Needs to be reviewed and assigned wontfix This will not be worked on

Comments

@leongthb
Copy link

Component
What is the bug in?

  • tutorial_modules of python
  • Specs (HTTP)

Describe the bug
Hello, I am using GoPro Open API tutorial modules of Python and using wifi method to conrtol GoPro 11 black.
The problem is:
When starting the webcam: /gopro/webcam/start, I found it can not taking a photo or recording a video by python at the same time.
It goes well when I Start preview stream, I mean when I use /gopro/camera/stream/start, I can take a photo or record a video at the same time.
I would appreaciate it very much if anyone can any advice on this, thank you very much!

To Reproduce
Steps to reproduce the behavior:

  1. start webcam: eg, url = GOPRO_BASE_URL + "/gopro/webcam/start"
    response = requests.get(url)
  2. take a photo, eg, await client.write_gatt_char(COMMAND_REQ_UUID, bytearray([3, 1, 1, 1]), response=True)
  3. Found error: When starting the webcam, I found it can not taking a photo or recording a video by python at the same time.

Expected behavior
I need to display the live screen for multiple GoPro cameras 11 black and control them to take phots or record a video at the same time.

Screenshots
N/A

Hardware

  • Camera: Hero11 black, etc.
  • Ubuntu 22.04.1 X64
@leongthb leongthb added the bug Something isn't working label Apr 23, 2023
@KonradIT
Copy link
Contributor

Yeah this is how it works, once you put the GoPro in webcam mode you can't do anything else but to consume the stream. Exit out of webcam mode and take the photo/record a video.

@leongthb
Copy link
Author

Thank you very much.
I am using wifi to control the GoPro 11 balck, currently I use /gopro/camera/stream/start and udp://@0.0.0.0:8554 to get the live stream, but it is not fit for multiple GoPro cameras because all the cameras' GOPRO_BASE_URL ip address are the same one http://10.5.5.9:8080, is there any method to receive the live stream for multiple GoPro 11 black cameras on the same ubuntu system at the same time except webcam as it can not taking a photo simultaneously, or is it impossible? Thank you very much!

@tcamise-gpsw
Copy link
Collaborator

tcamise-gpsw commented Dec 6, 2023

I'm going to close this since the original description is expected behavior as mentioned above.

To answer your most recent question...firstly I assume you are talking about Preview stream and not Live stream (i.e. RTMP) since the gopro/stream/start endpoint is for Preview stream. If so, this is not currently possible. However, the next firmware release is going to add a port a parameter to the Preview Stream endpoint similar to what has been recently done for Webcam streaming. So this will soon be possible.

@tcamise-gpsw tcamise-gpsw added the wontfix This will not be worked on label Dec 6, 2023
@tcamise-gpsw tcamise-gpsw reopened this Dec 6, 2023
@tcamise-gpsw tcamise-gpsw closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2023
@github-actions github-actions bot added the triage Needs to be reviewed and assigned label Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Needs to be reviewed and assigned wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants