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


Permlink Replies: 103 - Pages: 7 [ Previous | 1 2 3 4 5 6 7 | Next ] - Last Post: 23 Jul 19, 15:33 Last Post By: AndreWolff Threads: [ Previous | Next ]
JeffTucker

Posts: 8,354
Registered: 31-Jan-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 19 Jul 19, 12:31   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
Out of date already, GPS to/from video now ;)

That's the way it's spelled, but it's pronounced "Throat Wobbler Mangrove."
AndreWolff

Posts: 2,360
Registered: 14-Dec-2007
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 19 Jul 19, 15:12   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
Sorry, but it’s good enough for me and I have other, non-jAlbum, things that need to be done over the next few months.
Well, my points are easy to implement as you can see in attached file.

There is a problem with manual input:
Manual input of Location 51.800198, 5.247233 gives as user variable gpsLocation 51.8001,5.2472 so 2 decimals are lost!
Note that Google Earth gives the waypoints in 6 decimals.
jimberry

Posts: 599
Registered: 30-Aug-2004
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 19 Jul 19, 15:14   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
Well, my points are easy to implement as you can see in attached file.
So why don't you implement them in your renamed copy of the tool?

What part of "I have other ... ... things that need to be done" don't you understand?
RobM

Posts: 4,190
Registered: 4-Aug-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 19 Jul 19, 15:21   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
RobM wrote:
Sorry, but it’s good enough for me and I have other, non-jAlbum, things that need to be done over the next few months.
Well, my points are easy to implement as you can see in attached file.

There is a problem with manual input:
Manual input of Location 51.800198, 5.247233 gives as user variable gpsLocation 51.8001,5.2472 so 2 decimals are lost!
Note that Google Earth gives the waypoints in 6 decimals.

That is not a problem, it is a design choice. To change to six decimals look for
DecimalFormat fourDigit = new DecimalFormat("#,##0.0000");//format to 4 decimal place
and add two more zeros after the decimal point.

Also, instead of remming out each line in a block of code use
/*
A block of code
That is not active
*/
It is less typing and easier to read. Or just delete the code altogether, even easier still.
karlmistelberger

Posts: 178
Registered: 5-Dec-2013
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 19 Jul 19, 16:36   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
AndreWolff wrote:
RobM wrote:
Sorry, but it’s good enough for me and I have other, non-jAlbum, things that need to be done over the next few months.
Well, my points are easy to implement as you can see in attached file.

There is a problem with manual input:
Manual input of Location 51.800198, 5.247233 gives as user variable gpsLocation 51.8001,5.2472 so 2 decimals are lost!
Note that Google Earth gives the waypoints in 6 decimals.

That is not a problem, it is a design choice. To change to six decimals look for
DecimalFormat fourDigit = new DecimalFormat("#,##0.0000");//format to 4 decimal place
and add two more zeros after the decimal point.

Some sensible choices

Garmin GPX:

<trkpt lat="49.5946752559" lon="10.9516754933"><ele>292.38</ele><time>2019-07-14T13:46:42Z</time></trkpt>

digiKam automatic geotagging essentially keeps the precision as displayed by exiftool:

karl@erlangen:~> exiftool /home/Albums/Bilder/2019/2019-07-14/p1300957.jpg |grep GPS
GPS Version ID : 2.0.0.0
GPS Altitude Ref : Above Sea Level
GPS Map Datum : WGS-84
GPS Altitude : 294.4 m Above Sea Level
GPS Latitude : 49 deg 35' 40.24" N
GPS Latitude Ref : North
GPS Longitude : 10 deg 56' 36.83" E
GPS Longitude Ref : East
GPS Position : 49 deg 35' 40.24" N, 10 deg 56' 36.83" E
karl@erlangen:~>

RobM

Posts: 4,190
Registered: 4-Aug-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 19 Jul 19, 16:55   in response to: karlmistelberger in response to: karlmistelberger
 
  Click to reply to this thread Reply
karlmistelberger wrote:
That is not a problem, it is a design choice. To change to six decimals look for
DecimalFormat fourDigit = new DecimalFormat("#,##0.0000");//format to 4 decimal place
and add two more zeros after the decimal point.

Some sensible choices

I guess what is missing in the gps data is the number of satellites and phone masts used to determine the positional accuracy ;) But for letting someone know where you took a photo/video is, I think within 15 feet/5 metres (four decimal points) is enough.
JeffTucker

Posts: 8,354
Registered: 31-Jan-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 19 Jul 19, 18:18   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Hey, I want to know whether the photographer was standing or kneeling!

And I think the tool should connect to Google maps and automatically retrieve information about nearby points of interest. It should then embed thumbnail images for each of those locations into the video, so visitors can see them when dragging the progress bar.

Beta by Monday?
RobM

Posts: 4,190
Registered: 4-Aug-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 19 Jul 19, 20:15   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
jGromit wrote:
Hey, I want to know whether the photographer was standing or kneeling!

And I think the tool should connect to Google maps and automatically retrieve information about nearby points of interest. It should then embed thumbnail images for each of those locations into the video, so visitors can see them when dragging the progress bar.

Beta by Monday?

Definitely ready for Monday, I’m just not saying what year!

As much fun as this has been, I think it is time to call time on the original request and consider this closed, we know David will implement gps for videos if metadata extractor library ever supports it. Until then we have a workable solution and other things to occupy our time.
AndreWolff

Posts: 2,360
Registered: 14-Dec-2007
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 20 Jul 19, 11:30   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
AndreWolff wrote:
RobM wrote:
Sorry, but it’s good enough for me and I have other, non-jAlbum, things that need to be done over the next few months.
Well, my points are easy to implement as you can see in attached file.

