|
Replies:
103
-
Pages:
7
[
1
2
3
4
5
| Next
]
-
Last Post:
23 Jul 19, 15:33
Last Post By: AndreWolff
|
|
|
Posts:
2,357
Registered:
14-Dec-2007
|
|
|
Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted:
23 Jul 16, 14:37
|
|
|
I normally make it possible to display the location where a pictures is made in Google Maps. The GPS coordinates are fetched from the EXIF data of a picture. These data are added via Lightroom or via my program EditPhotoInfo.
I like now too to display the location where a movie has been recorded, so the GPS coordinates of a movie should be added to the data used by jAlbum. I don't think that a movie has an EXIF data structure as used in jpg files, so the GPS coordinates should probably stored in a text files for jAlbum.
But how it is implemented is not important for me, as long as the GPS coordinets can be fetched in a skin.
If you implement this, to be consistent, I think you should also make it possible to add the GPS coordinates to a picture in jAlbum.
|
|
|
Posts:
4,324
Registered:
18-Oct-2002
|
|
|
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted:
26 Jul 16, 17:00
in response to: AndreWolff
|
|
|
Thanks you. I agree in principle that one should be consistent with these features, no matter if we're talking about images or videos. The next step will likely be to move jAlbum to a newer version of the metadata-extractor library, capable of extracting EXIF info from more file types than just JPEG images.
|
|
|
Posts:
2,357
Registered:
14-Dec-2007
|
|
|
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted:
26 Jul 16, 18:57
in response to: davidekholm
|
|
|
The next step will likely be to move jAlbum to a newer version of the metadata-extractor library, capable of extracting EXIF info from more file types than just JPEG images.
Do movies have an EXIF data block?
And if they have, I have no idea how to add the GPS coordinates to such a block by another program, so I think you should add special variables to jAlbum for the GPS coordinates.
You could automatically move the GPS coordinates of JPEG files to the same data structure and offer for the skins global variables or an access function to this new GPS buffer.
|
|
|
Posts:
2,357
Registered:
14-Dec-2007
|
|
|
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted:
23 Oct 17, 10:15
in response to: davidekholm
|
|
|
Thanks you. I agree in principle that one should be consistent with these features, no matter if we're talking about images or videos. The next step will likely be to move jAlbum to a newer version of the metadata-extractor library, capable of extracting EXIF info from more file types than just JPEG images.
The newer version is now available, but I still can't add a GPS location to a video.
|
|
|
Posts:
2,357
Registered:
14-Dec-2007
|
|
|
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted:
15 Jul 19, 13:51
in response to: davidekholm
|
|
|
Thanks you. I agree in principle that one should be consistent with these features, no matter if we're talking about images or videos. The next step will likely be to move jAlbum to a newer version of the metadata-extractor library, capable of extracting EXIF info from more file types than just JPEG images.
I just installed jAlbum 18.3.3 but I see no GPS coordinates for videos.
Is that not implemented yet?
|
|
|
Posts:
4,185
Registered:
4-Aug-2006
|
|
|
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted:
15 Jul 19, 15:07
in response to: AndreWolff
|
|
|
The metadata extractor library by Drew Noakes does not extract GPS data from videos. If you want to use GPS data use my external tool I recently updated it to add the GPS data to jAlbum’s gpsLocation variable, as a user variable visible in edit mode. It also puts that data on the clipboard.
|
|
|
Posts:
2,357
Registered:
14-Dec-2007
|
|
|
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted:
15 Jul 19, 16:00
in response to: RobM
|
|
|
The metadata extractor library by Drew Noakes does not extract GPS data from videos. If you want to use GPS data use my external tool I recently updated it to add the GPS data to jAlbum’s gpsLocation variable, as a user variable visible in edit mode. It also puts that data on the clipboard.
If that works correctly, why is that tool not integrated in jAlbum, so that varable gpsLatitude can also be used for a video?
|
|
|
Posts:
4,185
Registered:
4-Aug-2006
|
|
|
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted:
15 Jul 19, 16:22
in response to: AndreWolff
|
|
|
There is, as yet, no standard for storing GPS data in videos, so it is unlikely jAlbum will directly support video GPS metadata.
My tool uses ffmpeg, which is far from ideal for use as a core process, but it is used by jAlbum and why I made the tool. I have only tested it with videos at a static location.
If you want to use video gps data, with the camera being moved during recording, then you could try using exiftool to create gpx files. Again though, don’t expect exiftool’s functionality to be incorporated within jAlbum; if you want that then you would need to write your own tool.
|
|
|
Posts:
8,347
Registered:
31-Jan-2006
|
|
|
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted:
15 Jul 19, 16:42
in response to: RobM
|
|
|
|
There is, as yet, no standard for storing GPS data in videos
But maybe it's getting there. A quick early-morning test video shot out the front door a couple of days ago:
https://jefftucker.jalbum.net/20190713_070734.mp4
jAlbum/metadata-extractor doesn't show any GPS info when asked to "list metadata," but exiftool does! See screenshot. The coordinates are even correct, mirabile dictu.
|
|
|
Posts:
2,357
Registered:
14-Dec-2007
|
|
|
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted:
15 Jul 19, 16:46
in response to: RobM
|
|
|
Well Rob I just tested your tool under Windows 10.
The text of my video dropped in the clipboard is:
https://www.google.com/maps/?q=+52.2530,+006.1657+029.217
but Google Maps reports that as not found:
Maps kan 52.2530, 006.1657 029.217 niet vinden
The correct string should be:
https://www.google.com/maps/?q=+52.2530,+6.1657
But anyhow I do need an automatic tool.
Currently I use this code:
var gMap = [<ja:fileiterator start="0" >
<ja:if exists="gpsLatitude">
<%
loc= getLocation();
%>
'${loc}',
</ja:if>
<ja:else>'',</ja:else></ja:fileiterator>
];
So it would be nice if you adapt your tool so that I can put in front of this code something like this: <ja:if test="<%=fileCategory == Category.video %>
Fill_gpsLatitude();
</ja:if>
Edited by: AndreWolff on 15-Jul-2019 16:49
|
|
|
Posts:
4,185
Registered:
4-Aug-2006
|
|
|
Posts:
4,185
Registered:
4-Aug-2006
|
|
|
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted:
15 Jul 19, 17:07
in response to: AndreWolff
|
|
|
Send me a link to that video so I can use it to correct my code.
But anyhow I do need an automatic tool.
Currently I use this code:
var gMap = [<ja:fileiterator start="0" >
<ja:if exists="gpsLatitude">
<%
loc= getLocation();
%>
'${loc}',
</ja:if>
<ja:else>'',</ja:else></ja:fileiterator>
];
Not sure what your method getLocation() is doing, but anyway, I can update the tool to provide jAlbum variables for gpsLatitude and gpsLongitude too.
|
|
|
Posts:
2,357
Registered:
14-Dec-2007
|
|
|
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted:
15 Jul 19, 17:23
in response to: RobM
|
|
|
|
Send me a link to that video so I can use it to correct my code.
See attached files and this link: https://andrewolff.jalbum.net/Vecht_SaharaN_SS4/slides/IMG_1043.mp4
Not sure what your method getLocation() is doing.
Not important for this discussion, it converts the contents of gpsLatitude in a string like:
'52.514780,6.470620'
Edited by: AndreWolff on 15-Jul-2019 17:26
|
|
|
Posts:
4,324
Registered:
18-Oct-2002
|
|
|
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted:
15 Jul 19, 21:32
in response to: AndreWolff
|
|
|
If there is some standard for embedding GPS coordinates within videos, post a feature request for the ability to extract these coordinates to the maintainers of the Metadata-extractor library (The Github page for Metadata-extractor)
|
|
|
Posts:
2,357
Registered:
14-Dec-2007
|
|
|
Re: Make it possible to add GPS coordinates to movies and pictures in jAlbum
Posted:
15 Jul 19, 22:45
in response to: davidekholm
|
|
|
If there is some standard for embedding GPS coordinates within videos, post a feature request for the ability to extract these coordinates to the maintainers of the Metadata-extractor library (The Github page for Metadata-extractor)
Why do you need a standard if the code of Rob can already extract the gps coordinates from a video?
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|