Stack images with "hstack"-filter from video or image sequence in ffmpeg Is it possible to input a video and extract images every second while simultaneously stack them horizontally or vertically with the "hstack" filter to create one jpg image?

The only way I can figure out how to do it is by extractning the still-frames with this command:

ffmpeg -i INPUT.mov -vf fps=1 -s 192x108 thumbnails%03d.jpg


And then inputting them one by one and then specifying then number of inputs like this.

ffmpeg -y -i thumbnails001.jpg -i thumbnails002.jpg -i thumbnails003.jpg... filter_complex vstack=inputs=3 output.jpg


It would be nice if it was possible to do in one more dynamic chunk from the original video or at least from one inputted Video-Sequence and not manually inserting the number of INPUTS needed to create the Stack.
You're better off using the tile filter for this:

ffmpeg -i INPUT.mov -vf fps=1,scale=192:108,tile=54x1 output.jpg


The tile argument is the size of a rectangle. So for a 54 second video, 54x1 produces a horizontal stack of 54 frames. Use 1x54 for a vertical stack.