View Full Version : automatic video capture

September 27, 2011, 17:30:47
I want to make an animation of Jupiter during some hours. I know how to limit a video sequence to 1.000 pics or so and to insert a number in the file name.

But can I automatically record a video every two minutes or so?



Stefan Geissler
September 28, 2011, 10:24:42

IC Capture itself has not this functionality. But you can implemented it on your own, using the famous and free "Autohotkey" program. It can be downloaded from http://www.autohotkey.com/.
The following script does the job:

; This Autohotkey Script is for IC Capture capturing automatically
; many videos in a timed sequence.

; First create a nice window:
Gui, +AlwaysOnTop +SysMenu +Owner +Resize ; +Owner avoids a taskbar button.
Gui, Add,Text, vWaitlabel, Waiting for IC Capture being on TOP
Gui, Add,Text, vVideoNumber w400,
Gui, Add, Button, gOnStart Disabled, Start
Gui, Add, Button, gOnClose Default, Close
Gui, Show ,, Automatic Video Sequence

; Wait until IC Capture is the active window.
; If the "Start" button is enable, AVI capturing can be
; started by a click on this button.

WinWaitActive, IC Capture,
GuiControl,, Waitlabel, IC Capture found. Running
GuiControl, Enable , Start

Sleep 1000

; Message handler for the close button

; Message handler for the start button
GuiControl, Disable , Start
; Run this loop 20 times. Change this value, if you want to
; less or more videos.
GuiControl,, VideoNumber, Recording No %A_Index%
; Send Control r for starting the AVI Capture twice.
Send ^r^r
; Wait for the recording time in milliseconds.
; If you want to capture 100 frames, which is to be setup in
; IC Capture, then the recording lasts 100 / fps. If the fps
; (frame rate) is 30, then the result is 3,3 seconds, which is
; 3300 millseconds. To be on the safe side, wait 4000 milliseconds.
Sleep 4000

GuiControl,, VideoNumber, Recorded No %A_Index%, waiting for next video start.
; Now wait before starting the next avi. 2 minuts = 120 seconds = 120000 milliseconds.
Sleep 120000
GuiControl,, Waitlabel, Finished
GuiControl,, VideoNumber,
GuiControl, Enable , Start

You may need to change some parameters like some sleep delays and loop count for the number of videos. Configuring IC Capture is done, as you described in your post.

Stefan Geissler
September 28, 2011, 10:29:22
The same script as attachment

September 29, 2011, 15:22:06
Thanks alot, Stefan !

Gonna try this out!

I finished a first version of 30 video sequences (manually) (http://www.oden.de/jupiter.gif). There seems to be a lot of dust, but the chip is clean. Can this be (projected) dust on the barlow?



Stefan Geissler
September 29, 2011, 16:16:21

Nice images in the GIF. I have no idea, where the particles come from. However, you may try a lower frame rate, e.g. 30 instead of 60 fps.

January 14, 2013, 06:05:40
Hi Stefan,

Thanks for your post on using AutoHotkey for automatic video capture.

I have tried to use your script above but the IC Capture program appears to lose focus and does not receive the keystrokes. As far as you know, does this script work on Windows 7 and 8? Thanks for your help!

Stefan Geissler
January 14, 2013, 11:53:16

Sorry, I never tested this in Windows 7 or 8. But you may have a look into the Autohotkey forums about this.