Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool to glue dozen of PNG into video

Tags:

video

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.

like image 252
temoto Avatar asked Mar 06 '09 11:03

temoto


4 Answers

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/

like image 90
Will Avatar answered Nov 13 '22 10:11

Will


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
like image 31
Tometzky Avatar answered Nov 13 '22 10:11

Tometzky


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

like image 1
vartec Avatar answered Nov 13 '22 09:11

vartec


Although, the question is already answered long time ago, for future reference, it has been asked again in the past and contains a beautiful answer that helped me as well:

How can I script the creation of a movie from a set of images?

like image 1
ilakast Avatar answered Nov 13 '22 10:11

ilakast