BlackVue upload with tools 12.1

Thought I’d jump in and ask, rather than try pulling the code apart.

@tao @boris

I haven’t uploaded any BlackVue vids for a while, so grabbed the newest tools and tried. Seems the syntax has changed from;

mapillary_tools --verbose upload_blackvue --user_name $MAPILLARY_USER $INPUT
to
mapillary_tools --verbose process_and_upload --user_name $MAPILLARY_USER $INPUT

Correct?

On my first try it failed saying the GPX data was bad in the GoPro Hero.

The vids are not from a GoPro. How can I force BlackVue upload?

The BlackVue DR900S-1CH has the Mapillary firmware and samples at 2FPS

Tnxs

Okay got it going, but note upload_blackvue is deprecated. It’s not overly clear in the github README.md that no description.json is used to do the upload (only), so no “process” step is involved. Only the upload_history logs to avoid server dupes…

1 Like

@bob3bob3 yes, upload_blackvue the command got deprecated. We should use process_and_upload BLACKVUE.mp4 which supports all listed video formats (include BlackVue). If not, could you share me a sample short blackvue video for debug and support?

Hello @tao
Yes if you wouldn’t mind testing one of these BlackVue mp4

Creating virtual environment
mkdir venv
python3 -m venv venv
source venv/bin/activate
pip3 install wheel
pip3 install --upgrade mapillary_tools

