On Saturday, January 19, 2008 at 17:32:12 (+0100) Torquil Macdonald Sørensen writes: > Hello, I would like to generate a movie of a series of plots using PLPlot > and > mencoder on Linux without using intermediate JPG-files. I have made a > FIFO-file "file.mjpeg" using mkfifo. The following commands works to > generate > a movie file if I start with a set of JPG-files. > > mencoder file.mjpeg -demuxer lavf -lavfdopts format=mjpeg \ > -ovc lavc -o test.avi > > and then > > cat *.jpg > file.mjpeg > > So the question is if it is possible to make plplot behave exactly as "cat > *.jpg > file.mjpeg"? I have tried some different methods, using pgbop(), > pgeop(), pgclear() and pgadv(0), but seem to end up with a movie consisting > of only one frame. Is it possible to make plplot write individual JPG-files > to the file.mjpeg FIFO one after the other, just as the command "cat *.jpg > > file.mjpeg"? I tried using pleop(), plsfnam() and plbop() for each iteration > of the ploting, with the same filename every time, but then I got a > segmentation fault.
I think you're making it harder than it needs to be. I would save each plot as an individual file then do your manipulation to put it in the desired movie format when the program is done. One way is to use the file familying capability for this, setting the family file size to a small number to guarantee only one plot per file. I used this technique to make animations back in the early 90's so I know it's possible. :) An alternate way would be to construct a save-as facility similar to what the TK plframe widget has, to save the desired plots on-demand. -- Maurice LeBrun ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plplot-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-general
