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
- Host: GitHub
- URL: https://github.com/hache0099/CreateMemeVideo
- Owner: hache0099
- License: gpl-3.0
- Created: 2022-11-25T02:41:12.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-08T16:19:28.000Z (over 2 years ago)
- Last Synced: 2024-05-02T20:13:48.904Z (over 1 year ago)
- Topics: bash, bash-script, command-line, command-line-tool, ffmpeg, shell, shell-script, video, video-editing
- Language: Shell
- Homepage:
- Size: 29.3 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cli-apps-in-a-csv - CreateVideoMeme - Bash tool to add captions to the top of videos. (<a name="video"></a>Video)
- awesome-cli-apps - CreateVideoMeme - Bash tool to add captions to the top of videos. (<a name="video"></a>Video)
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`