Kosinkadink / ComfyUI-VideoHelperSuite

Nodes related to video workflows
GNU General Public License v3.0
513 stars 90 forks source link

[Bug?] Missplaced frames #131

Closed MrDravcan closed 7 months ago

MrDravcan commented 7 months ago

What parameter when loading images is taken into account when combining video?

In the folder, all the frames are arranged in order from 1 to 32, and in the preview and the saved file, you can clearly see that several frames are mixed up / out of place in the order.

Frames in folder Sequence

Preview https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite/assets/120318193/497288f0-abf5-41f4-8460-2cd9177e51a7

Kosinkadink commented 7 months ago

You need to make sure there is padding on the names. The way python sorts the strings, is based on the first characters AND full character length.

For example, if your longest number has 2 digits in it, 1-9 have to be called 01-09. Otherwise, the order it will load in is 1, 10, 11, ... 18, 19, 2, 20, 21, ...

With the padded zeros, it will load 01, 02, 03, etc. properly. To always make sure your frames will load in order, it's a good practice for image sequences in video editing to have padding in the numbers.

MrDravcan commented 7 months ago

All clear. Thank you immeasurably for your fast reply. 🤗