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,247
Registered: 31-Jan-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 17 Jul 19, 00:20   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
So I wonder goes something wrong with fetching the meta data?

Cross-check the results between what the metadata extractor coughs up (and is shown in jAlbum when you "list metadata") vs. what exiftool produces. If they're the same, that means that the metadata in your files is where the problem lies.

Using ancient files that have been manipulated in other applications is no way to do controlled testing.
AndreWolff

Posts: 2,356
Registered: 14-Dec-2007
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 17 Jul 19, 13:45   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
jGromit wrote:
Cross-check the results between what the metadata extractor coughs up (and is shown in jAlbum when you "list metadata") vs. what exiftool produces.
I am pretty sure that there is a Meta problem in jAlbum 18.4b1

Attached file IMG_0205_EXIFTOOL_Export.txt shows the exported results of the 2nd video in the test album exportred by program pyexiftoolgui,
File jAlbumMeta.txt shows the jAlbum meta block of the same video made with debug statements:
out.print("<!-- ");
out.print(" meta= " + meta);
out.print(" videoPath= " + videoPath);
out.print(" fileCategory= " + fileCategory);
out.print(" -->");
Note that file jalbumMeta.txt contains 2 lines with year 2013:
Quicktime sound.Creation Time=Mon May 06 10:41:09 CEST 2013, 
Quicktime sound.Modification Time=Mon May 06 10:41:21 CEST 2013, 
File IMG_0205_EXIFTOOL_Export.txt shows no 2013 text at all.

The meta block of the first video IMG_0877 shows exactly the same lines.

Next I made the album again, but the first video was excluded.
The meta data are in attached file jAlbumMetaFirstVideoRemoved.txt

Note that this file contains also no 2013 text.
Three lines are different in the 2 files:
Quicktime sound.Creation Time=Sun Sep 11 07:44:02 CEST 2011, 
Quicktime sound.Sample Rate=44100, 
Quicktime sound.Modification Time=Sun Sep 11 07:44:03 CEST 2011, 


BTW do you see that file File IMG_0205_EXIFTOOL_Export.txt contains GPS coordinates?

Edited by: AndreWolff on 17-Jul-2019 15:59
JeffTucker

Posts: 8,247
Registered: 31-Jan-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 17 Jul 19, 16:36   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
Please give us a link to the original IMG_0205.MOV file. My guess is that it was created in 2011, but that you did something to the sound track on it in 2013. The metadata-extractor shows the individual information for the sound track, separate from the video track, while exiftool does not. That's why you're not seeing the 2013 date in the output from exiftool.

But FFS, stop doing your testing with eight-year-old files whose history is unknown.

And yes, we know that exiftool extracts GPS information, but metadata-extractor does not. There has been discussed here already.
AndreWolff

Posts: 2,356
Registered: 14-Dec-2007
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 17 Jul 19, 16:55   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
jGromit wrote:
Please give us a link to the original IMG_0205.MOV file.
See https://www.andrewolff.nl/forum/IMG_0205.MOV
My guess is that it was created in 2011, but that you did something to the sound track on it in 2013. The metadata-extractor shows the individual information for the sound track, separate from the video track, while exiftool does not. That's why you're not seeing the 2013 date in the output from exiftool.
Can this explain why I see different meta data with and without the first video in the album?
But FFS, stop doing your testing with eight-year-old files whose history is unknown.
jAlbum can only handle recently recorded media?
RobM

Posts: 4,156
Registered: 4-Aug-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 17 Jul 19, 17:10   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
jGromit wrote:
Please give us a link to the original IMG_0205.MOV file.
See https://www.andrewolff.nl/forum/IMG_0205.MOV
My guess is that it was created in 2011, but that you did something to the sound track on it in 2013. The metadata-extractor shows the individual information for the sound track, separate from the video track, while exiftool does not. That's why you're not seeing the 2013 date in the output from exiftool.
I do not see any date in jAlbum metadata that is 2013.
Directories:
QuickTime (class com.drew.metadata.mov.QuickTimeDirectory)
QuickTime Sound (class com.drew.metadata.mov.media.QuickTimeSoundDirectory)
QuickTime Video (class com.drew.metadata.mov.media.QuickTimeVideoDirectory)
QuickTime Metadata (class com.drew.metadata.mov.metadata.QuickTimeMetadataDirectory)
QuickTime Metadata (class com.drew.metadata.mov.metadata.QuickTimeMetadataDirectory)
File Type (class com.drew.metadata.file.FileTypeDirectory)
File (class com.drew.metadata.file.FileSystemDirectory)
 
File type.Detected File Type Long Name=QuickTime Movie
File type.Detected File Type Name=MOV
File type.Detected MIME Type=video/quicktime
File type.Expected File Name Extension=mov
File.File Modified Date=Wed Jul 17 15:56:58 +01:00 2019
File.File Name=IMG_0205.MOV
File.File Size=431515 bytes
Quicktime metadata.Creation Date=2011-09-11T08:40:19+0200
Quicktime metadata.ISO 6709=+52.3723+006.6731/ 
Quicktime metadata.Make=Apple
Quicktime metadata.Model=iPad 2
Quicktime metadata.Software=4.3.5
Quicktime sound.Balance=0
Quicktime sound.Creation Time=Sun Sep 11 07:44:02 BST 2011
Quicktime sound.Format=MPEG-4, Advanced Audio Coding (AAC)
Quicktime sound.Modification Time=Sun Sep 11 07:44:03 BST 2011
Quicktime sound.Number of Channels=1
Quicktime sound.Sample Rate=44100
Quicktime sound.Sample Size=16
Quicktime video.Color Table=None
Quicktime video.Compression Type=H.264
Quicktime video.Compressor Name=H.264
Quicktime video.Creation Time=Sun Sep 11 07:44:02 BST 2011
Quicktime video.Depth=24-bit color
Quicktime video.Frame Rate=30
Quicktime video.Graphics Mode=Dither copy
Quicktime video.Height=320 pixels
Quicktime video.Horizontal Resolution=72
Quicktime video.Modification Time=Sun Sep 11 07:44:03 BST 2011
Quicktime video.Opcolor=32768 32768 32768
Quicktime video.Spatial Quality=512
Quicktime video.Temporal Quality=512
Quicktime video.Vendor=Unknown
Quicktime video.Vertical Resolution=72
Quicktime video.Width=568 pixels
Quicktime.Compatible Brands=[Apple QuickTime (.MOV/QT)]
Quicktime.Creation Time=Sun Sep 11 07:44:02 +01:00 2011
Quicktime.Current Time=0
Quicktime.Duration=2496
Quicktime.Duration in Seconds=00:00:05
Quicktime.Major Brand=Apple QuickTime (.MOV/QT)
Quicktime.Media Time Scale=600
Quicktime.Minor Version=0
Quicktime.Modification Time=Sun Sep 11 07:44:03 +01:00 2011
Quicktime.Next Track ID=3
Quicktime.Poster Time=0
Quicktime.Preferred Rate=1
Quicktime.Preferred Volume=1
Quicktime.Preview Duration=0
Quicktime.Preview Time=0
Quicktime.Selection Duration=0
Quicktime.Selection Time=0
JeffTucker

Posts: 8,247
Registered: 31-Jan-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 17 Jul 19, 17:11   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
Attachment IMG_0205_meta.png (42.2 KB)
AndreWolff wrote:
jAlbum can only handle recently recorded media?

Not the point. The point is that when you're testing something, you can't start out with a file that may have been post-processed by some other application, with unknown consequences. This is Software Testing 101.

Now, here's the metadata that jAlbum sees in that video - attached.

Look at the "sound" entries in this video. They are all showing 2011. I don't know what your code is doing. But this is not a jAlbum bug. This is not a metadata-extractor bug. This is your bug.

This is why, when you post a bug report, our first instinct is to assume that it's not a bug, but is just something you've screwed up. We've been burned too many times. There aren't enough hours in the day to keep tracking these down.
JeffTucker

Posts: 8,247
Registered: 31-Jan-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 17 Jul 19, 17:28   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Attachment IMG_0205_slide.png (398.7 KB)
And here's a slide page that displays the sound creation time (using Gromit).
AndreWolff

Posts: 2,356
Registered: 14-Dec-2007
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 17 Jul 19, 17:34   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
jGromit wrote:
Now, here's the metadata that jAlbum sees in that video - attached.
Yes I know, I showed this information in a more readable form in file jAlbumMetaFirstVideoRemoved.txt above.

