#------------------------------------------------------------------------------ # File: video.fmt # # Description: Example ExifTool print format file for generating GIS .geojson for video LineString, needs .srt additions # # Usage: exiftool -ee -p video.fmt FILE [...] > out.geojson # Usage: exiftool -n -p video.fmt clubhouse\*.mp4 > clubhouse.geojson # # Requires: ExifTool version 10.49 or later # # Revisions: 2018/07/21 - S. Noble created # # Notes: 1) Input files must contain GPSLatitude and GPSLongitude. # 2) Add the -ee option to extract the full track from video files. #------------------------------------------------------------------------------ #[HEAD]{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, #[HEAD]"features": [ #[IF] $gpslatitude $gpslongitude #[BODY]{ "type": "Feature", #[BODY]"properties": { "id" : "${createdate#;DateFmt("%Y%m%d%H%M%S")}", "folder": "$Directory", "name": "$FileName", "date" : "${createdate#;DateFmt("%Y-%m-%d")}", "time" : "${createdate#;DateFmt("%H:%M:%S")}", "camera": "$Model"}, #[BODY]"geometry": { "type": "LineString", "coordinates": [ #[BODY][$gpslongitude,$gpslatitude],[150,-30] #[BODY][$text] #[BODY]] } }, #[TAIL]] }