An open API service indexing awesome lists of open source software.

https://github.com/glenracing/combine-mp4

Automatically combine mp4 videos into a single file with title overlays using ffmpeg.
https://github.com/glenracing/combine-mp4

bash ffmpeg

Last synced: 3 months ago
JSON representation

Automatically combine mp4 videos into a single file with title overlays using ffmpeg.

Awesome Lists containing this project

README

          

# combine-mp4

Automatically combine mp4 videos into a single file with title overlays using ffmpeg.

```
Usage: combine_mp4.sh [inputs...]

is a text file where the first and second lines contain
the main title and subtitle, respectively, and subsequent lines
contain the titles for each video in the order they will be passed to
this script.

If the main title and subtitle are both blank, the main title will not
be generated. If any of the other lines are blank, a title will not be
generated for the corresponding video.

```

Create a `titles.txt` file to pass to the script. For example, to combine four videos (and skip creating a title for video 3):

```
Main title goes here.
Subtitle goes here.
Video 1 Title
Video 2 Title

Video 4 Title
```

Then call the script:

```
$ ./combine_mp4.sh titles.txt output.mp4 video1.mp4 video2.mp4 video3.mp4 video4.mp4
```