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

https://github.com/hache0099/CreateMemeVideo

Bash tool to add captions to the top of videos
https://github.com/hache0099/CreateMemeVideo

bash bash-script command-line command-line-tool ffmpeg shell shell-script video video-editing

Last synced: 9 days ago
JSON representation

Bash tool to add captions to the top of videos

Awesome Lists containing this project

README

          

# CreateVideoMeme
This is a Shell script to put caption on top of videos (thus, making them memes)

# Getting Started
## Dependencies
[ffmpeg](https://ffmpeg.org/) (*ffmpeg* and *ffprobe*)
[imagemagick](https://github.com/ImageMagick/ImageMagick) (*convert*)

## Installation
Just copy `video-meme` to your **$PATH** and make it executable (`sudo chmod +x $PATH/video-meme`)

# Usage
Simple example
If you use it this way, the script will try to find an optimal size for the text.
```
$ video-meme input.mp4 "Your text here" output.mp4
```

To use a different font
```
$ video-meme --font input.mp4 "" output.mp4
```
You can use a font installed in your system or a custom font file (as long as it's supported by magick)

To see a list of available fonts run
```
$ convert -list font
```

To set the text size
(This will deactivate the auto-set-size feature)
```
$ video-meme --textsize input.mp4 "" output.mp4
```

If you want to see the caption image before the video is processed
```
$ video-meme --showimage input.mp4 "Your text here" output.mp4
```

Use `-h` to display the help message
```
video-meme [--textsize SIZE]
[--showimage] [--font FONT | --font ] OUTPUT_FILE

Options
--textsize SIZE Set the size of the text (default 75)
--showimage Show the caption image before making the video
--font FONT Set a font for the caption text (default: helvetica)
```

# Known bugs
The _auto-set-font-size_ feature is experimental and it may be slow, if that's the case, it is recommended to use the `--textsize` option with `--showimage`