Skip to content

Combine split videos by GoPro cameras

License

Notifications You must be signed in to change notification settings

yakkun/GoProConcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoProConcat

GoProConcat is a tool for macOS that merges split video files generated by GoPro cameras into a single file. It also sets the creation and modification dates of the merged file to match those of the original files.

Features

  • Merge multiple GoPro video files into a single file.
  • Preserve GoPro-specific metadata.
  • Set the creation and modification dates of the merged file to match the original files.
  • Handles both AVC (GH) and HEVC (GX) encoded files.

Requirements

  • macOS
  • ffmpeg
  • Command Line Tools (for SetFile command)

Installation

Install ffmpeg using Homebrew

brew install ffmpeg

Install Command Line Tools

xcode-select --install

Clone the repository

git clone https://github.com/yakkun/GoProConcat.git
cd GoProConcat

Build the project

go build -o GoProConcat main.go

Usage

./GoProConcat outputfile inputfile1 [inputfile2 ...]

Example

./GoProConcat merged.mp4 GH011234.MP4 GH021234.MP4 GX011234.MP4

This command will merge GH011234.MP4, GH021234.MP4, and GX011234.MP4 into a single file named merged.mp4.

Testing

To run the tests, use the following command:

go test

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes.

  1. Fork it (https://github.com/yakkun/GoProConcat/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements