gopro-dashboard-overlay icon indicating copy to clipboard operation
gopro-dashboard-overlay copied to clipboard

join files while producing the overlay?

Open osresearch opened this issue 2 years ago • 3 comments

Is there a way to join multiple files while also producing the overlay to avoid the extra disk-space of gopro-join? It seems that the GPX parser would have to scan every file in the stream to generate the overlay map, although this would still be faster than having to write out the joined file.

osresearch avatar Jul 14 '22 11:07 osresearch

Not currently. There is probably a way to do it with ffmpeg somehow, but I don't know the incantation yet. Parsing the files in sequence would be straightforward, but getting ffmpeg to use a sequence of files to overlay, not sure how to do at the moment.

time4tea avatar Jul 14 '22 11:07 time4tea

I think I may have the ffmpeg solution for this now.

https://github.com/time4tea/gopro-dashboard-overlay/blob/0cbce5f1184a074cf44125270c3c962fec730400/tests/test_ffmpeg.py#L162

So, next is to parse gopro data from multiple files and join it together.

time4tea avatar Jul 28 '22 14:07 time4tea

That works but won't scale well once you have more than a few files to concatenate. See https://trac.ffmpeg.org/wiki/Concatenate for ways to handle an arbitrary number of files. Slightly more complicated is if the metadata needs to be preserved from each file (someone has explored this space pretty well: https://www.trekview.org/blog/2022/join-gopro-chaptered-split-video-files-preserve-telemetry/).

paxunix avatar Apr 25 '23 04:04 paxunix