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

[FEATURE] Add option to use multiple videos #24

Open
Re4zOon opened this issue Sep 3, 2023 · 3 comments
Open

[FEATURE] Add option to use multiple videos #24

Re4zOon opened this issue Sep 3, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Re4zOon
Copy link

Re4zOon commented Sep 3, 2023

Is your feature request related to a problem? Please describe.
GoPro likes to chop up long videos to multiple files (4G/10G, depending on version).
Due to this using this tool will result in "broken" graphs, maps, etc.

Describe the solution you'd like
Add the option to specify multiple input videos.
For "easy" implementation (or POC):

  • export GPX (as you are doing now)
  • combine the GPX files somehow
  • concat the videos using ffmpeg (I get that it will use double storage, but its easy)
  • render the result

Describe alternatives you've considered
Manually exporting the GPX data, combining them, doing the concat manually and specifying the video/data manually:

Not sure how big this request is in the grand scheme of things, but it would be a good-to-have.

@Re4zOon Re4zOon added the enhancement New feature or request label Sep 3, 2023
@Re4zOon
Copy link
Author

Re4zOon commented Sep 3, 2023

Or if you can just give us a way to actually concat the gopro videos while keeping all data, that would be AWESOME as well.
Currently I can't find any ffmpeg option, that will actually combine the other streams (and probably they start from 0 anyways).

Not sure if this works, but seems like a good test:
https://github.com/gyroflow/mp4-merge

Will report back with results.

@progweb
Copy link
Owner

progweb commented Sep 3, 2023

You can easily concat video files, but I don't think that you can keep telemetry data :(

$ cat > merge.txt
file './GX010100.MP4' 
file './GX020100.MP4'

Then to merge files:
$ ffmpeg -f concat -safe 0 -i merge.txt -c copy result.mp4

To add telemetry, but I think that the result won't be correct:
$ ffmpeg -f concat -i merge.txt -c copy -map 0:v -map 0:a -map 0:3 -copy_unknown -tag:2 gpmd result.mp4

Stream with telemetry data needs to be modified before to be concated.

At last, we can concat gpx files with gpsbabel tool:

$ gpsbabel -i gpx -f "1.gpx" -f "2.gpx" -f "3.gpx" -o gpx -F "result.gpx"

@Re4zOon
Copy link
Author

Re4zOon commented Sep 3, 2023

Exactly, hence its a feature request :)
The mp4_merge seems to be actively developed and works just fine, so probably just adding it to the readme in a FAQ or something is enough.

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

No branches or pull requests

2 participants