Created
February 8, 2026 18:39
-
-
Save James2022-rgb/1104e43e1ac816c5e5a2a701ab24f109 to your computer and use it in GitHub Desktop.
Concatenate split GoPro HERO 11 MP4 files preserving GPMF streams
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REM GoPro HERO 11 | |
| REM | |
| REM Where input.txt is e.g. | |
| REM | |
| REM file GX010017.MP4 | |
| REM file GX020017.MP4 | |
| REM Concatenate MP4 files preserving GPMF stream: | |
| ffmpeg -f concat -i input.txt -map 0:v -map 0:a -map 0:3 -copy_unknown -tag:3 gpmd -c copy concatenated.mp4 | |
| REM Re-encode to H.265/HEVC using nvenc: | |
| ffmpeg -i concatenated.mp4 -map 0:v -map 0:a -map 0:2 -c:v hevc_nvenc -cq 23 -c:a copy -c:d copy out.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment