Connec to to Go Pro Live Preview Headless
Hey all, I'm working on a project where I can live stream my bike rides with a ton of information using a GoPro Hero 8. I did a test yesterday and it half worked. Some of my calculations need checking I think for distance, but the biggest issue I had was the GoPro would just randomly stop sending data to twitch. It wouldn't shut down, it wasn't warm to the touch, I had plenty of battery and space on my card, it would just quit!
To bypass this issue, I was thinking of connecting directly to the live preview of my go pro and was hoping for a sanity check.
Here's my thought process.
I have a raspberry pi zero W running Raspian Lite (that is, it's headless) connected to my home's VPN by connecting the Pi's wireless to my phone's hotspot (2.4 GHz). I first pair my GoPro with My Pi by issuing the following commands:
So far so good. I am now connected to my GoPro and can activate the GoPro's wireless with the following commands
At the point I use the usb port to connect a second wifi adapter and have it configured to automatically connect to the GoPro's wireless.
All this I've done with no issues. This is the tricky bit.
The Go Pro has a live preview that can be accessed at the address "udp://10.5.5.9:8554", though you might need to do an HTTTP get to the url "http://10.5.5.9/gp/gpControl/execute?p1 ... c1=restart" first. But my question is, is it possible for a computer on my home network to get to that URL?
In theory if I bridge the two wireless devices and then set up a route on my home router that tells it network 10.5.5.0 is reachable on the VPN, should I be able to reach GoPro at this point or am I talking nonsense?
The ultimate goal is to have a steady connection to my GoPro's video feed that automatically reconnects in the event the network is lost. If anyone knows of a better way, I am all ears.
To bypass this issue, I was thinking of connecting directly to the live preview of my go pro and was hoping for a sanity check.
Here's my thought process.
I have a raspberry pi zero W running Raspian Lite (that is, it's headless) connected to my home's VPN by connecting the Pi's wireless to my phone's hotspot (2.4 GHz). I first pair my GoPro with My Pi by issuing the following commands:
Code: Select all
sudo bluetoothctl
scan on
(Find the entry that says "Device [MAC address] Name: GoPro ####" and copy this mac address)
trust [MAC address]
pair [MAC address]
(enter yes when prompted to "accept pairing")
connect [MAC address]
(Confirm it returns "connection successful")
disconnect
Code: Select all
sudo gattool -t random -b [MAC address] -I
(Then once it connects)
char-write-req 2f 03170101
(To turn on Wifi)
char-write-req 2f 03170100
(To turn off Wifi)
All this I've done with no issues. This is the tricky bit.
The Go Pro has a live preview that can be accessed at the address "udp://10.5.5.9:8554", though you might need to do an HTTTP get to the url "http://10.5.5.9/gp/gpControl/execute?p1 ... c1=restart" first. But my question is, is it possible for a computer on my home network to get to that URL?
In theory if I bridge the two wireless devices and then set up a route on my home router that tells it network 10.5.5.0 is reachable on the VPN, should I be able to reach GoPro at this point or am I talking nonsense?
The ultimate goal is to have a steady connection to my GoPro's video feed that automatically reconnects in the event the network is lost. If anyone knows of a better way, I am all ears.
- aBUGSworstnightmare
- Posts: 13432
- Joined: Tue Jun 30, 2015 1:35 pm
Return to "General discussion"
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Media centres
- Gaming
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion