Skip to content

Instantly share code, notes, and snippets.

@dalekunce
Last active May 13, 2017 09:57
Show Gist options
  • Save dalekunce/d75264cd9a30a510d048 to your computer and use it in GitHub Desktop.
Save dalekunce/d75264cd9a30a510d048 to your computer and use it in GitHub Desktop.
Mapillary Setup and Tools

#merge gpx files

gpsbabel -i gpx -f file1.gpx -f file2.gpx -o gpx -F merged.gpx

#attach GPX to photo get needed libs first

pip install gpxpy
brew install pyexiv2 exiftool
git clone https://github.com/mapillary/mapillary_tools.git
python geotag_from_gpx.py path/to/photos gpx_track.gpx timeoffset

#jhead to fix the timestamps on the files

brew install jhead
jhead -ft *.JPG

#make a movie

brew install ffmpeg
ffmpeg -f image2 -i geotag_%06d.JPG -r 25 -s 1280x960 ../movie.mp4

#clip the bottom 840px off of images

mogrify -verbose -format jpg -gravity south -chop 0x840 *.JPG

#flip the image

exiftool -Orientation=x -n *.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment