Morten's Blog


The random output of Morten André Steinsland

Stordbase by day

Posted by Morten André on November 9, 2008 at 16:50. In the Music, Video & TV, Python category.
Tags : , , , ,

Same method as the previous time lapse video i made, but now you can actually see things happening.

Time lapse video with Python

Posted by Morten André on November 7, 2008 at 01:35. In the Music, Video & TV, Python category.
Tags : , , , , ,

This is a time lapse video i made using my digital videocamera and Python, taking a picture every 5th second. It is quite boring so i had to add some music, Rob Costlow’s “Not Alone”

This is the Python script i used:

from VideoCapture import Device
from time import sleep

SecondsBetweenFrames = 5
FilePrefix = "bilde_"
DirectoryToStore = "E:\\Basen\\"
Kamera = Device()
FrameNr = 0

while True:
    FrameNr = FrameNr + 1
    Kamera.saveSnapshot(DirectoryToStore + FilePrefix + str(FrameNr) + '.jpg')
    print "Lagret bilde: " + FilePrefix + str(FrameNr) + '.jpg'
    sleep(SecondsBetweenFrames)

* You’ll need the VideoCapture and PIL Python extensions

Commodore 64 music tribute

Posted by Morten André on November 2, 2008 at 17:28. In the Music, Video & TV category.
Tags : , ,

Movie by tr0d

Powered by WordPress
Theme by Morten Andrè Steinsland
60 queries. 0.139 seconds.