From 679c80e3e8eb8f22c8797d4648f213547d87faa4 Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Fri, 21 Aug 2020 07:41:10 +0300 Subject: [PATCH] configuration --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index 85d8811..33a4a4b 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,37 @@ or ``` $ cd ~/.config/mpv/scripts/videoclip && git pull ``` +## Configuration +Configuration file is located at ```~/.config/mpv/script-opts/videoclip.conf``` +and should be created by the user. If a parameter is not specified +in the config file, the default value will be used. + +Example configuration file: +``` +# Absolute path to the folder where generated clips will be placed. +# `~` or `$HOME` are not supported due to mpv limitations. +media_path=/home/user/Videos + +# Menu size +font_size=20 + +# Sane values are from 16k to 32k. +audio_bitrate=32k + +# The range of the scale is 0–51, where 0 is lossless, +# 23 is the default, and 51 is worst quality possible. +video_quality = 23, + +# Use the slowest preset that you have patience for. +# https://trac.ffmpeg.org/wiki/Encode/H.264 +preset = 'faster', + +# Video dimensions +video_width = -2, +video_height = 480, +``` +Key bindings are configured in ```~/.config/mpv/input.conf```. +This step is not necessary. +``` +c script-binding menu-open +```