From: marc d. <mde...@ya...> - 2008-04-22 20:19:46
|
I've gotten decent results with Snagit and Camtasia on Windows XP. Snagit can make videos as well as screenshots vis...@li... wrote: Send Visualpython-users mailing list submissions to vis...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/visualpython-users or, via email, send a message with subject or body 'help' to vis...@li... You can reach the person managing the list at vis...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Visualpython-users digest..." Today's Topics: 1. Re: Making a Movie in Visual Python (Erik Thompson) 2. Re: Making a Movie in Visual Python (William C. Ward) 3. Re: Making a Movie in Visual Python (Lorenzo Isella) 4. Re: Making a Movie in Visual Python (Fr?d?ric) 5. new web page (Symion) 6. Re: new web page (Fr?d?ric) 7. Re: Making a Movie in Visual Python (William C. Ward) 8. install/compile error (Nathan Moore) ---------------------------------------------------------------------- Message: 1 Date: Wed, 16 Apr 2008 17:56:22 -0700 From: "Erik Thompson" Subject: Re: [Visualpython-users] Making a Movie in Visual Python To: "Lorenzo Isella" Cc: vis...@li... Message-ID: <58d...@ma...> Content-Type: text/plain; charset="iso-8859-1" > > Is the module ImageGrab available for Debian (or for linux in general)? > Unfortunately, ImageGrab appears to only work on Windows. In the source code of ImageGrab.py it has the comments: # (New in 1.1.3) The ImageGrab module can be used to copy > # the contents of the screen to a PIL image memory. > # > # The current version works on Windows only. -Erik -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Wed, 16 Apr 2008 22:20:01 -0600 (MDT) From: "William C. Ward" Subject: Re: [Visualpython-users] Making a Movie in Visual Python To: vis...@li... Message-ID: <573...@we...> Content-Type: text/plain;charset=iso-8859-1 Hi Lornezo, Your best bet might be to forgo a Python-based solution and use something like ffmpeg to encode screen activity directly while the window is active. (ffmpeg is an open source command line encoding application that can also do video capture). You should be able to find a number of references, for example: http://ubuntu.wordpress.com/2006/06/08/how-to-create-a-screencast-in-ubuntu/ Good luck! Bill Ward > Dear All, > Quite some time ago I asked some questions abut how to make a movie in > Visual Python. > Among the various answers I got, I was trying this suggestion: > > > On 14/01/2008, Kadir Haldenbilen wrote: > > > > Lorenzo Isella wrote: > > > > > I managed to get some decent animations on my laptop (running Debian > > > testing); now my question is how to get at least a set of png (or any > > > other decent format; pdf, eps, jpg etc...) files with the "snapshots" > > > of my system. > > > > I can answer your question for Windows environment. Same or similar > solution > > MAY or > > MAY NOT apply for Linux, I have no experience in Linux environment. > > > > First you need to install Python Image Library, PIL, if you have not > done so > > already. You may be using it already, if you are using TEXTURE feature > of > > the recent Beta versions of VPython. > > > > Then in your source code you need to add some lines, like the > followings: > > > > import Image > > import ImageGrab > > ... > > > > Your animation code goes here > > > > ... > > > > while looping: > > > > im = > > ImageGrab.grab((24,30,ImageWidth-4,ImageHeight-4)) > > fn = "Cat"+str(pn)+".png" > > im.save(fn) > > > > fn is the filename in Windows environment. > > > > IF THIS SYSTEM WORKS in LINUX, then someting similar to that of > filename > > should be sufficient. > > ImageGrab needs the display location (upper-left corner) and display > > sizedefined to it, so it picks up > > the image from the screen for you. > > > > You need to set up some sort of a counter in the loop like the > str(pn), to > > get a unique > > file name for each snapshot. > > > > Hope it works... > > > > Kadir > > > > > > ________________________________ > > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try > it > > now. > > > > Now, unfortunately I do not think this works for linux. Consider the > small example given below: > > > #! /usr/bin/env python > > import scipy as s > import numpy as n > import pylab as p > > import visual as v > > > import Image > import ImageGrab > > x_list=s.arange(10) > y_list=s.zeros(10) > y_list[:]=1. > z_list=y_list > > > > box_size=100. > > #v.scene = v.display(title="System Snapshot", width=box_size, > height=box_size, x=0, y=0, > # range=box_size, center=(0.,0.,0.)) > > my_rad=1. > > particles=[v.sphere(pos=loc,radius=my_rad,color=v.color.blue)\ > for loc in zip(x_list,y_list,z_list)] > > > im = ImageGrab.grab((24,30,ImageWidth-4,ImageHeight-4)) > fn = "Cat"+str(pn)+".png" > im.save(fn) > > > If I run it on my machine (Debian testing) then I got the following > error message: > > Traceback (most recent call last): > File "", line 11, in ? > File "/usr/lib/python2.4/site-packages/PIL/ImageGrab.py", line 34, in ? > import _grabscreen > ImportError: No module named _grabscreen > > Is the module ImageGrab available for Debian (or for linux in general)? > Or does anyone know of a workaround for this? > Many thanks > > Lorenzo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://physics.syr.edu/~salgado/software/vpython/EMWave.py > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > ------------------------------ Message: 3 Date: Thu, 17 Apr 2008 14:53:22 +0200 From: Lorenzo Isella Subject: Re: [Visualpython-users] Making a Movie in Visual Python To: Erik Thompson Cc: Lorenzo Isella , vis...@li... Message-ID: <480...@gm...> Content-Type: text/plain; charset=ISO-8859-1; format=flowed I see. So I think I am back to one of the old suggestions I was given, namely to use the povray plugin. Now, I think this is quite advanced for me. I got hold of the script corresponding to: http://www.gbiloba.org/download/SNP-definitif-640x480.avi Which also was recommended to me a long time ago. It is quite advanced and I cannot run it on my machine (again, I installed pymad but the system [and myself] cannot find some missing modules). However, maybe I would need something simpler to start from. I installed povray for Debian, but now what I would need is really some simple way to invoke it from Python to save (and then convert) a visual Python scene. Cheers Lorenzo Erik Thompson wrote: > > Is the module ImageGrab available for Debian (or for linux in > general)? > > > Unfortunately, ImageGrab appears to only work on Windows. In the > source code of ImageGrab.py it has the comments: > > # (New in 1.1.3) The ImageGrab module can be used to copy > # the contents of the screen to a PIL image memory. > # > # The current version works on Windows only. > > > -Erik ------------------------------ Message: 4 Date: Thu, 17 Apr 2008 17:10:08 +0200 (CEST) From: Fr?d?ric Subject: Re: [Visualpython-users] Making a Movie in Visual Python To: lor...@gm...,mrl...@gm... Cc: vis...@li... Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Le 17/4/2008, "Lorenzo Isella" a ?crit: >I see. So I think I am back to one of the old suggestions I was given, >namely to use the povray plugin. Now, I think this is quite advanced for me. >I got hold of the script corresponding to: >http://www.gbiloba.org/download/SNP-definitif-640x480.avi >Which also was recommended to me a long time ago. >It is quite advanced and I cannot run it on my machine (again, I >installed pymad but the system [and myself] cannot find some missing >modules). >However, maybe I would need something simpler to start from. >I installed povray for Debian, but now what I would need is really some >simple way to invoke it from Python to save (and then convert) a visual >Python scene. I wrote the script for a student, a few years ago. I admit there are a lot of stuff in it, not directly related to your problem (the annoying thing is to program the different trajectories and camera positions with a good timing to get a smooth movie). In fact, you only need to use povexport() function to export a VPython scene to a pov script, then run povray on it. If you do this for several pictures, then you just display them at 15-20 fps, and you have your movie ;) I will try to extract a little example from the big script... ------------------------------ Message: 5 Date: Fri, 18 Apr 2008 16:46:34 +0930 From: Symion Subject: [Visualpython-users] new web page To: vis...@li... Message-ID: <480...@pr...> Content-Type: text/plain; charset="us-ascii" An HTML attachment was scrubbed... ------------------------------ Message: 6 Date: Fri, 18 Apr 2008 10:07:04 +0200 (CEST) From: Fr?d?ric Subject: Re: [Visualpython-users] new web page To: vis...@li... Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Le 18/4/2008, "Symion" a ?crit: >Just uploaded a web page with >links to a few astronomy type python programs. > >http://home.primusonline.com.au/knoware/python/ > >I plan to update this site regularly. Very nice! ------------------------------ Message: 7 Date: Fri, 18 Apr 2008 10:39:56 -0600 (MDT) From: "William C. Ward" Subject: Re: [Visualpython-users] Making a Movie in Visual Python To: "Jaap Spies" Cc: vis...@li... Message-ID: <281...@we...> Content-Type: text/plain;charset=iso-8859-1 Jaap, I'm not sure what you mean by "out of date"...the link opens fine for me again today when I retried it... The information, though, is almost two years old. If we dig a little deeper, I see that this method required patching ffmpeg to create an X11 grabber. Now, as you might expect, grabbing from X11 is a native part of the latest releases, so just go straight to the documentation for how you might pull it off: http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html#SEC4 Is this useful? (I have just started to work with ffmpeg for other purposes, but I'm not a frequent Linux user, so my insights are limited). Bill > William C. Ward wrote: >> Hi Lornezo, >> >> Your best bet might be to forgo a Python-based solution and use >> something >> like ffmpeg to encode screen activity directly while the window is >> active. >> (ffmpeg is an open source command line encoding application that can >> also >> do video capture). You should be able to find a number of references, >> for >> example: >> >> http://ubuntu.wordpress.com/2006/06/08/how-to-create-a-screencast-in-ubuntu/ >> >> Good luck! >> >> Bill Ward >> > > This link seems to be out of date! The idea is promising but an actual > link > will be useful. > > Jaap > > ------------------------------ Message: 8 Date: Tue, 22 Apr 2008 10:39:05 -0500 From: "Nathan Moore" Subject: [Visualpython-users] install/compile error To: vis...@li... Message-ID: <600...@ma...> Content-Type: text/plain; charset="iso-8859-1" g++: /usr/lib/libgtkgl.so: No such file or directory I'm trying to install visual on a i386 box that's running scientific linux, v5.1. This version of linux is basically Red Hat Enterprise. I've already tried the fedora 7 rpms and they don't work (a similar failure) a search for the library cited above yields, [root@pilgrim build]# locate libgtkgl.so /root/gtkglarea-1.2.3/gtkgl/.libs/libgtkgl.so /root/gtkglarea-1.2.3/gtkgl/.libs/libgtkgl.so.5 /root/gtkglarea-1.2.3/gtkgl/.libs/libgtkgl.so.5.0.0 /usr/lib/libgtkgl.so.5 /usr/lib/libgtkgl.so.5.0.0 /usr/lib/debug/usr/lib/libgtkgl.so.5.0.0.debug /usr/local/lib/libgtkgl.so /usr/local/lib/libgtkgl.so.5 /usr/local/lib/libgtkgl.so.5.0.0 How do I specify one of these library locations? to be specific, when I try the following configure command, things don't work: ../visual-3.2.9/configure -prefix=/usr/local/ then, make fails with g++ -shared -nostdlib /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crti.o /usr/lib/gcc/i386-redhat-linux/4.1.2/crtbeginS.o .libs/arrow.o .libs/axial.o .libs/box.o .libs/color.o .libs/cone.o .libs/convex.o .libs/curve.o .libs/cvisualmodule.o .libs/cylinder.o .libs/display.o .libs/displaylist.o .libs/ellipsoid.o .libs/exceptions.o .libs/num_util.o .libs/scalar_array.o .libs/vector_array.o .libs/slice.o .libs/sphmodel.o .libs/faceset.o .libs/frame.o .libs/gldevice.o .libs/kbobject.o .libs/light.o .libs/label.o .libs/mouseobject.o .libs/prim.o .libs/vector.o .libs/pyramid.o .libs/rate.o .libs/ring.o .libs/sphere.o .libs/tmatrix.o .libs/vcache.o .libs/cylmodel.o .libs/num_util_impl_numeric.o .libs/num_util_impl_numarray.o .libs/glcontext.o .libs/platlinux.o .libs/xgl.o -lgmodule -ldl -lgtk -lgdk -lXi -lXext -lX11 /usr/lib/libgtkgl.so /usr/lib/libGL.so -lGLU -lgthread -lpthread -lglib -lboost_python -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i386-redhat-linux/4.1.2/crtendS.o /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crtn.o -Wl,--version-script=../../visual-3.2.9/src/linux-symbols.map -Wl,-soname -Wl,cvisualmodule.so.1 -o .libs/cvisualmodule.so.1.0.0 g++: /usr/lib/libgtkgl.so: No such file or directory Any ideas? Nathan Moore -- - - - - - - - - - - - - - - - - - - - - - Nathan Moore Assistant Professor, Physics Winona State University AIM: nmoorewsu - - - - - - - - - - - - - - - - - - - - - -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ------------------------------ _______________________________________________ Visualpython-users mailing list Vis...@li... https://lists.sourceforge.net/lists/listinfo/visualpython-users End of Visualpython-users Digest, Vol 23, Issue 3 ************************************************* Marc Desmarais 5916 Bixby Village Dr. #95 Long Beach, CA, 90803 (562) 712 8682 cell --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. |