Page 1 of 1

help w/ AVI to BMP (PNG?) coversion in COM object

Posted: 2013-10-29T12:19:40-07:00
by rocketshiptech
How do I do THIS in ImageMagick:

Long story short: I have an AVI file and I want to “stitch” each frame next to each-other in a very (very) long strip.
(actually, I’ll have a lot of these files, I’m trying to write an app for this using the ImageMagick Object COM implantation from VB)

The weird part: the “frames” of these AVI files are going to be about 1 pixel wide by 3000 pixels tall, and there’ll be about 20,000 frames at a time; meaning the finished bitmaps will be 3000 px tall by 20,000 px wide.

OK, the long story: the frames represent data (not really a movie) and I *could* save them as individual bitmaps (1 x 3000 px) and loop through some sort of stitching procedure in ImageMagick, but I can also get it all as one AVI file and figured it would be a lot easier to deal with one file with a set frame size. amiright?

Any example of the right command line would very helpful. (maybe there is an example in the documentation that I missed?)
Aha tia

Re: help w/ AVI to BMP (PNG?) coversion in COM object

Posted: 2013-10-29T13:04:54-07:00
by snibgo
rocketshiptech wrote:... the frames represent data (not really a movie) and I *could* save them as individual bitmaps (1 x 3000 px) and loop through some sort of stitching procedure in ImageMagick ...
If your frames were p-00001.png, p00002.png etc, then a command to stitch them all side by side is:

Code: Select all

convert p-*.png +append p.png

Re: help w/ AVI to BMP (PNG?) coversion in COM object

Posted: 2013-10-29T13:31:18-07:00
by rocketshiptech
OMG! that's perfect!

Re: help w/ AVI to BMP (PNG?) coversion in COM object

Posted: 2013-10-29T14:30:00-07:00
by snibgo
Good stuff. I made a small typo, and it should read "If your frames were p-00001.png, p-00002.png etc", so every filename starts with "p-". You can use any prefix you like, of course.

You need quite a lot of files and pixels, so I decided to try it out. I created 21001 images each 1x3000 pixels, named p-000000.png to p-021000.png. Then I did:

Code: Select all

convert p-*.png +append p.png
On Windows 7, IM v6.8.7-0, on a 4 GB laptop, the convert took about 2 minutes to create the 21001x3000 image. It worked fine.