I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-05-25 18:11:00-07 by janmartin in response to 10815
Re: -geotag not working on jpg files extracted from .avi. Files incldued!
Hi Phil,

wow, that is a fast answer.
Only Date-Tag I see is "FileModifyDate", showing 1243167795.

/home/me/Image-ExifTool-7.76/exiftool -s -v2 /home/me/test/panos/00000001.jpg > /home/me/test/exift +ool-s_00000001.jpg.txt ExifToolVersion = 7.76 FileName = 00000001.jpg Directory = /home/me/test/panos FileSize = 275016 FileModifyDate = 1243167795 FileType = JPEG MIMEType = image/jpeg JPEG APP0 (14 bytes): + [BinaryData directory, 9 bytes] | JFIFVersion = 1 1 | - Tag 0x0000 (2 bytes, int8u[2]) | ResolutionUnit = 1 | - Tag 0x0002 (1 bytes, int8u[1]) | XResolution = 72 | - Tag 0x0003 (2 bytes, int16u[1]) | YResolution = 72 | - Tag 0x0005 (2 bytes, int16u[1]) JPEG DQT (65 bytes): JPEG DQT (65 bytes): JPEG SOF0 (15 bytes): JPEG DHT (29 bytes): JPEG DHT (73 bytes): JPEG DHT (28 bytes): JPEG DHT (66 bytes): JPEG SOS

So I tried this anyway:
/home/me/Image-ExifTool-7.76/exiftool -v2 '-geotime<$FileModifyDate+00:00' -geotag /home/me/test/tr +ack.gpx /home/me/test/panos > /home/me/test/geotag_FileModifyDate.txt<br>

But it only worked after I changed the dates in the gpx file by 2 hours from 14... to 12.. o'clock.

Thanks for the great help.

Jan
Loaded 5 points from GPS track log file '/home/me/test/track.gpx' GPS track start: 2009:05:24 12:23:15 UTC GPS track end: 2009:05:24 12:25:02 UTC Writing File:Geotag ======== /home/me/test/panos/00000036.jpg Setting new values from /home/me/test/panos/00000036.jpg Geotime value: 2009:05:24 12:23:50 UTC Writing MIE-GPS:GPSLatitude Writing XMP-exif:GPSLatitude if tag exists Writing GPS:GPSLatitude Writing MIE-GPS:GPSLongitude Writing XMP-exif:GPSLongitude if tag exists Writing GPS:GPSLongitude Deleting MIE-GPS:GPSAltitude Deleting XMP-exif:GPSAltitude Deleting GPS:GPSAltitude Deleting XMP-exif:GPSAltitudeRef Deleting GPS:GPSAltitudeRef Writing GPS:GPSLatitudeRef Writing GPS:GPSLongitudeRef Writing GPS:GPSDateStamp Writing GPS:GPSTimeStamp Writing XMP-exif:GPSDateTime if tag exists Rewriting /home/me/test/panos/00000036.jpg... Editing tags in: APP0 APP1 File GPS IFD0 JFIF MIE-GPS XMP Creating tags in: APP1 File GPS IFD0 MIE-GPS JPEG APP0 (14 bytes): Rewriting JFIF Creating APP1: Creating IFD0 ExifByteOrder = MM + IFD0:XResolution = '72' (mandatory) + IFD0:YResolution = '72' (mandatory) + IFD0:ResolutionUnit = '2' (mandatory) + IFD0:YCbCrPositioning = '1' (mandatory) Creating GPS + GPS:GPSVersionID = '2 2 0 0' (mandatory) + GPS:GPSLatitudeRef = 'N' + GPS:GPSLatitude = '37 15 49.7102400000074' + GPS:GPSLongitudeRef = 'E' + GPS:GPSLongitude = '127 1 30.2570400000059' + GPS:GPSTimeStamp = '12 23 50' + GPS:GPSDateStamp = '2009:05:24' JPEG DQT (65 bytes): JPEG DQT (65 bytes): JPEG SOF0: JPEG DHT (29 bytes): JPEG DHT (70 bytes): JPEG DHT (27 bytes): JPEG DHT (68 bytes): JPEG SOS ======== /home/me/test/panos/00000061.jpg .....
P.S.: This CPAN forum software is the weirdest pice of shit of a forum software I have seen in years!
Direct Responses: 10978 | Write a response