There is a problem with manual input:
Manual input of Location 51.800198, 5.247233 gives as user variable gpsLocation 51.8001,5.2472 so 2 decimals are lost!
Note that Google Earth gives the waypoints in 6 decimals.

That is not a problem, it is a design choice. To change to six decimals look for
DecimalFormat fourDigit = new DecimalFormat("#,##0.0000");//format to 4 decimal place
and add two more zeros after the decimal point.
That is not sufficient, I had too to remove lines like:
if(latDecimals > 5) lat = lat.substring(0, lat.indexOf(".")+5);

Also, instead of remming out each line in a block of code use
/*
A block of code
That is not active
*/
It is less typing and easier to read. Or just delete the code altogether, even easier still.
Correct, but I thought in this way it was easier for you to see what I had changed.

Anyhow my modified version in again enclosed.

I understand you will not change anything, but it is weird that if I copy valid values from a Google Earth way-point, like 51.800198 I get an error message!
I think the minimal change you should apply for manual input in your tool is to allow values with or without a + sign.
AndreWolff

Posts: 2,360
Registered: 14-Dec-2007
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 20 Jul 19, 11:48   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Your tool (modified and unmodified) generates a crash if I select 'Edit' in the right mouse menu after fetching the GPS coordinates of a video:

Exception in thread "AWT-EventQueue-0" java.security.PrivilegedActionException: bsh.EvalError: Command not found: saveUI() : at Line: 66 : in file: inline evaluation of: ``/*   * This script produces the user interface for the PhotoSwipe skin.   *   *  . . . '' : saveUI ( ) 

Called from method: setAlbumObject : at Line: -1 : in file: <Called from Java Code> : <Compiled Java Code>
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	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)
Caused by: bsh.EvalError: Command not found: saveUI() : at Line: 66 : in file: inline evaluation of: ``/*   * This script produces the user interface for the PhotoSwipe skin.   *   *  . . . '' : saveUI ( ) 

Called from method: setAlbumObject : at Line: -1 : in file: <Called from Java Code> : <Compiled Java Code>
	at bsh.Name.invokeLocalMethod(Name.java:953)
	at bsh.Name.invokeMethod(Name.java:804)
	at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
	at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
	at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
	at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
	at bsh.BSHBlock.eval(BSHBlock.java:80)
	at bsh.BshMethod.invokeImpl(BshMethod.java:362)
	at bsh.BshMethod.invoke(BshMethod.java:258)
	at bsh.BshMethod.invoke(BshMethod.java:186)
	at bsh.This.invokeMethod(This.java:352)
	at CustomUI.setAlbumObject(BeanShell Generated via ASM (www.objectweb.org))
	at se.datadosen.explorer.JEditPanel.fireEditingAlbumObject(JEditPanel.java:1247)
	at se.datadosen.explorer.JEditPanel.setAO(JEditPanel.java:336)
	at se.datadosen.explorer.JAlbumExplorer.lambda$setEditView$21(JAlbumExplorer.java:3722)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(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)
	... 9 more
You get a black window not only for the just selected video, but also for the other images and videos.

It is a silent crash and it does not prevent making an album with the fetched coordinates.

I use jAlbum 18.4b1 and Windows 10.
karlmistelberger

Posts: 178
Registered: 5-Dec-2013
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 20 Jul 19, 11:50   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
I understand you will not change anything, but it is weird that if I copy valid values from a Google Earth way-point, like 51.800198 I get an error message!
I think the minimal change you should apply for manual input in your tool is to allow values with or without a + sign.

I have given up using jAlbum for geo-tagging. digiKam (there is a Windows version too) has a powerful editor:

https://docs.kde.org/trunk5/en/extragear-graphics/digikam/tool-geolocation.html
https://download.kde.org/stable/digikam/6.1.0/

Regarding accuracy GPS devices vastly differ:

"Well below our community’s radar, a team of volunteers have been working to build a custom GPS, and the software to power it, in order to make a highly accurate map of the Pacific Crest Trail. Here’s a glimpse into what they’ve been working on for the past year and a half. The team, made up of retired technology professionals, has built these custom Geo Loggers as a gift to the trail."

https://www.pcta.org/2014/ultra-high-tech-mapping-pct-long-distance-geo-logger-19469/
RobM

Posts: 4,190
Registered: 4-Aug-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 20 Jul 19, 12:32   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
Your tool (modified and unmodified) generates a crash if I select 'Edit' in the right mouse menu after fetching the GPS coordinates of a video
The tool is not running after getting the gps data, so it can only be due to the presence of the user variables, that the tool creates that is causing a crash. In addition, I don’t get any error on my Mac, so it is either a Windows problem, or if other Windows users don’t have a problem then your PC.

In either event, there is nothing I can do other than suggest you switch to another project and then reload the original again before entering edit mode.
JeffTucker

Posts: 8,354
Registered: 31-Jan-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 20 Jul 19, 13:07   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
... if other Windows users don’t have a problem then your PC.

That one. No crash here.
RobM

Posts: 4,190
Registered: 4-Aug-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 20 Jul 19, 14:29   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
jGromit wrote:
RobM wrote:
... if other Windows users don’t have a problem then your PC.

That one. No crash here.

One thing I overlooked was the skin being used, try another skin from another developer.
JeffTucker

Posts: 8,354
Registered: 31-Jan-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 20 Jul 19, 14:43   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
One thing I overlooked was the skin being used, try another skin from another developer.

I believe I've detected a pattern....
Legend
Forum admins
Helpful Answer
Correct Answer

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