kashimAstro / ofxGoXtreme

Hacked Video Camera GoXtreme Wifi Control PTP/RTSP/FTP
15 stars 4 forks source link

hero5 trigger slow motion capture #1

Open stephanschulz opened 6 years ago

stephanschulz commented 6 years ago

hey.

your add-on looks great. I was wondering what I would need to do to trigger a slow motion capture via the my app? I guess your current code will then allow me to download all the images, so that they can be played back. right?

thanks for your advice.

kashimAstro commented 6 years ago

Hi @stephanschulz,

This addon has only been tested with goxtreme camera, and the PTP interface is just a wrapping of the gphoto2 program.

the addon basically provides 3 features (if the camera foresees it) :

RTSP (low quality image realtime) FTP (donwload and upload file) PTP (https://en.wikipedia.org/wiki/Picture_Transfer_Protocol)

the PTP protocol is fundamental if you want to make the best use of the camera functions

it seems that HERO5 supports PTP: https://gopro.com/help/articles/Question_Answer/Do-GoPro-Cameras-Support-PTP-Protocol

to check what features are available on your camera you can make a nmap to see which services are active and on which ports.

nmap -p 1-50000 ip

doc gphoto2: http://gphoto.org/doc/

support camera gphoto2: http://gphoto.org/proj/libgphoto2/support.php (HERO5 ok)

here classe PTP (tested only on goextreme): https://github.com/kashimAstro/ofxGoXtreme/blob/master/src/ptp.h

here example PTP (tested only on goextreme): https://github.com/kashimAstro/ofxGoXtreme/blob/master/example-ptp/src/ofApp.cpp

kashimAstro commented 6 years ago

try to look: https://github.com/KonradIT/goprowifihack https://github.com/KonradIT/gopro-py-api