So I’m getting this error when I try to use the command:
usage: see -h for available tools and corresponding arguments, add --advanced to see additional advanced tools and/or arguments and --version to see version.
Mapillary import tool: error: argument tool: invalid choice: ‘video_process’ (choose from ‘process’, ‘upload’, ‘process_and_upload’)
Doesn’t seem like mapillary has the “video_process” command anymore?
My command looks like this:
mapillary_tools video_process --import_path "images/" \
--video_import_path "2788_01_GS.mp4" \
--user_name "olajuulholm" --advanced \
--geotag_source "gopro_videos" \
--geotag_source_path "2788\ 01\ GS.360" \
–-video_start_time 1625256332 \
--interpolate_directions \
--video_sample_interval 0.5 \
--overwrite_EXIF_gps_tag
Update: I got the script to work after I installed some xcode package. Got a ffmpeg issue to solve, brb.
Update 2: solved the ffmpeg issue. Just uninstalled it and reinstalled it -duh, silly me. That fixed it. I made some adjustment to the code above, which did give me geotagged photos from my GoPro .mp4 file. One of the changes I made was removing --video_start_time. I couldn’t get it to work, so I went with --use_gps_start_time.
mapillary_tools video_process --import_path "images/" \
--video_import_path "2788_01_GS.mp4" \
--user_name "olajuulholm" \
--advanced \
--geotag_source "gpx" \
--geotag_source_path "2788_01_GS.gpx" \
--use_gps_start_time \
--interpolate_directions \
--video_sample_interval 0.5 \
--overwrite_EXIF_gps_tag
My issue now is that Mapillary won’t accept the photos, since they are missing EXIF data about capture time and the GPS data is not stored correctly? I would have uploaded a screenshot, but that doesn’t seem to be possible in this forum.
When I run the code all the date gets packed into the EXIF tag imageDescription instead of their respective tags. Does anyone if I’m missing something in my code that would fix that?
{"MAPSettingsUsername": "my_username", "MAPSettingsUserKey":
"some_random_number", "MAPLatitude": 59.8892343, "MAPLongitude": 10.7944154,
"MAPCompassHeading": {"TrueHeading": 26.641703586513586, "MagneticHeading":
26.641703586513586}, "MAPCaptureTime": "2021_07_02_20_05_32_765",
"MAPAltitude": 194.712, "MAPSequenceUUID": "30567513-eb0e-484d-a6c5-
488ded93f4a5", "MAPOrientation": 1, "MAPDeviceMake": "none", "MAPDeviceModel":
"none", "MAPMetaTags": {"strings": [{"key": "mapillary_tools_version", "value": "0.7.4"}]},
"MAPPhotoUUID": "1c0b9232-5d2d-4647-b703-6dc9ca19b305"}