[Cialug] ImageMagick and animations?

Dave Weis djweis at internetsolver.com
Thu May 3 12:52:09 CDT 2007


On Thu, 3 May 2007, Tom Poe wrote:
> Dave Weis wrote:
>> On Wed, 2 May 2007, Tom Poe wrote:
>>> Here's one command to try:
>>> bring up terminal, and change directories to have the command work in the 
>>> present directory containing the image files, a sound file (somefile.ogg) 
>>> and it will output a file called new5.mpg.  The frames per second are set 
>>> as 1 frame divided by the number of images.
>>> mencoder mf://*.jpg -mf w=320:h=240:fps=1/7:type=jpg -audiofile 
>>> somefile.ogg -oac lavc -ovc lavc -of mpeg -mpegopts format=vcd -vf 
>>> scale=352:240,harddup -srate 44100 -af lavcresample=44100 -lavcopts 
>>> vcodec=mpeg1video:keyint=18:vrc_buf_size=327:vrc_minrate=1152:vbitrate=1152:vrc_maxrate=1152:acodec=mp2:abitrate=224 
>>> -ofps 30000/1001 -o new5.mpg
>> This segfaulted when I tried it, but I have 3000 files that are 2500x1900 
>> or so. I'm running imagemagick now to bump them down to 640x480. dave
> You can change the w=320 to w=640 and change the h=240 to h=480 when you run 
> it, and see what happens.  scale=352:240 can be changed to scale=640:480. 
> That's assuming you can use imagemagick to scale down to 640x480.

I resized them and simplified the command line and was able to spit out a 
wmv/avi file that worked. Hundreds of megs of JPG's into an 8 meg movie.

-- 
Dave Weis
djweis at internetsolver.com
http://www.internetsolver.com/



More information about the Cialug mailing list