|The new way of converting JPEGs to MPEGs|
I wrote the JPEG to MPEG howto a while ago, and used the best tools that I could find at the time. It was a complicated, evil process, but people still email me a couple of times a month and thank me for it. I think they'll like this way even more.
For my PhD, I'm taking large numbers of images and displaying them one after another on a monitor so that I can capture the images with a webcam. The reason is a little convoluted, so let's settle for I'm trying to see what sort of image distortion the webcam will impose. I figured that the best way to do this was to simply have a MPEG2 movie that was the images, play it on the machine, and then point the webcam at the monitor. At about this time in a twist of wonderful fate I discovered I could do this in a simple command line with ImageMagick. Let's see how (all of these instructions are based on Debian unstable, but should work anywhere):
apt-get install imagemagick
This isn't packaged for Debian, but I've put a request for package bug in. Do this:
wget ftp://ftp.mpegtv.com/pub/mpeg/mssg/mpeg2vidcodec_v12.tar.gz tar xvzf mpeg2vidcodec_v12.tar.gz cd mpeg2 make cd src/mpeg2dec cp mpeg2decode /usr/local/bin cd ../mpeg2enc cp mpeg2encode /usr/local/bin
Do the thing
So, now we can do the thing. In this instance we have a bunch of TIFF files we want to turn into an MPEG2 video.
convert *.tif foobar.mpg
And we're done. Nice, isn't it?
Tags for this post: jpeg2mpeg jpeg mpeg movie convert imagemagick phd tutorial howto opensource linux video
Related posts: JPEG 2 MPEG howto; The JPEG still picture compression standard; Bingo!; Ok, I've finally snapped; Assumed knowledge; LCA 2007 Video: CFQ IO; Do you think there is something wrong with my FFT?; ScobleShow only available as MP4?; My thesis worries are over; The What-If-Microsoft-Did-The-iPod-Box video done by Microsoft; Procrastination; Very funny; PhD night; Speed limit; Mirror traffic during the last day of LCA 2007; I just noticed...; Updated: linux.conf.au 2007 MythTV tutorial homework; Avoidance behaviour, or, wanted: video RSS feeds; Old ImageMagick packages in Debian and Ubuntu; "Thriller" as performed by inmates of the Cebu Provincial Detention and Rehabilitation Center; Tomcat first flight tribute video
posted at: 17:20 | path: /jpeg2mpeg | permanent link to this entry