nextcloud / maps

🌍🌏🌎 The whole world fits inside your cloud!
https://apps.nextcloud.com/apps/maps
GNU Affero General Public License v3.0
502 stars 89 forks source link

New Feature: Video track on map #642

Open aleksandrmetik opened 3 years ago

aleksandrmetik commented 3 years ago

Hello Android write GPS data layer to MP4 files. We can extract it to GPX format. For example: exiftool -p gpx.fmt FILE.mp4 >out.gpx

A little bit of my thinking about logic:

These are my approximate considerations. I'm not sure it's perfect logic. We should definitely consider the need to normalize GPS noise. According to my observations, the noise is especially strong in the first 1-2 minutes of the video, while the GPS "warms up" and less accurate A-GPS is used.

A little bit of considerations about functionality:

Thanks!

aleksandrmetik commented 2 years ago

I have implemented a PoC to make sure that it can work. My PoC is a bash script that:

When scanning through NC/Maps we get GPS tracks as well as a photo on the map.

ToDo:

Unfortunately, I don't have much time, but maybe this summer I will finish my work and upload a stable MVP version of the script to my repository. Thanks

executed commented 1 month ago

@aleksandrmetik hope you had a great summer back in 2022 as well as the following ones. Do you happen to have any updates on this?

aleksandrmetik commented 1 month ago

Hi @executed Before developing this idea, I asked all my friends to record and send short videos in the original format/source. Unfortunately, 99% of Android devices does not record GPS layer metadata in MP4. There are dedicated Android camera apps that can do this, but agree that that potential usefulness for the vast majority of NextCloud users tends to zero. Maybe in the future when big vendors like Google decide to globally add GPS XMP metadata, or develop a new format for storing video data and GPS, but obviously now this idea from my side is premature.

aleksandrmetik commented 1 month ago

This could be interesting if users manually “put” the video to the Nextcloud map as a single picture, or a hand-drawn track. It can be done not only for MP4/MOV files. I think it should be realized on NC backend side. This would be useful for organizing video files like as photo files.

executed commented 1 month ago

Oh wow, did not realize that Android does not store coordinates... Thanks for the detailed response!