Renumber an image sequence in bash

FFmpeg and Avconv required image sequences to start at frame 1. I have a number of sequences that start at frame 1001 and need to be renumbered.

Unfortunately, GUI apps tend to hang populating the list of files to rename because they are in the 1000s of frames.

Here’s a way to accomplish the renaming of image sequences in bash, adapted from a number of sources.

To use:

  • Save the above code to  ~/Desktop/ 
  • cd into the directory containing the image sequence
  • bash ~/Desktop/
Tags: , ,
Posted on: No Comments

Leave a Reply