Skip to content

Resequence Files

Jerry Hogsett edited this page Jun 29, 2023 · 2 revisions

Screenshot 2023-03-06 163122

Uses

  • Prepare a PNG sequence for import into video editing software
  • Rearrange a set of PNG frames for insertion into another set

How It Works

  1. Set Input Path to a path on this server to the PNG files being resequenced
  2. Set File Type to png or another necessary value
    • This used to locate the original set of files, and name the new files
    • A wildcard such as * will not work here
  3. Set Base Filename or accept the default
    • This is used ahead of the frame index number for new filenames
    • ⚠️ Important: use a name other than the current name of the files
  4. Set Starting Frame Number or accept the default of 0
    • A different value might be useful if inserting a PNG sequence into another
  5. Set Frame Number Step or accept the default the default of 1
    • This sets the increment between the added frame index numbers
  6. Set Frame Number Padding or accept the default of -1
    • This set the width of the added frame index numbers
    • If set to -1, the width is determined based on the number of files
  7. Leave Samping Stride set to 1 and Sampling Offset set to 0
    • These are used for special purposes, for example:
      • To select only even frames:
        • set Sampling Stride to 2
      • To select only odd frames:
        • set Sampling Stride to 2
        • set Sampling Offset to 1
      • Tip: selecting even or odd frames can be useful if using de-interlaced content
  8. Leave Rename instead of duplicate files unchecked to keep a copy of the original files
    • The original files can be handy for tracking down a source frame
  9. Click Resequence Files

⚠️ Important

  1. Make a backup copy of the original files before using Rename instead of duplicate files due to the danger of losing the original content
  2. Ensure Base Filename is set to a different name than the source files
  3. Ensure the only files present in the input path are the ones to be resequenced
  4. Files are taken in Python sorted() order