ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: captured on September 02, 2014, 06:41:00 AM

Title: Find All AutoBracketing Series Images
Post by: captured on September 02, 2014, 06:41:00 AM
Hello.

System: Debian Linux testing

I am trying to list all AutoBracketing Images that belong to a series...
- 3 images are always taken for JPG and RAF
- Tags exist for: -AutoBracketing (On) , and -SequenceNumber (1,2 or 3)

I can get the information I wish by;

$ exiftool -T -if '$AutoBracketing eq "On"' -Filename -fileOrder DateTimeOriginal -d "%F %T" -DateTimeOriginal -AutoBracketing -SequenceNumber .

Result;
DSCF3673.JPG   2014-07-21 14:02:54   On   1
DSCF3673.RAF   2014-07-21 14:02:54   On   1
DSCF3674.JPG   2014-07-21 14:02:54   On   2
DSCF3674.RAF   2014-07-21 14:02:54   On   2
DSCF3675.JPG   2014-07-21 14:02:54   On   3
DSCF3675.RAF   2014-07-21 14:02:54   On   3

Objective: To obtain 'all' the series of AutoBracketed images using one staring image.
So, if DSCF3674.JPG is used to start, I planned on searching the same date, plus one second, minus one second...
then I should end up with all the series of bracketed shots... e.g. -SequenceNumbers = 1,2,3

I can do this with further bash processing and the 'date' command, but I'm wondering if exiftool can
achieve anything close ?

Thank you much.
Title: Re: Find All AutoBracketing Series Images
Post by: Phil Harvey on September 02, 2014, 07:33:35 AM
I'm not clear on exactly what you are trying to do, but doing date comparisons in the exiftool -if statement is a bit tricky, but may be done using the ExifTool GetUnixTime() function.  Comparing the times between two different images though, may not be done in -if.  So if you need to do this, it must be in your batch processing.

- Phil
Title: Re: Find All AutoBracketing Series Images
Post by: captured on September 02, 2014, 08:14:27 AM
Thanks Phil.

I am trying to programatically group all bracketed images shot within a +/- 1 second window
then move each series of bracketed images into it's own folder.

FileName          DateTimeOriginal          AutoBracketing  SequenceNumber

DSCF1001.JPG  2014-07-21 10:03:32  On                      1
DSCF1001.RAF  2014-07-21 10:03:32  On                      1
DSCF1002.JPG  2014-07-21 10:03:32  On                      2
DSCF1002.RAF  2014-07-21 10:03:32  On                      2
DSCF1003.JPG  2014-07-21 10:03:32  On                      3
DSCF1003.RAF  2014-07-21 10:03:32  On                      3

The above have the same date/time, AutoBracketing 'On', Sequence 1,2 or 3

I'm moving all 6 shots for each bracketed group into it's own directory, all with exiftool if possible.

I hope that further clarifies what I'm trying to acomplish.

Best regards.
Title: Re: Find All AutoBracketing Series Images
Post by: Phil Harvey on September 02, 2014, 08:23:41 AM
It does sound to me as if this is something best done in a batch file because you will likely need to compare the date/times of multiple files to make the decision about which files to move where.

- Phil
Title: Re: Find All AutoBracketing Series Images
Post by: captured on September 02, 2014, 02:03:40 PM
Understood.

Thanks so much for your quick reply... much appreciated.

Take care.

[SOLVED]