gopro-ble-py icon indicating copy to clipboard operation
gopro-ble-py copied to clipboard

Multi-Camera Control

Open geande opened this issue 3 years ago • 12 comments

Hi Konrad,

First of all, thank you so much for all your hard work in developing such extensive GoPro support! I'm interested in connecting to multiple cameras and starting to record from them simultaneously. Is this possible? I have played around with the command line interface and I can successfully connect to multiple cameras, but I'm not sure how to execute a command issued to both GoPros simultaneously. For reference, I am using two GoPro Hero10s and Windows 10 with Python 3.8.

Thanks!

geande avatar Jan 05 '22 20:01 geande

You'd do:

python .\main.py --verbose --address "XX:XX:XX:XX:XX:XX" "XX:XX:XX:XX:XX:XX" --command "record start"

KonradIT avatar Jan 05 '22 20:01 KonradIT

Thats amazing, thank you. If I am interested in recording for a set amount of time, say 60 seconds, would that also be possible?

geande avatar Jan 05 '22 20:01 geande

You could do a script to fire the "record start", wait 60 seconds and then fire "record stop"

KonradIT avatar Jan 05 '22 20:01 KonradIT

gotchya! that was my intuition. I am thinking of using os.system() for making such sequential commands, is this advisable? I notice that there also seems to be the option to make commands from a file, would this be preferred? I'm assuming that a txt file would be the input for such a task.

geande avatar Jan 05 '22 20:01 geande

Hm I would use a cmd script.

Using os.system() is counterintuitive since you're launch python code from python. Maybe it would suit you to hard code the commands in the actual main.py file.

KonradIT avatar Jan 05 '22 20:01 KonradIT

Hello! How many Hero10s can I control simultaneously at most?

hellolwt avatar Jun 25 '22 06:06 hellolwt

I was able to control 3x Hero10. The limit is your Bluetooth chip firmware.

KonradIT avatar Jun 25 '22 08:06 KonradIT

I see. Thanks for your help!

hellolwt avatar Jun 25 '22 08:06 hellolwt

Hello. I try to test it on Windows10 with Anaconda3( Python 3.8 ), using Hero10s. It successfully works with only one cam connected but gets error below when I trying to connect multi cams. Could you help me with this?

捕获

hellolwt avatar Jun 25 '22 11:06 hellolwt

Hello. I try to test it on Windows10 with Anaconda3( Python 3.8 ), using Hero10s. It successfully works with only one cam connected but gets error below when I trying to connect multi cams. Could you help me with this?

捕获

Seems my problem solved, although I don't know the reason. Now that I can control multi cams, but not quite simultaneously,about one or half a second lag. Any idea how to control them exactly at the same time?

hellolwt avatar Jun 26 '22 11:06 hellolwt

Not really, timing over BLE is complicated. If you need accurate time sync look at GoPro Labs, there's a few tools there to get framerate-level sync across cameras.

KonradIT avatar Jun 26 '22 11:06 KonradIT

Alright, I will check it out. Appreciate that!

hellolwt avatar Jun 26 '22 11:06 hellolwt