Comments (27)
Hi @ivanmkc, use the GoPro App to make sure your camera is up to date. I recently played around with a HERO4 Silver and used the URL you mentioned to get a live feed using FFplay.
from goprowifihack.
Thanks for the quick response @KonradIT. It is brand new and up-to-date.
From the official site (https://gopro.com/update/hero4_session), the Hero 4 Session runs the HERO4 Session v02.00 firmware (March 31, 2016) and the Hero 4 Black\Silver run firmware v03.00.00 (July 30, 2015). Given the 8 month difference in release, I'm not surprised that there are discrepancies between them.
I'd love your help resolving this, but I don't mind helping either if you tell me how I can best contribute.
Thanks,
Ivan
from goprowifihack.
For reference here is the output from: http://10.5.5.9/gp/gpControl
The GET request looks to be as your guide says them to be, but the GoPro4 Session just doesn't react to the command.
hero4SessionReference.txt
from goprowifihack.
@ivanmkc crap I read it as HERO4 Silver, I am aware of this problem as I have a HERO4 Session myself and cannot get to stream. I tried using Charles Proxy but didn't get anything relevant. I have the Session with me now, will see what I can do
from goprowifihack.
@KonradIT Ya I picked the session as its form factor makes it great for mounting on a drone. I think I read that you had interest in drones as well ;)
How do you set up Charles proxy to view the Android traffic? I used Wireshark on my Mac (on promiscuous mode) and couldn't see it. Would love to help.
from goprowifihack.
If your Android phone is rooted, try Termux or Terminal Emulator with tcpdump or mitmdump, that should help. Or decompile the GoPro smarty apk
from goprowifihack.
OK I know what's happening here (I guess). My phone being pity does not let me run tcpdump/mitmdump because of some PIE setting. I used "Packet Capture" app from the Play Store and got some interesting requests. The app is wonderful: no root needed, material design...
Screenshots here:
http://i.imgur.com/VviiGhB.png
http://i.imgur.com/bmLKIRX.png
That is 3 methods of turning the preview ON
from goprowifihack.
Forgot to mention /gp/gpControl/camera/PV/2 gives 500 Internal Error. /camera/PV/2 is used in HERO2 and HERO3 cameras but not in HERO4, I think they just messed up (being GoPro, it does not surprise me at all)
from goprowifihack.
I used the app like you suggested. It shows me what you screenshotted.
So is the answer to send a preview ON request after sending the stream request?
from goprowifihack.
I will need to reproduce everything in the right order later
from goprowifihack.
Ok, let me know when you do and I'll test it out. Thanks!
On Wed, Jul 20, 2016 at 2:50 PM, Konrad Iturbe [email protected]
wrote:
I will need to reproduce everything in the right order later
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#47 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABgzgZow9CVm0eO0_hOkoeteoMrg63Geks5qXm4DgaJpZM4JQ_U6
.
from goprowifihack.
@ivanmkc have you gotten anything? just got home so I'll see if I can get a working stream
from goprowifihack.
I'd take a bet and say that maybe they keep preview alive by using /gp/gpControl/status every second?
from goprowifihack.
GoPro app also sends outdated or bad requests, such as the pairing success and the /camera/PV/2 from HERO3... why?
from goprowifihack.
Ya, I wonder if the outdated requests are actually being used for some
side-effect that keeps the connection alive. I'm bogged down with work this
week but I'll try this out later on in the week.
Ivan
On Sat, Jul 23, 2016 at 7:44 AM, Konrad Iturbe [email protected]
wrote:
GoPro app also sends outdated or bad requests, such as the pairing success
and the /camera/PV/2 from HERO3... why?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#47 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABgzgUkFvSexRO2kdLWhNkRYZyxbvdh2ks5qYf6VgaJpZM4JQ_U6
.
from goprowifihack.
Got the preview working in FFplay after using the GoPro App on mobile. They still use udp 8554, although I didn't check any variable status in /gp/gpControl/status
All its missing is a preview ON url
from goprowifihack.
Ah I should have mentioned that was what I was doing to get it working in
the meantime.
Seems like the stream is working fine as you say.
On Mon, Jul 25, 2016 at 5:51 AM, Konrad Iturbe [email protected]
wrote:
Got the preview working in FFplay after using the GoPro App on mobile.
They still use udp 8554, although I didn't check any variable status in
/gp/gpControl/statusAll its missing is a preview ON url
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#47 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABgzgfESMCNrVLbOTKfrCaC_nvdYrNuPks5qZIcugaJpZM4JQ_U6
.
from goprowifihack.
Hi guys, I am trying to get my Session to stream to an iOS app. I am able to stream for now but encounters some difficulties for it to stream easily. I am not able to stream immediately after turning the wifi of GoPro on but after I tried visiting gp/gpControl/status for several times it can start to stream. I don't know if this is the magic method to allow it to start streaming. Also, the python script I used sends the "GPHD:0:0:2:0.00000" command to keep it alive. Can I do it also on iOS? Thank you.
from goprowifihack.
gp/gpControl/status for several times
I had my doubts regarding this but since you got it working I'll update the repo accordingly.
The python sends a magic packet with that command, same as GoPro App, you need to find a library for ObjC that does that, such as this one (Not tested with Hero4 Session!)
I'll confirm later on that the stream works with Hero4 Session on FFplay
from goprowifihack.
Your doc mentioned that the magic packet is as:
send a magic packet (WoL) with these parameters: MAC ADDRESS OF THE CAMERA, 10.5.5.9 as IP ADDRESS, Subnet Mask 255.255.255.0, Port 9.
But the python script sent "GPHD:0:0:2:0.00000", are they the same? Is this command only used for keeping the streaming alive and I need to send a magic packet first for it to start streaming?
from goprowifihack.
@chengsam No they are not the same, I think that keeps the stream alive where as the magic packet turns on the camera
from goprowifihack.
OK, I can stream the preview to my app now. However, the delay is ~5s. Just figuring out how to reduce the latency.
from goprowifihack.
@chengsam didn't have time yesterday I was travelling, did you send /gp/gpControl/status GET request to start the stream? Are you on 2.00?
from goprowifihack.
Yes, I sent /gp/gpControl/status several times until the status 31 of the camera and it's not 0 to start the stream. But I'm not sure if it works all the time. And my version is 2.00.
from goprowifihack.
Can confirm it works with pinging /gp/gpControl/status 5 times. I only neeeded to HTTP GET the URL 5 times at the start and then run the stream on FFplay. I used this script and it worked. I'll push a PR to add HERO4 Session support and update the docs on this repo accordingly.
Proof: http://imgur.com/a/PHtoi
Closing thread.
from goprowifihack.
I found that sometimes it requires me to ping more than 5 times to make status 31 > 0. So in my implementation, i check for the count of status 31 and start the stream when it's not 0.
from goprowifihack.
@chengsam I'll write it then, thanks!
from goprowifihack.
Related Issues (20)
- Command for putting GoPro MAX into "360 Video" mode HOT 2
- GoPro Hero 5 - Udp client for Android
- Howot
- Please add exposure lock to gopro7
- live streaming of Gopro Max HOT 2
- Any example of wifi connections process?
- Stream hangs after 24.75 seconds on HERO5? HOT 2
- Hero5black - suddenly Wifi stopped broadcasting
- How to download .GPR (raw) files?
- GoPro MAX: Exiting pairing mode with BLE HOT 1
- Error connecting to http://10.5.5.9/gp/gpControl/
- IS 360 content supported by the API for MAX
- GoPro stream latency on android app HOT 4
- Connecting to GoPro WiFi
- Wifi streaming with GoPro Hero 3+ steady problems / disconnects HOT 3
- MAX live preview unreliable audio stream HOT 1
- Resolution for webcam mode for HERO8 black
- HERO 7 Silver Not Responding
- Hero8 not delivering on port 8554 HOT 1
- Is there a way to change GoPro MAX to Timelapse (not Timewarp) remotely?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goprowifihack.