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
help w/ AVI to BMP (PNG?) coversion in COM object
-
- Posts: 21
- Joined: 2013-09-01T05:52:51-07:00
- Authentication code: 6789
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: help w/ AVI to BMP (PNG?) coversion in COM object
If your frames were p-00001.png, p00002.png etc, then a command to stitch them all side by side is: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 ...
Code: Select all
convert p-*.png +append p.png
snibgo's IM pages: im.snibgo.com
-
- Posts: 21
- Joined: 2013-09-01T05:52:51-07:00
- Authentication code: 6789
Re: help w/ AVI to BMP (PNG?) coversion in COM object
OMG! that's perfect!
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: help w/ AVI to BMP (PNG?) coversion in COM object
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:
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.
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
snibgo's IM pages: im.snibgo.com