seqdo¶
seqdo
runs a shell command for each frame in a sequence, substituting frame numbers. This is useful for batch processing or automating per-frame operations.
Usage¶
seqdo COMMAND [FRAMES]
COMMAND
: The shell command to run. Use@
and#
for frame number patterns.FRAMES
: Frame range or sequence expression.
Options¶
--dry-run
,-n
: Show what would be done, but do not actually run commands.--verbose
,-v
: Show detailed output for each command.--strict
: Stop on the first error.--quiet
,-q
: Only print errors.--version
: Show version and exit.
Examples¶
Print a message for each frame:
seqdo 'echo Processing frame @' -f 1001-1005
Run an image conversion for each frame (requires that convert
is available):
seqdo 'convert infile.@.jpg -resize 50% outfile.@.jpg' -f 1001-1020
Output¶
- Shows command output and errors for each frame.
- Returns a nonzero exit code if any problems are found.