KonradIT / goprowifihack

Unofficial GoPro WiFi API Documentation - HTTP GET requests for commands, status, livestreaming and media query.
Apache License 2.0
2.11k stars 338 forks source link

Stream hangs after 24.75 seconds on HERO5? #276

Closed Hauteknits closed 1 year ago

Hauteknits commented 1 year ago

Problem: Using a GoPro Hero 5 black. When setting up a livestream using the instructions provided and bitrate set to 1.0 and 2.0 Mbps, the stream will hang at roughly 24.75 seconds Describe your problem as accurately as possible, include key details that help resolve your issue.

Details: Using latest ffmpeg release w/ command ffplay -fflags nobuffer -f:v mpegts -probesize 8192 udp://10.5.5.9:8554 or ffplay -fflags nobuffer udp://10.5.5.9:8554. Tested on both Win10 and Arch. First time attempting to livestream so very open to suggestions. Site in chrome is http://10.5.5.9/gp/gpControl/execute?p1=gpStream&a1=proto_v2&c1=restart

KonradIT commented 1 year ago

Make sure you're sending the Keep Alive packets, check out how it's done: http://github.com/konradit/goprostream

Hauteknits commented 1 year ago

I was not using keep alive packets lol. I ended up looking through your python script, saw the keepalive, and came back here to close the issue lol 😂. Thanks for the help man!