Hi everyone,
here my situation : i have a folder with 50000 Images from the past year for a timelapse of a new building.
But 50000 Images are clearly too much and some of them are dark so i wanted to only pick the pictures that are modified from 15:00-15:05 then i get one or two per day.
I tried it with : exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .
that works but it shows me every modified date.
Then i tried: exiftool -filename -filemodifydate -if \b([15]?[0-9]|2[0-3]):([0-5]\d):([0-5]\d)\b .
but it still not works.
My goal is to use ExifTool for copying every file in another folder on a specific time like every file that has modify date 15:00-15:05 and then run FFmpeg and render it to a Video.
I hope i can get some help :)
Best Regards
Joxi
Try this:
exiftool -filename -if '$datetimeoriginal =~ / 15:0[0-5]:[0-5][0-9]/' .
This will show you all images taken between 15:00:00 and 15:05:59
Quote from: Hayo Baan on August 01, 2019, 03:46:02 AM
Try this:
exiftool -filename -if '$datetimeoriginal =~ / 15:0[0-5]:[0-5][0-9]/' .
This will show you all images taken between 15:00:00 and 15:05:59
Thank you for your quick reply!
I tried it and got this :
exiftool -filename -if '$datetimeoriginal =~ / 15:0[0-5]:[0-5][0-9]/' .
1 directories scanned
46526 files failed condition
0 image files read
Are you sure you have images taken between 15:00:00 and 15:05:59?
What does exiftool -filename -datetimeoriginal tell you?
(Oh, and if you're on Windows, change the single quotes to double quotes)
Quote from: Hayo Baan on August 01, 2019, 04:36:07 AM
Are you sure you have images taken between 15:00:00 and 15:05:59?
What does exiftool -filename -datetimeoriginal tell you?
(Oh, and if you're on Windows, change the single quotes to double quotes)
Yes i know it cause the cam took an image every 5 min. for the past year.
With the first command i alredy used > text.txt and then i search manually for 15:00 and i found some images.
I am using Ubuntu for the ExifTool.
exiftool -filename -datetimeoriginal .
======== ./P19031311423910.jpg
File Name : P19031311423910.jpg
======== ./P19060411584510.jpg
File Name : P19060411584510.jpg
i aborted it directly cause it will print all images out.
Right, your images don't have a datetimeoriginal, that's why it didn't work. Run exiftool with -s -time:all on one of the files to see if there's another tag that can be used instead.
Quote from: Hayo Baan on August 01, 2019, 05:05:59 AM
Right, your images don't have a datetimeoriginal, that's why it didn't work. Run exiftool with -s -time:all on one of the files to see if there's another tag that can be used instead.
exiftool -s -time:all P18092417563810.jpg
FileModifyDate : 2018:09:24 08:56:35-07:00
FileAccessDate : 2018:09:24 08:56:35-07:00
FileInodeChangeDate : 2019:06:19 01:08:04-07:00
I want to use FileModifyDate : 2018:09:24 08:56:35-07:00 for the date.
Simply use this then:
exiftool -filename -if '$FileModifyDate =~ / 15:0[0-5]:[0-5][0-9]/' .
Quote from: Hayo Baan on August 01, 2019, 06:20:58 AM
Simply use this then:
exiftool -filename -if '$FileModifyDate =~ / 15:0[0-5]:[0-5][0-9]/' .
Thank you very much that worked!
exiftool -filename -if '$FileModifyDate =~ /15:0[0-5]:[0-5][0-9]/' .
Is there a way to format the output with like > output.txt to a list with only the file names are inside like :
1.jpg
2.jpg
3.jpg
or copy the files directly with exiftool to another folder after using
exiftool -filename -if '$FileModifyDate =~ /15:0[0-5]:[0-5][0-9]/' .
Quote from: Joxi on August 02, 2019, 09:55:20 AM
Quote from: Hayo Baan on August 01, 2019, 06:20:58 AM
Simply use this then:
exiftool -filename -if '$FileModifyDate =~ / 15:0[0-5]:[0-5][0-9]/' .
Thank you very much that worked!
Excellent!
Quote from: Joxi on August 02, 2019, 09:55:20 AM
exiftool -filename -if '$FileModifyDate =~ /15:0[0-5]:[0-5][0-9]/' .
Is there a way to format the output with like > output.txt to a list with only the file names are inside like :
1.jpg
2.jpg
3.jpg
Yes, add
-T to the command:
exiftool -T -filename -if '$FileModifyDate =~ /15:0[0-5]:[0-5][0-9]/' .
Quote from: Joxi on August 02, 2019, 09:55:20 AM
or copy the files directly with exiftool to another folder after using exiftool -filename -if '$FileModifyDate =~ /15:0[0-5]:[0-5][0-9]/' .
You can use the
-o option for that. E.g.:
exiftool -o . -directory='TARGET' -if '$FileModifyDate =~ /15:0[0-5]:[0-5][0-9]/' .
For more info, have a look at (a.o.) the renaming examples (https://exiftool.org/exiftool_pod.html#RENAMING-EXAMPLES) in the documentation.
Quote from: Hayo Baan on August 02, 2019, 10:20:40 AM
Quote from: Joxi on August 02, 2019, 09:55:20 AM
Quote from: Hayo Baan on August 01, 2019, 06:20:58 AM
Simply use this then:
exiftool -filename -if '$FileModifyDate =~ / 15:0[0-5]:[0-5][0-9]/' .
Thank you very much that worked!
Excellent!
Quote from: Joxi on August 02, 2019, 09:55:20 AM
exiftool -filename -if '$FileModifyDate =~ /15:0[0-5]:[0-5][0-9]/' .
Is there a way to format the output with like > output.txt to a list with only the file names are inside like :
1.jpg
2.jpg
3.jpg
Yes, add -T to the command:
exiftool -T -filename -if '$FileModifyDate =~ /15:0[0-5]:[0-5][0-9]/' .
Quote from: Joxi on August 02, 2019, 09:55:20 AM
or copy the files directly with exiftool to another folder after using exiftool -filename -if '$FileModifyDate =~ /15:0[0-5]:[0-5][0-9]/' .
You can use the -o option for that. E.g.:
exiftool -o . -directory='TARGET' -if '$FileModifyDate =~ /15:0[0-5]:[0-5][0-9]/' .
For more info, have a look at (a.o.) the renaming examples (https://exiftool.org/exiftool_pod.html#RENAMING-EXAMPLES) in the documentation.
Thank you that worked both very well! Problem solved!