Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2011-01-26 14:28:08
Size: 419
Editor: mar
Comment:
Revision 3 as of 2011-01-27 13:19:21
Size: 463
Editor: mar
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Generating a Rick Roll file = = Generating a rick-roll file =
Line 14: Line 14:
for i in `seq 2 $1`;
do
 rm $i.jpg
done

Generating a rick-roll file

Generating an avi or mov movie from a single picture file is done with the following script:

for i in `seq 2 $1`;
do
        cp 1.jpg $i.jpg
done
mencoder "mf://*.jpg" -mf fps=1 -o test.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=800 
ffmpeg -i test.avi test.mov
for i in `seq 2 $1`;
do
        rm $i.jpg
done

The picture you want to be in the movie has to be called 1.jpg for this script to work.

Generating a rick-roll file (last edited 2011-02-09 14:28:00 by csr)