You are not logged in.
Pages: 1
I need to generate a movie from a number of plots generated with Gnuplot. Unfortunately, MPEG codecs turned out to be totally inappropriate for generating movies out of pictures containing single pixels or pixel-wide lines as main actors (I usually use something like "ffmpeg -i %d.png -y out.mp4" for more colorful and "filled out" visualizations and it works fine). The bitrate has to be set to such a high value that the resulting movie is several times larger than the input PNGs (which are lossless, of course). By the way, I don't need any color at all, 1-bit B/W is fine.
Ideally, the resulting movie should be playable by other people without much effort. I have tried to generate MNG animations but couldn't even get them to play myself (mplayer won't play them and ImageMagick fatally tries to load all images at once into memory). Someone suggested QuickTime movies to me, but I couldn't get mencoder to make one for me (although "mencoder -ovc help" shows "qtvideo"). SWF is the only working option I came up with, but it is not so ideal for me, because I need to open a browser to watch them (not so good for presentations, for example).
I would be immensely grateful for any working suggestions...
Offline
Maybe animated GIF is another option.
Offline
Yes, certainly, but they don't work for me, probably out of the same reason as MNGs fail. The resulting GIF has appr. 3.5 MB and won't play neither with ImageMagick nor in Opera. The computer seems to run out of memory -- it starts swapping on the harddisk. My guess is that this is because it gets decompressed as a whole before being played. I have a total of 812 frames with a resolution of 600x600 pixels. A quick calculation shows me that this amounts to 36.5 MB if each pixel allocates 1 bit (which would not be a big problem for most computers today) and 292 MB if each pixel allocates 1 byte (which is really a lot). So, for lengthy animations with lots of frames, animated GIFs seem to be inappropriate also. :-(
Offline
Maybe you can use LaTeX(!), with the beamer package. Export all your figures as pdf files. 0.pdf, 1.pdf, and so one. Vector graphics, even better than png files. Then use code like this. This should at least produce a format usable for presentations. One drawback is that not many pdf-readers support this.
OPS: markup stripped -> look here
Offline
Thanks for this interesting suggestion, I will try this sometime. However, I doubt if this is really efficient for 800+ frames. And there's no way to control the framerate, is there?
I use latex-beamer for presentations anyway. Since xpdf does not show embedded movies (yet?), I usually use mplayer as an external viewer for multimedia content. For this purpose, I could also live with 25 MB MPEG files. I just thought there must be something better, something as convenient as an MPEG (just a single file, playable on many computers without effort, easily controllable during playback (stopping, advancing frame-by-frame)) but with efficient compression of "non-photographic" content...
Offline
Did you generate the gif animations with gifsicle? Options such as --optimize and --colors 2 could greatly reduce the file size.
I have played relatively large gif animations with gifview -a (comes with the gifsicle package).
Offline
Had to try it myselves Worked fine using 813 different pdf's(the same one, but renamed 813 times), file size stoped at 14mb.
http://nedrebo.org/arch/movie.tex
http://nedrebo.org/arch/movie.pdf
Thanks for this interesting suggestion, I will try this sometime. However, I doubt if this is really efficient for 800+ frames. And there's no way to control the framerate, is there?
I use latex-beamer for presentations anyway. Since xpdf does not show embedded movies (yet?), I usually use mplayer as an external viewer for multimedia content. For this purpose, I could also live with 25 MB MPEG files. I just thought there must be something better, something as convenient as an MPEG (just a single file, playable on many computers without effort, easily controllable during playback (stopping, advancing frame-by-frame)) but with efficient compression of "non-photographic" content...
Offline
Did you generate the gif animations with gifsicle? Options such as --optimize and --colors 2 could greatly reduce the file size.
I have played relatively large gif animations with gifview -a (comes with the gifsicle package).
Yes, I created them with gifsicle. Didn't know about gifview, though. It seems to be the only application that can play these large GIF animations, everything else runs out of memory (and I only have 512 MB...).
Offline
Had to try it myselves Worked fine using 813 different pdf's(the same one, but renamed 813 times), file size stoped at 14mb.
http://nedrebo.org/arch/movie.tex
http://nedrebo.org/arch/movie.pdf
Well, it doesn't work in xpdf the way it's probably supposed to, but I can see the animation if I stay on the spacebar...
Offline
Works in acroread.
Offline
Offline
Just to see your masterpieces, I did "pacman -S acroread" to download the 36.3 MB heavy Acrobat Reader. ;-)
Well, it does work, sort of, but what if you wanted it to rotate a bit faster and more fluently?
Offline
I beleive that animate only shows each frame "as short as possible" ie. the speed depends on the computer, so this may not be a good solution. Only a thing that came to my mind. BTW this was fun : new animation dynamic sinus-plot
Offline
Is this something that would help?
Offline
Is this something that would help?
No, because creating the stills that make up the movie is not the issue. The point is rather the movie format (as MPEG, though yielding excellent results elsewhere, is fairly inefficient for this kind of input data) and how to generate it using Linux software.
Offline
What about putting all the plots in a directory and using some image viewer app to slideshow them with a given speed?
Offline
What about putting all the plots in a directory and using some image viewer app to slideshow them with a given speed?
That is possible, I have already tried it. However, I would rather have one file that I could e.g. send to someone else, put on the web, use for presentations, etc.
To put things straight, I don't have a real problem in the sense that I cannot make something work. And the particular plots which I wanted to animate are not that important either. I only wanted to know if something exists which is better suited for simple black&white plots than MPEG codecs, as I was pretty shocked about their poor performance at first (although on second thought it was clear why).
Offline
How about a mgn-file: http://nedrebo.org/arch/movie.mng
Offline
How about a mgn-file: http://nedrebo.org/arch/movie.mng
I think that's been mentioned
Offline
lessthanjake wrote:How about a mgn-file: http://nedrebo.org/arch/movie.mng
I think that's been mentioned
Missed it, but it plays fine om my pc using showimg from aur, and its supposed to play on Windows using the brilliant all eating irfanview.
Offline
iBertus wrote:Is this something that would help?
No, because creating the stills that make up the movie is not the issue. The point is rather the movie format (as MPEG, though yielding excellent results elsewhere, is fairly inefficient for this kind of input data) and how to generate it using Linux software.
I wasn't referring to the creation of stills, but rather the use of .ps output from gnuplot and the imagemagick conver tool to make them into an animated gif.
Offline
I wasn't referring to the creation of stills, but rather the use of .ps output from gnuplot and the imagemagick conver tool to make them into an animated gif.
Isn't any static image, even if it's encoded in the Postscript language, a still? In other words, what advantage is the use of a vector graphic format like PS as input to ImageMagick supposed to have over what I have mentioned to have tried already?
As a matter of fact, unlike gifsicle, imagemagick fails for me to make (and play) a huge animated GIF because it requires too much memory.
Offline
jaboua wrote:lessthanjake wrote:How about a mgn-file: http://nedrebo.org/arch/movie.mng
I think that's been mentioned
Missed it, but it plays fine om my pc using showimg from aur, and its supposed to play on Windows using the brilliant all eating irfanview.
A KDE application, ugh! :?
I couldn't yet find any method to play a large MNG. Qiv and gqview don't recognize it and ImageMagick's "animate" runs out of memory. The support for the animated GIF's successor seems to be really poor.
Just curious: what do you use to generate MNGs?
Offline
I used imagemagick.
Offline
Pages: 1