This still needs work, but I used a mouse click to execute ffmpeg so that
there is no need to predefine how many frames you wish to use:
import sys
import os
size(500,500)
speed(30)
os.system('mkdir temp')
filename = 'temp/output'
ext = '.png'
filenameext = ''
count = 0
def setup():
global x
x = 10
def draw():
global filenameext, count
global x
x += 10
rect(x,10,10,10)
filenameext = filename + str(count) + ext
snapshot(filenameext)
count += 1
if mousedown:
# '-y' to force overwrite any existing video
file:
os.system('ffmpeg -i -y temp/output%d.png video.avi')
os.system('rm -r temp')
# totem is my media player
:
os.system('totem video.avi')
# quit script:
sys.exit()
Dave Crossland wrote:
>
> Hi,
>
> I'd be very grateful if you can post your own hg tree or the scripts on
> this
> list, so they can be included in the next release :)
>
> Regards, Dave
>
>
--
View this message in context:
http://n2.nabble.com/%281%29Keyboard-interaction-no-longer-working.-%282%29Video-support-request.-tp3051638p3076710.html
Sent from the ShoeBot mailing list archive at Nabble.com.
_______________________________________________
Shoebot-devel mailing list
[email protected]
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net