Main Menu

File Number tag

Started by mvadu, December 13, 2010, 07:03:14 PM

Previous topic - Next topic

mvadu

Hi Phil, I am wondering where to get the File Number/Shutter count for Canon DSLR images.

I have a file from Canon T1i, and
-all t1i.jpg gives
File Number                     : 100-3706

Whole code branch search revealed only one place in Canon.pm(Image::ExifTool::Canon::FileInfo) which is index one for FileInfo tag.
However
-U -v3 t1i.jpg  has only
Canon_FileInfo_0x0001 = 0
- Tag 0x0001 (2 bytes, int16s[1]):
     0e68: 00 00                   

So I am kind of stuck, how to get 100-3706 from 0x0000. 3706 sounds to be correct value of shutter count for my camera though. Can you please guide me to the tag from where you derive this value?

Phil Harvey

I think you are confused.  In this case, FileNumber is a Composite tag which is derived from FileIndex and DirectoryIndex.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

mvadu

spot on..! I am not yet fully done porting CameraInfo tag. Thanks for the info Phil.

DaveFi

Hi,

Not sure if this is the right place to ask this, but it is related to the File Number tag. I would like to rename some files using this tag, as I renamed them ages ago but would like to rename them back. I am sure this would be possible with Exiftool, but I am a little overwhelmed by the options!

Is this possible to do ?

Thanks for your help,

DaveFi

Quote from: DaveFi on January 11, 2011, 03:12:50 PM
Hi,

Not sure if this is the right place to ask this, but it is related to the File Number tag. I would like to rename some files using this tag, as I renamed them ages ago but would like to rename them back. I am sure this would be possible with Exiftool, but I am a little overwhelmed by the options!

Is this possible to do ?

Thanks for your help,

Ah its ok, worked it out now :-)