I am using a wearable bluetooth wifi camera. How do I find the time when a particular picture was taken?
So far I have tried to look at the metadata on the jpg using Exiftool. I am only able to see when the pictures were moved from the micro-SD card to my computer through this.
I know the data of time when the picture was taken is available. Because the camera comes with an android app, and I am able to see the time when picture was taken through the app.
But once I move the picture from the microSD card to my computer, I don't know where to find it again.
Where could this time be hiding?
EDIT:
(The following solution is for a Linux Machine. However for other OS, one can something similar in spirit: SAVE your metadata before moving the images anywhere from the MicroSD)
Using this command before moving the images from MicroSD card:
exiftool /path/to/file/filename.JPG | grep Modification
gives the output:
File Modification Date/Time : 2017:05:20 01:47:38+05:30
But the actual time of creation in this case was 2017:05:19 20:17:38
which one gets by subtracting the +5:30
for my timezone.
If one moves the file to computer the above data gets permanently over-written. So I have a bash script with which I rename the file with the time of it's creation before moving it anywhere.
Here is the script:
#!/bin/bash
cd "/path/to/file"
for file in *
do
out="$(exiftool $file | grep Modification)"
out=${out:34:19}
out=${out/":"/"-"}
out=${out/":"/"-"}
out=$(date -d "$out")
out=$(date -d "$out -330 minutes" +'%Y-%m-%d-%H%M%S')
# Replace -330 with offset needed for your timezone
if [[ $file == *.jpg ]]
then
mv "$file" "${out}.JPG"
fi
if [[ $file == *.MP4 ]]
then
mv "$file" "${out}.MP4"
fi
done
I am happy with this for now.
exiftool
? Can you post the output ofexiftool
? \$\endgroup\$fileA.jpg
andfileB.jpg
(just pick two files on your card,fileA
andfileB
are placeholders) in the app, then remove the MicroSD card. On your computer, swap the file names of the two files, and put the MicroSD card back. If the Android app shows the same file date forfileA
both before and after filename swapping, then the data is not coming from within the file; it's being stored externally to the file. \$\endgroup\$