Skip to content

Instantly share code, notes, and snippets.

@paulmallon
Created May 10, 2020 02:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulmallon/08344d8c7ed235eb0958a051a91fe04f to your computer and use it in GitHub Desktop.
Save paulmallon/08344d8c7ed235eb0958a051a91fe04f to your computer and use it in GitHub Desktop.
gopro bash script
#!/bin/bash
curl "http://10.5.5.9/gp/gpControl/setting/62/2400000"
#stream bitrate
curl "http://10.5.5.9/gp/gpControl/setting/62/1000000"
# 720
curl "http://10.5.5.9/gp/gpControl/setting/64/4"
# Restart
curl "http://10.5.5.9/gp/gpControl/execute?p1=gpStream&a1=proto_v2&c1=restart" -ErrorAction SilentlyContinue;
while /bin/true; do
echo "_GPHD_:0:0:2:0.000000\n" > /dev/udp/10.5.5.9/8554
sleep 1
done &
ffplay -fflags nobuffer -f:v mpegts -probesize 8192 udp://10.5.5.9:8554
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment