This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 13 - Pages: 1 - Last Post: 11 Apr 26, 00:39 Last Post By: RobM Threads: [ Previous | Next ]
MarkusD

Posts: 821
Registered: 13-Apr-2006
GPS-Coordinates for videos. Please make it work.
Posted: 8 Apr 26, 19:29
 
  Click to reply to this thread Reply
Hi David,

please watch that video to see a description for a bug:
https://www.markus-drueck.de/public/jAlbum/Videos/jAlbum%20Core/index.html#img=Video_2026-04-08_191720.mp4

Thanks, Markus
davidekholm

Posts: 3,905
Registered: 18-Oct-2002
Re: GPS-Coordinates for videos. Please make it work.
Posted: 10 Apr 26, 14:42   in response to: MarkusD in response to: MarkusD
Helpful
  Click to reply to this thread Reply
Now fixed. Put this file inside jAlbum's "ext" folder:
https://jalbum.net/download/LocationEditor.jaext

It's tricky to adjust the location of videos. The best tool for the job is actually "exiftool", so jAlbum relies on this external tool for this. Place "exiftool" (or "exiftool.exe" on Windows) inside the "bin" folder of jAlbum's config folder (see Tools->Open directories->Config directory).

On Mac, I recommend simply placing a link to exiftool inside jAlbum's bin folder:
ln -s /opt/homebrew/bin/exiftool  ~/Library/JAlbum/bin/exiftool
MarkusD

Posts: 821
Registered: 13-Apr-2006
Re: GPS-Coordinates for videos. Please make it work.
Posted: 10 Apr 26, 14:52   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Thanks David for looking into this. First result is that things have now gone totaly wrong/havoc. I'm busy right now, will come back later with more details.
MarkusD

Posts: 821
Registered: 13-Apr-2006
Re: GPS-Coordinates for videos. Please make it work.
Posted: 10 Apr 26, 15:12   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Sorry David, my fault. It works fine!
JeffTucker

Posts: 8,182
Registered: 31-Jan-2006
Re: GPS-Coordinates for videos. Please make it work.
Posted: 10 Apr 26, 15:51   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
A little tricky. There is an old version (2018) of exiftools.exe in Windows buried deep in the Program Files (x86) folder, and using that one does work.

