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
- Host: GitHub
- URL: https://github.com/theapache64/mufy
- Owner: theapache64
- License: apache-2.0
- Created: 2020-05-16T12:29:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-18T03:35:51.000Z (almost 6 years ago)
- Last Synced: 2025-02-01T17:44:00.622Z (about 1 year ago)
- Language: Kotlin
- Homepage:
- Size: 23.3 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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

## Author ✍️
- theapache64