Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

join files while producing the overlay? #46

Open
osresearch opened this issue Jul 14, 2022 · 3 comments
Open

join files while producing the overlay? #46

osresearch opened this issue Jul 14, 2022 · 3 comments
Labels
enhancement New feature or request ffmpeg

Comments

@osresearch
Copy link

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.

@time4tea
Copy link
Owner

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 time4tea added the enhancement New feature or request label Jul 14, 2022
@time4tea
Copy link
Owner

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

"-filter_complex", "[0:v][0:a][1:v][1:a][2:v][2:a]concat=n=3:v=1:a=1[vv][a];[vv][3:v]overlay",

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

@paxunix
Copy link

paxunix commented Apr 25, 2023

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/).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ffmpeg
Projects
None yet
Development

No branches or pull requests

3 participants