I’m working the whole day to get the Max 2 files compatible with Street View Studio, no luck unfortunately… Gemini was very helpful, but no luck. I can extract the GPX with the Power Shell I created, that’s not an issue, but using in Streetview is an pain in the … The GPX file is different than the one they used for the Max 1, the Max 2 has more precise data but SVS doesn’t like it…
See the batch script below I use for the basic stuff to get the GPX, it should work for Max 2. You’ll need gpx.fmt file for this and ffmpeg and Exiftools and ofcourse Mapillary tools.
I’ve got a PS script for more complex work, but this batch file should do the trick for you (GPX file). Change al the directories to yours.
CD C:\Users\miche\Dropbox\mapillary
REM Extraction of GoPro MET data
for %%i in (C:\Users\miche\Desktop\GoPro*.360) do ffmpeg -i “%%i” -map 0:3 -c copy “C:\Users\miche\Desktop\GoPro%%~ni_gpmf.mov”
REM Combine GoPro MET data with video data (MP4 file from GoPro Player conversion)
for %%i in (C:\Users\miche\Desktop\GoPro*.mp4) do ffmpeg -i “%%i” -i “C:\Users\miche\Desktop\GoPro%%~ni_gpmf.mov” -map 0 -map -0:3 -map 1 -c copy “C:\Users\miche\Desktop\GoPro\Final%%~ni_gpmf_final.mov”
REM Time correction
for %%i in (C:\Users\miche\Desktop\GoPro*.360) do exiftool -TagsFromFile “%%i” “-time:all>time:all” “-GPSDateTime<GPSDateTime” “-TrackDate>TrackDate” -P -overwrite_original “C:\Users\miche\Desktop\GoPro\Final%%~ni_gpmf_final.mov”
mapillary_tools sample_video --video_sample_distance 1.0 C:\Users\miche\Desktop\GoPro\Final"
mapillary_tools process --filetypes image C:\Users\miche\Desktop\GoPro\Final\mapillary_sampled_video_frames
@echoechoechoecho off
rem This script copies all .mov files in a specified directory to .mp4 files
setlocal enabledelayedexpansion
rem Change to the target directory
cd “C:\Users\miche\Desktop\GoPro\Final”
if %errorlevel% neq 0 (
echo Error: Could not change to directory “C:\Users\miche\Desktop\GoPro\Final”.
echo Please ensure the path is correct and accessible.
pause
exit /b 1
)
echo Working in directory: %cd%
echo.
rem Loop through each .mov file in the current directory
for %%f in (*.mov) do (
rem Define the new filename with .mp4 extension
set “newname=%%~nf.mp4”
rem Check if the source file exists
if exist "%%f" (
rem Check if a file with the new name already exists
if not exist "!newname!" (
rem Copy the file. The original .mov file remains.
copy "%%f" "!newname!"
echo Copied "%%f" to "!newname!"
) else (
echo Warning: Skipping "%%f" as "!newname!" already exists.
)
) else (
echo Warning: File "%%f" not found in the current iteration.
)
)
echo.
echo Copying process complete.
endlocal
for %%i in (C:\Users\miche\Desktop\GoPro\Final*.mp4) do exiftool -p gpx.fmt -ee “%%i” > “C:\Users\miche\Desktop\GoPro\Final%%~ni.gpx”
mapillary_tools upload --user_name **** C:\Users\miche\Desktop\GoPro\Final\mapillary_sampled_video_frames --num_upload_workers=8
pause