Look at the "sound" entries in this video. They are all showing 2011.
The Video Creation Time=Sun Sep 11 07:44:02 +02:00 2011 so it is expected that
the sound.Creation Time is also Sun Sep 11 07:44:02 CEST 2011
What is the point?
I don't know what your code is doing. But this is not a jAlbum bug. This is not a metadata-extractor bug. This is your bug.
My code is doiing nothing, just printing the meta variable, which is made by the jAlbum nucleus, so it is a jAlbum bug.
This is why, when you post a bug report, our first instinct is to assume that it's not a bug, but is just something you've screwed up. We've been burned too many times. There aren't enough hours in the day to keep tracking these down.
Complete nonsense!
AndreWolff

Posts: 2,356
Registered: 14-Dec-2007
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 17 Jul 19, 17:40   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
jGromit wrote:
And here's a slide page that displays the sound creation time (using Gromit).
You still don't understand that the sound creation time is changed by the preceding video!

Read first my posts, before getting angry!
JeffTucker

Posts: 8,247
Registered: 31-Jan-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 17 Jul 19, 17:50   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
My apologies. I stand corrected.

I have managed to reproduce a case in which metadata are "bleeding over" from one video to the next, or even more strangely, in the reverse direction.

I'll bundle up a complete project for David to look at.
AndreWolff

Posts: 2,356
Registered: 14-Dec-2007
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 17 Jul 19, 19:29   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
jGromit wrote:
My apologies. I stand corrected.
Apologizes accepted!

I hope that you will re-think about your statement:

This is why, when you post a bug report, our first instinct is to assume that it's not a bug, but is just something you've screwed up.

I was lucky to find this bug this time, it was not easy to spot it!
JeffTucker

Posts: 8,247
Registered: 31-Jan-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 17 Jul 19, 19:44   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
No, that's still our first reaction. Even a stopped clock is right twice a day. ;)
AndreWolff

Posts: 2,356
Registered: 14-Dec-2007
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 18 Jul 19, 10:24   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
New file uploaded, fixed accuracy, changed grep to properly remove any number of leading zeros from latitude or longitude.
Your new version works fine! Thanks!

Now a new challenge: add GPS coordinates for a video without GPS coordinates.

The obvious way to do that is to use the jAlbum location window, but that does not work and I don't think that David will change this.

However if you use the Google Earth program and set a way point on the location of the video (see attached screen-shot), you can copy the coordinates to the clipboard.

So if you open after your 'No GPS data to extract', an input window you can enter the coordinates in your tool and save the result as you do already with a video with GPS information.
RobM

Posts: 4,156
Registered: 4-Aug-2006
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 18 Jul 19, 12:16   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
RobM wrote:
New file uploaded, fixed accuracy, changed grep to properly remove any number of leading zeros from latitude or longitude.
Your new version works fine! Thanks!
Thanks.
Now a new challenge: add GPS coordinates for a video without GPS coordinates.

The obvious way to do that is to use the jAlbum location window, but that does not work and I don't think that David will change this.

However if you use the Google Earth program and set a way point on the location of the video (see attached screen-shot), you can copy the coordinates to the clipboard.

So if you open after your 'No GPS data to extract', an input window you can enter the coordinates in your tool and save the result as you do already with a video with GPS information.

I will consider it, though it would be just as easy to open the video in edit mode and, in the user variables, create a longitude and latitude variable and then paste those values there.
AndreWolff

Posts: 2,356
Registered: 14-Dec-2007
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted: 18 Jul 19, 12:31   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
I will consider it, though it would be just as easy to open the video in edit mode and, in the user variables, create a longitude and latitude variable and then paste those values there.

That is correct, but user unfriendly: the user has to remember the user variable names and he /she can easy make format errors and sometimes the values are not saved.
That method is only for nerds!

I think we don't need 3 user variables, I tested it with only user variable 'gpsLocation'. I give my users this advice:

GPS location of a video can now be displayed if tool "Tool to get GPS link from video with GPS metadata" (see http://jalbum.net/forum/thread.jspa?threadID=54566&tstart=0) is used. If the video contains no GPS information, you can add the location manually: open the Google Earth program and set a way-point on the location where the video is recorded. Open the video in the jAlbum Explorer in Edit Mode and enter user variable 'gpsLocation' in the first row and enter the values in the 2nd row via the clipboard, for example '51.800198, 5.247233', finish with the Enter key to save the values. Select in the Google Earth preferences for the Latitude/Longitude display format 'Decimal degrees'.

This works OK, see https://andrewolff.jalbum.net/FancyBoxVideoTest/#S-10
Legend
Forum admins
Helpful Answer
Correct Answer

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