Git Product home page Git Product logo

mp4join's Introduction

Introduction

mp4join is a C++ library/utility for joining consecutive MP4/ISOBMFF files that are created with identical configurations. It's useful for merging chaptered video files produced by some cameras. The operation is performed at the container level, passing through all data tracks losslessly.

It's essentially a C++ port of the Rust library mp4-merge from gyroflow, with no external dependencies.

Command line tool

For end-users, A simple command line tool mp4join is provided.

Usage:

$ mp4join 1.mp4 2.mp4 3.mp4 -o output.mp4

It displays progress information while joining the files.

Download

Pre-compiled binaries are available at the Release page.

Building

Prerequisite

CMake and C++17-compliant compiler. Git is used to generate optional version info.

Tested on Windows(MSVC, MinGW) and Linux(GCC/Clang).

Compile

$ mkdir -p build && cd build
$ cmake -S .. -DCMAKE_BUILD_TYPE=<Release|Debug|...> -DBUILD_SHARED_LIBS=<OFF|ON>
$ cmake --build .

The resultant binaries should be in bin and lib inside the build directory.

Package

Run cpack to create a zip archive containing the library, headers, and the command line utility.

Use as a library

Refer to mp4join.hpp.

To-Do and missing features

  • Support generic input/output interfaces (e.g. std::istream).
  • Handle exotic video files produced by some cameras, e.g. Insta360.
  • Support videos with B-frames. The library was originally intended for camera recordings, which typically lack B-frames.
  • Tidy the code. While it works, this project was originally written quite a while ago for fun.

Credits

mp4join's People

Contributors

kya8 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.