Adding geotag to Images

Started by Phanindra, November 27, 2014, 05:25:05 AM

Previous topic - Next topic

Phanindra

Hello,

I have few questions and I am struggling last few days for geotag the images.
1. Is there any command you have extract frames from Video file? If its there how can use it?
2. I have used 3rd party tool (ffmpeg) for extracting images from videos. Now I want to geotag those images.

Can you suggest me what are the steps I have to take for geotag to Image. And I have gpx file to which consists of the following data.
And I have used your geotag but I am getting warning like "no writable tags set from xxx.jpg"

<wpt lat="-10.761499" lon="40.473498">
      <ele>67.350082</ele>
      <time>2014-11-24T05:03:14Z</time>
</wpt>

Image Information:
exiftool.exe 20140328113425484_1.png

ExifTool Version Number         : 9.76
File Name                                 : 20140328113425484_1.png
Directory                                  : My Dir Name
File Size                                   : 234 kB
File Modification Date/Time     : 2014:11:27 03:54:31-06:00
File Access Date/Time             : 2014:11:27 03:54:31-06:00
File Creation Date/Time           : 2014:11:27 03:54:31-06:00
File Permissions                       : rw-rw-rw-
File Type                                  : PNG
MIME Type                              : image/png
Image Width                            : 640
Image Height                           : 480
Bit Depth                                : 8
Color Type                              : RGB
Compression                          : Deflate/Inflate
Filter                                       : Adaptive
Interlace                                 : Noninterlaced
Pixels Per Unit X                     : 0
Pixels Per Unit Y                     : 1
Pixel Units                              : Unknown
Image Size                             : 640x480


Could you guide me in right direction.

Thank you,



Phil Harvey

Quote from: Phanindra on November 27, 2014, 05:25:05 AM
1. Is there any command you have extract frames from Video file?

No, sorry.  ExifTool does not process video data.

QuoteCan you suggest me what are the steps I have to take for geotag to Image.

This page should explain all you need to know.

QuoteAnd I have used your geotag but I am getting warning like "no writable tags set from xxx.jpg"

See troubleshooting tip number 2 on the page referenced above.

- 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 ($).

Phanindra

Thank you for your replay Phil.

As you suggested I have tried still I am getting some errors.
I have followed the below steps for tagging to my images and I have gpx data yet end below since I am preparing gpx data from csv file. currently I have added sample gpx file data.

Please let me know whats wrong?

Stepe1: Showing my picture metadata CMD is nothing but command prompt.
CMD>C:\exiftool-9.76\exiftool.exe C:\Users\Phanindra\Pictures\20140328113425484_4.jpg
ExifTool Version Number         : 9.76
File Name                       : 20140328113425484_4.jpg
Directory                       : C:/Users/Phanindra/Pictures
File Size                       : 22 kB
File Modification Date/Time     : 2014:11:28 15:40:30+05:30
File Access Date/Time           : 2014:11:28 15:48:27+05:30
File Creation Date/Time         : 2014:11:28 15:48:27+05:30
File Permissions                : rw-rw-rw-
File Type                       : JPEG
MIME Type                       : image/jpeg
Comment                         : Lavc56.12.100
Image Width                     : 640
Image Height                    : 480
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Image Size                      : 640x480

Step 2: Checking the times as you mentioned in trouble shooting in point 2.
CMD>C:\exiftool-9.76\exiftool.exe -s -time:all C:\Users\Phanindra\Pictures\20140328113425484_4.jpg
FileModifyDate                  : 2014:11:28 15:40:30+05:30
FileAccessDate                  : 2014:11:28 15:48:27+05:30
FileCreateDate                  : 2014:11:28 15:48:27+05:30

Step3:I ran command for geotag to image still I am getting an issues with v2 and without v2
Hope you will get more clarity on my issues.
CMD>C:\exiftool-9.76\exiftool.exe -geosync=+05:30:00 -geotag C:\Users\Phanindra\Pictures\Current.gpx "-geotime<filemodifydate" C:\Users\Phanindra\Pictures\20140328113425484_4.jpg
Warning: Time is too far beyond track in File:Geotime (ValueConvInv) - C:/Users/Phanindra/Pictures/20140328113425484_4.jpg
Warning: No writable tags set from C:/Users/Phanindra/Pictures/20140328113425484_4.jpg
    0 image files updated
    1 image files unchanged

CMD>C:\exiftool-9.76\exiftool.exe -geosync=+05:30:00 -geotag C:\Users\Phanindra\Pictures\Current.gpx "-geotime<filemodifydate" C:\Users\Phanindra\Pictures\20140328113425484_4.jpg v2
Warning: Time is too far beyond track in File:Geotime (ValueConvInv) - C:/Users/Phanindra/Pictures/20140328113425484_4.jpg
Warning: No writable tags set from C:/Users/Phanindra/Pictures/20140328113425484_4.jpg
Warning: Error opening file - v2
Error: File not found - v2
    0 image files updated
    1 image files unchanged
    1 files weren't updated due to errors


My GPX data:
<metadata>
      <link href="http://www.garmin.com">
         <text>Garmin International</text>
      </link>
      <time>2014-11-28T18:46:21Z</time>
   </metadata>
   <trk>
      <name>Trajecto Actual: 28 NOV 2014 18:46</name>
      <extensions>
         <gpxx:TrackExtension>
            <gpxx:DisplayColor>Cyan</gpxx:DisplayColor>
         </gpxx:TrackExtension>
      </extensions>
      <trkseg>
         <trkpt lat="-10.853896" lon="40.587025">
            <ele>68.87</ele>
            <time>2014-11-28T06:22:40Z</time>
         </trkpt>
         
      </trkseg>
   </trk>

Phil Harvey

You forgot the dash on the -v2 option of your -geotag command.  With this option, you will get more information about the timestamps.  It is likely a time zone problem.  See troubleshooting point number 3 for help.

- 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 ($).

Phanindra

Thank you phil,

Finally I am able to geoTag the Images but it's updating same Geotag information to all the images  :(
I am thinking might be the issue with Geotime in gpx file. Am I right? Or do you have any suggestions?

I have question for you, Is there any way for create our own tags to images using Exiftool?





Phil Harvey

#5
Take a look at the timestamps for your images and then check these times in the GPX file.  It could be that the GPS wasn't updating during the period when the images were taken.  (Using the -v4 option in the command will show you all of the points extracted from the GPX log, so you can also check it this way.)

- Phil

Edit: You can create custom user-defined tags in the config file.
...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 ($).