[英]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.
我找到了exif-js,但这仅适用于图像。
I've tried it with ffmpeg
, a server solution which works , but the size of videos that I worked is about 1GB to 3GB. 我已经尝试了
ffmpeg
,它是一种可以工作的服务器解决方案 ,但是我工作的视频大小约为1GB到3GB。
Is it possible to do with Javascript instead? 可以代替Java语言吗?
Thanks in advance. 提前致谢。
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 .
使用Web API,您只能使用HTMLMediaElement (使用事件loadedmetadata )或VideoPlaybackQuality 。
Try using ffmpeg.js . 尝试使用ffmpeg.js 。
This library provides FFmpeg builds ported to JavaScript using Emscripten project.
该库提供了使用Emscripten项目将FFmpeg构建移植到JavaScript的功能。 Builds are optimized for in-browser use: minimal size for faster loading, asm.js, performance tunings, etc. Though they work in Node as well.
已针对浏览器内部使用对构建进行了优化:最小的大小可加快加载速度,asm.js,性能调整等。尽管它们也可在Node中使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.