Sequencer is the swiss army knife of image sequence management for Ruby. It helps with things like

  • Collapsing multibillion-files directory listings to sequence lists with sane names and sane string representations

  • Detecting gaps in image sequences

  • Renaming sequences for filename uniformity, number uniformity and so on

  • Managing image sequences as whole units for media management

  • ..and getting laid (sometimes)

FEATURES:

  • List all sequences in a directory interspersed with other file entries

  • Detect sequence from single file

SYNOPSIS:

From the terminal - go to a directory, and then:

$rseqls

   Fussball_Shot[1..1, 3..3].sni
   FinalLichtUitValSec_Shot1.[1..128].jpg
   Fussball_Shot3_v02.sni
   FinalLichtUitValSec_Shot1.0001.ifl
   FinalLichtUitValSec.0001.ifl
   FinalLichtUitValSec.[1..185].jpg

You also have rseqpad and rseqrename :-)

From code:

require "sequencer"
s = Sequencer.from_single_file("/RAID/Film/CONFORM.092183.dpx")
s.file_count #=> 3201
s.gaps? #=> true
s.missing_frames #=> 15, somebody was careless
s.pattern #=> "CONFORM.%06d.dpx", usable with printf right away

INSTALL:

  • sudo gem install sequencer

LICENSE:

(The MIT License)

Copyright © 2010 Julik Tarkhanov (me@julik.nl)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.