Command
source /home/bcameron/Thing/Mapillary/lapp600/venv/bin/activate
mapillary_tools --verbose process_and_upload 20250319Out 20250319In/*.mp4
–user_name “bob3bob3” 2>&1 | tee -a 20250319.log

Log 20250319.log
2025-03-21 11:56:59,555 - DEBUG - mapillary_tools version 0.13.3
2025-03-21 11:56:59,555 - DEBUG - CLI param: verbose: True
2025-03-21 11:56:59,556 - DEBUG - CLI param: import_path: 20250319Out, 20250319In/20250319_080122_NF.mp4, 20250319In/20250319_080223_NF.mp4, 20250319In/20250319_080526_NF.mp4, 20250319In/20250319_080728_NF.mp4 and 1 more
2025-03-21 11:56:59,556 - DEBUG - CLI param: skip_subfolders: False
2025-03-21 11:56:59,556 - DEBUG - CLI param: skip_process_errors: False
2025-03-21 11:56:59,556 - DEBUG - CLI param: filetypes: image, camm, video, blackvue, gopro and 1 more
2025-03-21 11:56:59,556 - DEBUG - CLI param: overwrite_all_EXIF_tags: False
2025-03-21 11:56:59,556 - DEBUG - CLI param: overwrite_EXIF_time_tag: False
2025-03-21 11:56:59,556 - DEBUG - CLI param: overwrite_EXIF_gps_tag: False
2025-03-21 11:56:59,556 - DEBUG - CLI param: overwrite_EXIF_direction_tag: False
2025-03-21 11:56:59,556 - DEBUG - CLI param: overwrite_EXIF_orientation_tag: False
2025-03-21 11:56:59,556 - DEBUG - CLI param: geotag_source: exif
2025-03-21 11:56:59,556 - DEBUG - CLI param: video_geotag_source:
2025-03-21 11:56:59,557 - DEBUG - CLI param: interpolation_use_gpx_start_time: False
2025-03-21 11:56:59,557 - DEBUG - CLI param: interpolation_offset_time: 0.0
2025-03-21 11:56:59,557 - DEBUG - CLI param: offset_angle: 0.0
2025-03-21 11:56:59,557 - DEBUG - CLI param: offset_time: 0.0
2025-03-21 11:56:59,557 - DEBUG - CLI param: cutoff_distance: 600.0
2025-03-21 11:56:59,557 - DEBUG - CLI param: cutoff_time: 60.0
2025-03-21 11:56:59,557 - DEBUG - CLI param: interpolate_directions: False
2025-03-21 11:56:59,557 - DEBUG - CLI param: duplicate_distance: 0.1
2025-03-21 11:56:59,557 - DEBUG - CLI param: duplicate_angle: 5.0
2025-03-21 11:56:59,557 - DEBUG - CLI param: user_name: bob3bob3
2025-03-21 11:56:59,557 - DEBUG - CLI param: dry_run: False
2025-03-21 11:56:59,613 - DEBUG - Validating 5 metadatas
2025-03-21 11:56:59,628 - INFO - Checking upload status for 5 metadatas
2025-03-21 11:56:59,628 - INFO - 5 gopro(s) read in total
2025-03-21 11:56:59,629 - ERROR - 5 gopro(s) failed due to MapillaryGPXEmptyError
2025-03-21 11:56:59,629 - ERROR - MapillaryProcessError: Failed to process 5 files. To skip these errors, specify --skip_process_errors
Traceback (most recent call last):
File “/home/data.lap/mountpoints/PATA-500/spare/pictemp/Thing/Mapillary/lapp600/venv/lib/python3.11/site-packages/mapillary_tools/commands/main.py”, line 164, in main
args.func(argvars)
File “/home/data.lap/mountpoints/PATA-500/spare/pictemp/Thing/Mapillary/lapp600/venv/lib/python3.11/site-packages/mapillary_tools/commands/process_and_upload.py”, line 19, in run
ProcessCommand().run(args)
File “/home/data.lap/mountpoints/PATA-500/spare/pictemp/Thing/Mapillary/lapp600/venv/lib/python3.11/site-packages/mapillary_tools/commands/process.py”, line 253, in run
metadatas = process_finalize(
^^^^^^^^^^^^^^^^^
File “/home/data.lap/mountpoints/PATA-500/spare/pictemp/Thing/Mapillary/lapp600/venv/lib/python3.11/site-packages/mapillary_tools/process_geotag_properties.py”, line 650, in process_finalize
_show_stats(metadatas, skipped_process_errors=skipped_process_errors)
File “/home/data.lap/mountpoints/PATA-500/spare/pictemp/Thing/Mapillary/lapp600/venv/lib/python3.11/site-packages/mapillary_tools/process_geotag_properties.py”, line 405, in _show_stats
raise exceptions.MapillaryProcessError(
mapillary_tools.exceptions.MapillaryProcessError: Failed to process 5 files. To skip these errors, specify --skip_process_errors

Appreciated! I’ll look at it soon

@tao

Noticed a lot of github version updates over the last few weeks. Did the BlackVue vid I posted work with them?

Hey @bob3bob3 it’s supposed to be fixed in the latest release. Would you mind giving it a try?

# recommand use uv https://docs.astral.sh/uv/getting-started/installation/
❯ uvx --pre mapillary_tools --version
mapillary_tools version 0.14.0a2

# Process and upload
❯ uvx --pre mapillary_tools --verbose process_and_upload --user_name $MAPILLARY_USER $INPUT

Yes have tried 0.14.0a2 using the Linux executable. So far works well for both BlackVue mp4’s and EXIF jpgs’

There were some REDACTED words in the log, I’d guess unimportant;

2025-04-13 16:14:46,790 - DEBUG - HTTP GET https://graph.mapillary.com/me HEADERS={‘Authorization’: ‘[REDACTED]’} TIMEOUT=60
2025-04-13 16:14:47,287 - DEBUG - HTTP 200 (OK): {“id”: “xxxxxx”, “username”: “bob3bob3”}
2025-04-13 16:14:47,287 - INFO - Uploading to profile “bob3bob3”: {‘MAPSettingsUserKey’: ‘xxxxxxxxx’, ‘user_upload_token’: ‘[REDACTED]’, ‘MAPSettingsUsername’: ‘bob3bob3’}

Tnx much,

2 Likes

Thanks @bob3bob3, very happy to hear that.

Yeah those REDACTED are irrelevant. I will just remove them in the next release.