KonradIT / gopro-py-api

Unofficial GoPro API Library for Python - connect to GoPro via WiFi.
MIT License
1.4k stars 212 forks source link

Recording Timelapse Video #67

Closed var316 closed 5 years ago

var316 commented 6 years ago

Hi Konrad,

I'm trying to record a timelapse video but something seems not right. I first set the Timelapse Video mode through this: 'gopro = GoProCamera.GoPro(constants.gpcontrol) gopro.mode(constants.Mode.VideoMode, constants.Mode.SubMode.Video.TimeLapseVideo) gopro.gpControlSet(constants.Video.VIDEO_TIMELAPSE_INTERVAL, constants.Video.VideoTimeLapseInterval.IHalf1)'

I tried using shoot_video after this but I think it sets to video mode. After that I tried gopro.shutter(constants.start).

Can you please help me with this? Also, how to set the timelapse video duration?

Thanks.

KonradIT commented 6 years ago

Hi,

It should be:

gopro = GoProCamera.GoPro(constants.gpcontrol)
gopro.mode(constants.Mode.VideoMode, constants.Mode.SubMode.Video.TimeLapseVideo), 
gopro.gpControlSet(constants.Video.VIDEO_TIMELAPSE_INTERVAL, constants.Video.VideoTimeLapseInterval.IHalf1)
gopro.shutter(constants.start)
var316 commented 5 years ago

I had these commands as well but was not working before. Works now though, thanks!

var316 commented 5 years ago

Hi Konrad,

Can you please let me know what do the VideoTimeLapseInterval values indicate? IHalf1 = 1 frame recorded every 0.5 sec I1 = 1 frame/1 sec I2 = 1 frame/2 sec I5 = 1 frame/5 sec Is that correct?

KonradIT commented 5 years ago

Yes.