Having some issues using the Command Line Tools (on Windows 10) with videos from my Garmin Dashcam and hoping someone can help. I have managed to get 1 gpx file per video (with some help from the program ExifTool). In a folder I have the following:
I want to take the date and time from the gpx files rather than from the videos (as trying it with the videos is giving me an error and all the resulting JPEGs were taken in 1970!).
Here’s the code I have been trying but I’m not sure how to process all files in the folder in one go (each is 1 min long so feeding in the name of each mp4/gpx file combination manually would take forever):
…\mapillary_tools.exe sample_video --video_import_path “20190908” --advanced
…\mapillary_tools.exe process --advanced --import_path “20190908\mapillary_sampled_video_frames” --user_name “X” --geotag_source “gpx” --geotag_source_path “20190908/???” --overwrite_all_EXIF_tags
As you can see the mapillary_tools.exe is 2 folders above the working folder where I have put the code in a Windows batch file. The mp4/gpx files are in folder “20190908” in this working folder.
Is it possible to automatically work out the name of the gpx file from the name of each mp4 file? I have put in “???” above as I don’t know what to put in here.