gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz gfx/libutil/saveanim.py gzz/modules/pp/demo...


From: Janne V. Kujala
Subject: [Gzz-commits] gzz gfx/libutil/saveanim.py gzz/modules/pp/demo...
Date: Sun, 01 Dec 2002 08:39:51 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Janne V. Kujala <address@hidden>        02/12/01 08:39:51

Modified files:
        gfx/libutil    : saveanim.py 
        gzz/modules/pp : demotest.py 

Log message:
        Anim code; Note: removed mencoder absolute path

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libutil/saveanim.py.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/modules/pp/demotest.py.diff?tr1=1.25&tr2=1.26&r1=text&r2=text

Patches:
Index: gzz/gfx/libutil/saveanim.py
diff -u gzz/gfx/libutil/saveanim.py:1.4 gzz/gfx/libutil/saveanim.py:1.5
--- gzz/gfx/libutil/saveanim.py:1.4     Sun Nov 17 06:04:52 2002
+++ gzz/gfx/libutil/saveanim.py Sun Dec  1 08:39:51 2002
@@ -18,7 +18,9 @@
        saveframe(filebase + "%03d"%frame + ".jpg", win, **args)
 
 def encodefilm(globpat, outfilm):
-    mencoder = "/BIG/MPlayer-0.90pre8/mencoder"
+    #mencoder = "/BIG/MPlayer-0.90pre8/mencoder"
+    #Please install mplayer, there *is* debian/rules script in mplayer CVS
+    mencoder = "mencoder"
     cmd = "%(mencoder)s %(globpat)s -lavcopts vcodec=mpeg4 -mf on:fps=25 -ovc 
lavc -o %(outfilm)s" % locals()
     print cmd
     os.system(cmd)
Index: gzz/gzz/modules/pp/demotest.py
diff -u gzz/gzz/modules/pp/demotest.py:1.25 gzz/gzz/modules/pp/demotest.py:1.26
--- gzz/gzz/modules/pp/demotest.py:1.25 Sun Dec  1 05:10:14 2002
+++ gzz/gzz/modules/pp/demotest.py      Sun Dec  1 08:39:51 2002
@@ -238,11 +238,13 @@
 
 def makeScreenshots():
     ps = PPView2Scene()
-    #w.setLocation(0,0,1400,1000)
-    
-    r(ps, "shots/pp1.png")
-    ps.ppv.zoom = 2
-    r(ps, "shots/pp2.png")
+    #w.setLocation(0,0,640,480)
+
+    for i in range(0,24):
+        ps.ppv.zoom = 1 + i * .05
+        r(ps, "tmpfilm/pp%03i.jpg" % i)
+
+    saveanim.encodefilm("tmpfilm/pp\\*.jpg", "ppfilm.avi")
 
 def globalkey(k):
     if k == "Print":




reply via email to

[Prev in Thread] Current Thread [Next in Thread]