~thecashewtrader/cliclip

2519554da122e42e78f5abfb8032761a3b581d1c — thecashewtrader 7 months ago 4f5bd1f
add usage tips to README.md
1 files changed, 8 insertions(+), 1 deletions(-)

M README.md
M README.md => README.md +8 -1
@@ 15,7 15,14 @@ chmod +x ~/.local/bin/cliclip

# Configuration

All the configuration options are at the top of `cliclip.sh`. Also, `lf` is used as the file picker by default, this can be changed in the `prompt_file` function.
All the configuration options are at the top of `cliclip.sh`. Some things to note:
- `lf` is used as the file picker by default, this can be changed in the `prompt_file` function.
- By default the `h264_nvenc` codec is used for hardware acceleration with NVidia GPUs. You should change this codec if you have a different GPU.
- To get all 3 files (intro, main, outro) to be the same resolution and FPS, you can use this command (Derived from `$FILTER_STRING` in `cliclip.sh`. Make sure to substitute the variables.):
```bash
ffmpeg -i "input" -vf "scale=$WIDTH:$HEIGHT:force_original_aspect_ratio=decrease,pad=$WIDTH:$HEIGHT:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=$FPS" -c:v h264_nvenc "output"
```


# Usage