javascriptvideogeotagging

Extract geotags from video file with Javascript


I want to get the geotags from a video and mark it on map. I've found exif-js but this only works with images.

I've tried it with ffmpeg, a server solution which works, but the size of videos that I worked is about 1GB to 3GB.

Is it possible to do with Javascript instead?

Thanks in advance.


Solution

  • Browsers do not have built-in methods for extracting geotags from a video. With Web APIs you can only use HTMLMediaElement (use event loadedmetadata) or VideoPlaybackQuality.

    Try using ffmpeg.js.

    This library provides FFmpeg builds ported to JavaScript using Emscripten project. Builds are optimized for in-browser use: minimal size for faster loading, asm.js, performance tunings, etc. Though they work in Node as well.