Many (perhaps all?) panasonic cameras use a filename format like this
Pxxx0yyy.JPG
starting with P1000001.JPG -> P1000999.JPG then P1010001.JPG, etc
So the 4th digit is always 0. This is annoying in conjunction with exiflow, as frame numbers start to repeat after only the first 1000 instead of 10000. Presumably other manufacturers have similar oddities.
Attached is a proof of concept patch that allows you to specify which digits in the original filename you consider significant. In my case I put
number_pattern = .*P\d\d(\d)0(\d)(\d)(\d)
in the relevant section of cameras.cfg. The standard behaviour would require something like
number_pattern = .*(\d)(\d)(\d)(\d)
(untested).
The patch has little in the way of error detection, does not set a default and in general is not ready for release in this state, but I can try to address these issues if it has a chance of being included.
custom filename patterns