      def __get_zero_pad(filename):
          """ Return the starting position of zero padding from a filename """
          chkstring = filename[::-1]
          pos = 0
          for pos in range(len(chkstring)):
              if not chkstring[pos].isdigit():
                  break
 
</s> remove         filename = filename.split('.')
        img_ext = filename[-1]
        zero_pad = Effmpeg.__get_zero_pad(filename[-2])
        name = filename[-2][:-zero_pad]
        retval = "{}%{}d.{}".format(name, zero_pad, img_ext)
 </s> add         filename, img_ext = os.path.splitext(filename)
        zero_pad = Effmpeg.__get_zero_pad(filename)
        name = filename[:-zero_pad]
        retval = "{}%{}d{}".format(name, zero_pad, img_ext) </s> remove             "ffmpeg": re.compile(r"([a-zA-Z]+)=\s*([\d|N/A]\S+)")}
 </s> add             "ffmpeg": re.compile(r"([a-zA-Z]+)=\s*(-?[\d|N/A]\S+)")}
        logger.trace("filename: %s, chkstring: %s", filename, chkstring)
      def __get_zero_pad(filename):
          """ Return the starting position of zero padding from a filename """
          chkstring = filename[::-1]
        logger.trace("filename: %s, chkstring: %s", filename, chkstring)
          pos = 0
          for pos in range(len(chkstring)):
              if not chkstring[pos].isdigit():
                  break
keep keep add keep keep keep keep
 effmpeg - gen-vid filename bugfix 
tools/effmpeg.py