But downloading the latest version, one gets an executable called exiftools(-k).exe. That doesn't work. In theory, simply renaming the file should work - in fact, that's what the instructions tell you to do for command line use. But planting the rnamed executable in jAlbum produces a failure to write the coordinates:
java.io.IOException: Failed to update GPS coordinates. Exit code: 1
	at net.jalbum.locationeditor.JLocationPanel.updateVideoCoordinates(JLocationPanel.java:455)
	at net.jalbum.locationeditor.JLocationPanel.save(JLocationPanel.java:316)
	at net.jalbum.locationeditor.JLocationPanel.setAlbumObject(JLocationPanel.java:194)
	at se.datadosen.explorer.JEditPanel.fireEditingAlbumObject(JEditPanel.java:1425)
	at se.datadosen.explorer.JEditPanel.setAO(JEditPanel.java:481)
	at se.datadosen.explorer.JAlbumExplorer.setExplorerView(JAlbumExplorer.java:4388)
	at se.datadosen.explorer.JEditPanel$8.actionPerformed(JEditPanel.java:393)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
	at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.Component.processEvent(Unknown Source)
	at java.desktop/java.awt.Container.processEvent(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
The fix is to copy the distributed exiftools(-k).exe to the jAlbum config/bin folder, and rename it to exiftool.exe. But then you also need to copy the distributed exiftools_files folder to the jAlbum config/bin, as well. Then, it all appears to be working properly. The coordinates are stored, and a skin can extract them to produce a map in the album.

It's not happy with non-MP4/MOV videos, however. Feeding it an M2TS produces an error message. For those, a user should probably just let jAlbum produce an MP4 from it, then replace the original M2TS in the project with the MP4 version, and geotag that one.
RobM

Posts: 3,941
Registered: 4-Aug-2006
Re: GPS-Coordinates for videos. Please make it work.
Posted: 10 Apr 26, 18:06   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Now fixed. Put this file inside jAlbum's "ext" folder:
https://jalbum.net/download/LocationEditor.jaext

It's tricky to adjust the location of videos. The best tool for the job is actually "exiftool", so jAlbum relies on this external tool for this. Place "exiftool" (or "exiftool.exe" on Windows) inside the "bin" folder of jAlbum's config folder (see Tools->Open directories->Config directory).

On Mac, I recommend simply placing a link to exiftool inside jAlbum's bin folder:

ln -s /opt/homebrew/bin/exiftool  ~/Library/JAlbum/bin/exiftool
Is this a one-off fix or something that will be in the next release? Does it work for gps data stored in a quicktime folder, xmp, exif/xmp or just one specific data location?
davidekholm

Posts: 3,905
Registered: 18-Oct-2002
Re: GPS-Coordinates for videos. Please make it work.
Posted: 10 Apr 26, 18:11   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
The fix will be available in the next release. I don't know what video formats are supported really. Check with the docs for exiftool.
MarkusD

Posts: 821
Registered: 13-Apr-2006
Re: GPS-Coordinates for videos. Please make it work.
Posted: 10 Apr 26, 18:19   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Now fixed. Put this file inside jAlbum's "ext" folder:
https://jalbum.net/download/LocationEditor.jaext

It's tricky to adjust the location of videos. The best tool for the job is actually "exiftool", so jAlbum relies on this external tool for this. Place "exiftool" (or "exiftool.exe" on Windows) inside the "bin" folder of jAlbum's config folder (see Tools->Open directories->Config directory).


David, to be honest, I thought that the fix would be much simpler than what you have done. There have been two or even three („Create GMaps link for video.bsh“, „Create Google-Maps link for video.bsh“) tools which just put the coordinates in one of the .info files. The problem was, that theese tools sometimes worked and sometimes not.

My concern now, with your super deluxe solution is, the original video file now will be altered! Of course this should not trigger a reprocess of such a video. This would be a desaster.

Thanks, Markus
RobM

Posts: 3,941
Registered: 4-Aug-2006
Re: GPS-Coordinates for videos. Please make it work.
Posted: 10 Apr 26, 18:20   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
The fix will be available in the next release. I don't know what video formats are supported really. Check with the docs for exiftool.
OK, will do.

Edited by: RobM on 10 Apr 2026, 17:25
It can read from quicktime ‘only if not written to Keys, ItemList or UserData)
QuickTime:GPSCoordinates’. First table on https://exiftool.org/geolocation.html#Read
Under ‘Writing Geolocation Information‘ section.
JeffTucker

Posts: 8,182
Registered: 31-Jan-2006
Re: GPS-Coordinates for videos. Please make it work.
Posted: 10 Apr 26, 18:28   in response to: MarkusD in response to: MarkusD
 
  Click to reply to this thread Reply
MarkusD wrote:
My concern now, with your super deluxe solution is, the original video file now will be altered! Of course this should not trigger a reprocess of such a video. This would be a desaster.

Alas, that's exactly what happens. The video get processed again.
RobM

Posts: 3,941
Registered: 4-Aug-2006
Re: GPS-Coordinates for videos. Please make it work.
Posted: 10 Apr 26, 23:04   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
To use exiftool without re-encoding the video you can use
-overwrite_original -GPSLatitude=12.345678 -GPSLatitudeRef=N -GPSLongitude=98.765432 -GPSLongitudeRef=W 
with the GPSLongitudeRef=W or E

'The -overwrite_original option in ExifTool allows you to modify a file's metadata without creating a backup of the original file. This means the original file will be replaced with the modified version, so use it carefully.'
RobM

Posts: 3,941
Registered: 4-Aug-2006
Re: GPS-Coordinates for videos. Please make it work.
Posted: 10 Apr 26, 23:29   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
Just tried the new location editor with a big mp4 file and the video is not reprocessed, just the metadata is changed.
JeffTucker

Posts: 8,182
Registered: 31-Jan-2006
Re: GPS-Coordinates for videos. Please make it work.
Posted: 10 Apr 26, 23:45   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
In Windows, the MP4 in the project directory gets a new modified date, so the core reprocesses it.
RobM

Posts: 3,941
Registered: 4-Aug-2006
Re: GPS-Coordinates for videos. Please make it work.
Posted: 11 Apr 26, 00:39   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
In Windows, the MP4 in the project directory gets a new modified date, so the core reprocesses it.
OK. The video is not re-encoded, so no long processing time. But the ExifTool switch -overwrite_original_in_place should preserve the dates, If I read the instructions correctly.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums