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

https://github.com/theapache64/mufy

A CLI tool to generate gifs from your favorite movie
https://github.com/theapache64/mufy

Last synced: 12 months ago
JSON representation

A CLI tool to generate gifs from your favorite movie

Awesome Lists containing this project

README

          

# mufy 🎥



A CLI tool to generate gifs from your favorite movie

## Install ⚙️

Copy-paste below command into your terminal to install latest version

```shell script
wget "https://raw.githubusercontent.com/theapache64/mufy/master/install.sh" -q --show-progress -O install.sh && sh install.sh && source ~/.bashrc
```

## Dependency :canoe:

- ffmpeg

## Usage 💻

```
Usage: mufy [-hV] [-kfs] [-c=] -i= [-n=]
[-k=]...
-c, --caption= Caption to be displayed on the GIF. By default,
passed keyword will be displayed.
-h, --help Show this help message and exit.
-i, --input= Input file to be processed
-k, --keyword= Keywords (comma-separated)
-kfs, --keywords-from-subtitle If enabled, keywords will be collected from subtitles (all words)
-n, --number-of-gifs= Number of gifs to be generated.
-V, --version Print version information and exit.
```

**Example**
```shell script
mufy -i movie.mp4 -n 10 -k "what?" -c "WHAT!!!"
```

- `-i` : Input file (movie file)
- `-k` : Keywords to be searched. (*optional)
- `-n` : Number of gifs to be generated. Default is `-1 (maximum)` (optional)
- `-c` : Caption to be displayed on the GIF. By default, matched keyword will be displayed.
- `-kfs` : To get **k**eywords **f**rom **s**ubtitle. (*optional)

`*optional` : Both options can't work together. Either one of the option must be given.

## Examples :evergreen_tree:

- To generate maximum GIFs from `movie.mp4`

```shell script
~$ mufy -i movie.mp4 -kfs
```

- To generate **10** GIFs from `movie.mp4` with keyword `what`

```shell script
~$ mufy -i movie.mp4 -n 10 -k 'what'
```

- To generate **10** GIFs from `movie.mp4` with keyword `what` and with caption `WHAT!!!`

```shell script
~$ mufy -i movie.mp4 -n 10 -k 'what' -c 'WHAT!!!'
```

A sample output

![](extras/what.gif)

## Author ✍️

- theapache64