Geotagging of Videos (previously posted in wrong forum)

Paul Munters
Paul Munters's picture

Joined: 2011-09-30
Posts: 1
Posted: Wed, 2011-10-05 13:42

--- Previously posted in wrong forum ----

Dear All,

I use Gallery 3 on a Linux machine with FFMPEG installed, and a.o Gallery modules Video, Transcode, Videodimensions, EXIF GPS Data. I have a Sony Cybershot HX9V that puts GPS information in the metatags of AVCHD video (.mts files with h264 structure). I currently use FFMPEG to create smaller MP4s (also h264) of these files (with a small bash script), that I then subsequently put in Gallery 3 with serveradd. The video can be played directly, but the latitide and longitude fields are not set. This is probably logical as the MP4 container does not provide Geotags, and can be done by hand by clicking edit movie and enter the longitude and latitude.

Just to give have an idea of the META info (through exivtools)included in the .mts files:

GPS Altitude : 76 m Above Sea Level
GPS Latitude : 52 deg 1' 46.25" N
GPS Longitude : 4 deg 42' 30.02" E
GPS Position : 52 deg 1' 46.25" N, 4 deg 42' 30.02" E

An elegant solution would be if I could use your module "Add Video" that reads .mts files, have FFMEPG convert the .mts video while reading the geotags and putting these in the respective fields of the database (and not inside the MP4). This way the MP4s can be played directly without the need to download them, while also showing the geotag/google map. Seems to be a combination of existing functionality spread over the various modules. Maybe someone has suggestions on how to achieve this?

Thank you and with kind regards,

Paul Munters