views:

1247

answers:

5

I have made nearly 20 PNG screen captures. I wish to glue them into video. Could you recommend a tool?

Better if that would be smooth change from one picture to another, like tween motion in Flash.

Using actual flash is not an option. Because tool must be free and run on linux.

+1  A: 

png2mng.pl As you can guess from extension, it's a Perl script.

vartec
It's very interesting, it really produced mng, but now i don't know how to show it. :) Konqueror does not.
temoto
Hmm ideed interesting, Konqueror from KDE3 shows it. Konqueror from KDE4 does not. It's some bug in Qt4.
vartec
Thanks, vartec, i'll try one from KDE3.
temoto
+2  A: 

Use mplayer's mencoder:

for i in *.png; do for j in `seq 1 20`; do echo $i; done; done > frames.txt
mencoder mf://@frames.txt -mf fps=5:type=png \
  -audiofile audio.mp3 -oac copy \
  -of lavf -ovc lavc \
  -lavcopts vcodec=flv:mbd=2:v4mv:mv0:trell:cbp:last_pred=3:vbitrate=200 \
  -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames \
  -o video.flv
Tometzky
Thank you very much.i_certify... is this a joke?
temoto
No, it isn't. It was required when I used it - without it I got an error from mencoder requesting adding it.
Tometzky
Thanks, i tried it with wierd option i got error, w/o option it produced empty flv. :(
temoto
A: 

You could probably using ffmpeg - I've used its "image2" codec to turn an mpeg into a series of JPEG frames, pretty sure the reverse is possible. If it can't read PNG you can use ImageMagick to convert your PNGs to JPEG first.

Paul Dixon
A: 

Hi,

Video Mach (http://www.gold-software.com/download8598.html) seems to be a good option for you. Although for winows, its a shareware.

-AD

goldenmean
+3  A: 

This worked for me:

  1. Install ffmpeg.
  2. Create your pngs with a continuous number in the file name, e.g. img0001.png, img0002.png, …, …img5467.png.
  3. Then run ffmpeg -qscale 5 -r 20 -b 9600 -i img%04d.png movie.mp4

Thanks to: http://www.miscdebris.net/blog/2008/04/28/create-a-movie-file-from-single-image-files-png-jpegs/

Will