Python script to retrieve your images from a multicam setup

I havn’t shared my script as I have made a lot of tweaks specific for my computer setup.

Work flow is basically this:

  1. Identify mounted camera or memory card as recognised by script
  2. Get heading offset and store variable
  3. Copy all GPX data from card
  4. Copy all FIT data from card, and convert to GPX (Garmin VIRB XE)
  5. Copy all videos and photos from card, and add heading offset to filenames
  6. Make a merged copy of GPX
  7. Match video files with GPX files from same unit
  8. Process each video with ffmpeg and Mapillary scripts to separate sequences
  9. Group photos in separate sequences
  10. Upload sequences with mapillary script (hacked to maintain sequences)

The task is divided in 3 steps having a separate shell script (import, process, upload). The plan is to set upload as a cron job, and use auto sensing (DBUS) for import, leaving only process to be manually activated.

I could do a test run of your script to verify that it runs, but I will not have time to do any stress test or bug fixing.

1 Like