juanmcasillas / gopro2gpx

Parse the gpmd stream for GOPRO moov track (MP4) and extract the GPS info into a GPX (and kml) file.
GNU General Public License v3.0
181 stars 50 forks source link

Add support for multiple input files #33

Closed stakita closed 1 year ago

stakita commented 1 year ago

Should resolve #26.

This PR add support to gopro2gpx for multiple input files. Input files can be supplied as a list in place of the original single file specification. Each file is opened in sequence and the output GPX data collated into a single output file. Start time of the GPX is determined from the first input, so if the files are not sequential from the first file, timestamps may not make sense.

Example invocation:

gopro2gpx -s -vv max/GS010188.LRV max/GS020188.LRV max/GS030188.LRV max/GS040188.LRV max/GS050188.LRV track_gps_combined