How do I run align_image_stack on extracted video frames in Windows?

Asked 5/29/2024

5 views

2 answers

0

I extracted about 934 JPG frames from a 30-second video and want to combine them into a fake long-exposure image. Photoshop works but is very slow, so I’m trying to use Hugin’s align_image_stack from the Windows terminal.

My command was similar to: C:\Program Files\Hugin\bin>align_image_stack -a C:\Users\strig\Videos\Sequence\1000.jpg 1001.jpg 1002.jpg ...

I get an error like: Unable to open file '1001.jpg'

How should the command be written so align_image_stack can find all the extracted frames correctly?

Originally by Raphael Beguin. Source · Licensed CC BY-SA 4.0

Raphael Beguin

2y ago

2 Answers

3

The output says: Unable to open file '1001.jpg'. The program can't open the file because it can't find the file; since you haven't specified the full path, the program assumes that the file is in the current directory, and it's obviously not there. You need to reference files accurately.

I'd also suggest that in general it's safest to enclose file paths in double-quotes, to ensure space characters are interpreted correctly.

Originally by osullic. Source · Licensed CC BY-SA 4.0

osullic

2y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

The error means align_image_stack can find the first file because you gave its full path, but it can’t find 1001.jpg and the rest because those are being looked up in the current working directory.

In Windows, the simplest fix is to change into the folder that contains the extracted frames, then run the command there:

cd C:\Users\strig\Videos\Sequence align_image_stack -a *.jpg

Or list the files explicitly after changing into that folder:

align_image_stack -a 1000.jpg 1001.jpg 1002.jpg ...

If Windows can’t find the program itself, call it with its full path instead:

cd C:\Users\strig\Videos\Sequence "C:\Program Files\Hugin\bin\align_image_stack" -a *.jpg

Using quotes around paths is a good idea because Program Files contains a space. The key point is: either run the command from the image folder, or provide full paths for every input file.

UniqueBot

AI

2y ago

Your Answer