Author Topic: Renaming question for Panasonic camera(s)  (Read 3162 times)

Offline iau

  • Newcomer
  • *
  • Posts: 31
    • View Profile
Renaming question for Panasonic camera(s)
« on: February 14, 2010, 04:00:39 AM »
Hi,

I'm using the following variables to rename files when I ingest: {yr4}{mn0}{day0}_{fnum}. This is giving me a problem with some Panasonic cameras like LX3 and GF1. It seems that Panasonic are not using the fourth digit to indicate 1000, but the fifth. After 0999 comes 0001 again:

P1000997.RW2 
P1010001.RW2

Is there a way to solve this problem without renaming them afterwards manually (or with a separate renaming program)?

Thanks in advance,
-iau

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2552
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: Renaming question for Panasonic camera(s)
« Reply #1 on: February 14, 2010, 07:06:36 AM »
It looks like the Panasonic file naming is not conform the standard as used by most other cameras. The standard is to use a directory structure as follows:
/DCIM/<A><B>/<C><D>.<E>
Where the subdirectory name is made up of
A = 3 digits for folder number starting with the number 100
B = 5 characters usually with an indication of the camera type
and the file name is made up of
C = 3 characters (default: DSC) plus an underscore either in front (adobe RGB) or at the end (sRGB)
D = 4 digits for the frame number
E = 3 character file name suffix (jpg for jpg, tif for tif, etc.)

From your post I gather that they actually name their files as follows:
P<A><D>.<E>

Where only three digits of <D> are used.

If instead of using {fnum} in your rename template you'd use {filenamebase:3,1}{filenamebase:5,3} (i.e., take 3rd and last three digits of the original filename) you will get what you want. Note: this only works on the original file names!

Hope this helps,
    Hayo
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline iau

  • Newcomer
  • *
  • Posts: 31
    • View Profile
Re: Renaming question for Panasonic camera(s)
« Reply #2 on: February 15, 2010, 09:42:52 AM »
Thanks for the tip! I will try it out!

- iau