|
| 1 | +######----Settings For SmartSkip 1.2----###### |
| 2 | +####------Script Settings-----#### |
| 3 | + |
| 4 | + |
| 5 | +####------Silence Skip Settings-------#### |
| 6 | +#--(#number). Maximum amount of noise to trigger, in terms of dB. Lower is more sensitive. |
| 7 | +silence_audio_level=-40 |
| 8 | + |
| 9 | +#--(#number). Duration of the silence that will be detected to trigger skipping. |
| 10 | +silence_duration=0.65 |
| 11 | + |
| 12 | +#--(0/#number). The detcted silences will be ignored for the below defined seconds, and it will continue skipping until a silence is detected that surpasses the ignore duration. |
| 13 | +# (0 for disabled, or specify seconds). |
| 14 | +ignore_silence_duration=5 |
| 15 | + |
| 16 | +#--(0/#number). Minimum amount of seconds accepted to skip until the configured silence_duration. |
| 17 | +# (0 for disabled, or specify seconds) |
| 18 | +min_skip_duration=0 |
| 19 | + |
| 20 | +#--(0/#number). Maximum amount of seconds accepted to skip until the configured silence_duration. |
| 21 | +# (0 for disabled, or specify seconds) |
| 22 | +max_skip_duration=130 |
| 23 | + |
| 24 | +#--(yes/no). Press keybind again while silence-skip is active to cancel |
| 25 | +keybind_twice_cancel_skip=yes |
| 26 | + |
| 27 | +#--(playlist-next/cancel/pause). If skip reaches playback end, and there is no silence detected. |
| 28 | +# (playlist-next: continues towards next playlist item / cancel: cancels seek and resumes from original position / pause: reaches end and pauses). |
| 29 | +silence_skip_to_end=playlist-next |
| 30 | + |
| 31 | +#-- After detecing silence, a chapter will be added. |
| 32 | +# (yes/no). Or specify types ["no-chapters", "internal-chapters", "external-chapters"]. |
| 33 | +# e.g.: add_chapter_on_skip=["no-chapters", "external-chapters"] |
| 34 | +add_chapter_on_skip=yes |
| 35 | + |
| 36 | +#--(yes/no). Default is muted, however if audio was enabled due to custom mpv settings, the fast-forwarded audio can sound jarring. |
| 37 | +force_mute_on_skip=no |
| 38 | + |
| 39 | + |
| 40 | +####------Smart Skip Settings-------#### |
| 41 | +#--The skip behavior after passing the last chapter |
| 42 | +# (defaults to silence-skip if not defined for a chapter type) |
| 43 | +# Available chapter types (no-chapters, internal-chapters, external-chapters) |
| 44 | +# Available skip types (silence-skip, chapter-next, playlist-next) |
| 45 | +# e.g.: last_chapter_skip_behavior=[ ["no-chapters", "silence-skip"], ["internal-chapters", "playlist-next"], ["external-chapters", "chapter-next"] ]. |
| 46 | +last_chapter_skip_behavior=[ ["no-chapters", "silence-skip"], ["internal-chapters", "playlist-next"], ["external-chapters", "silence-skip"] ] |
| 47 | + |
| 48 | +#--(yes/no). During autoskip countdown, pressing smart_next keybind will auto-skip |
| 49 | +smart_next_proceed_countdown=yes |
| 50 | + |
| 51 | +#--(yes/no). During autoskip countdown, pressing smart_prev keybind will cancel the countdown to autoskip |
| 52 | +smart_prev_cancel_countdown=yes |
| 53 | + |
| 54 | +####------Chapters Settings-------#### |
| 55 | +#--(yes/no). Automatically loads external chapters when detected. |
| 56 | +# priority: 1. chapters file in the same directory as the playing file, 2. hashed version of the chapters file in the global directory, 3. path based version of the chapters file in the global directory |
| 57 | +external_chapters_autoload=yes |
| 58 | + |
| 59 | +#-- Modifying chapters using SmartSkip will autosave as external-chapters |
| 60 | +# (yes/no). Or specify types ["no-chapters", "internal-chapters", "external-chapters"] |
| 61 | +modified_chapters_autosave=["no-chapters", "external-chapters"] |
| 62 | + |
| 63 | +#--(yes/no). (yes: Saves all chapter files in a single global directory). (no: saves chapter next to the playback file) |
| 64 | +global_chapters=yes |
| 65 | + |
| 66 | +#--(path) Global path for storing external chapters |
| 67 | +#- Predefined directories (/:dir%script%, /:dir%mpvconf%) |
| 68 | +# (/:dir%script%) for placing it in the same directory of script, |
| 69 | +# (/:dir%mpvconf%) for mpv portable_config directory |
| 70 | +#- Or write any variable using "/:var" then the variable |
| 71 | +# (/:var) example: "/:var%APPDATA%", such as: "/:var%APPDATA%\mpv" OR "/:var%HOME%/mpv" |
| 72 | +#- It is also possible to mix and match path with predefined directories / variables |
| 73 | +global_chapters_path=/:dir%mpvconf%/chapters |
| 74 | + |
| 75 | +#--(yes/no). Hashes the chapters saved in the global directory, allowing for multiple files with the same name to have external chapters. |
| 76 | +hash_global_chapters=yes |
| 77 | + |
| 78 | +#--(yes/no). (yes: Adding chapter asks for title) (no: Adds chapter without name) |
| 79 | +add_chapter_ask_title=no |
| 80 | + |
| 81 | +#--(yes/no). Pauses the playback when asking for chapter title |
| 82 | +add_chapter_pause_for_input=no |
| 83 | + |
| 84 | +#--(text). Placeholder when asking for title of a new chapter |
| 85 | +add_chapter_placeholder_title=Chapter |
| 86 | + |
| 87 | +####------Auto-Skip Settings-------#### |
| 88 | + |
| 89 | +#--(yes/no). Allows for chapters to be skipped automatically based on configured categories and skip |
| 90 | +autoskip_chapter=yes |
| 91 | + |
| 92 | +#--(#number). Countdown in seconds before initiating autoskip |
| 93 | +autoskip_countdown=3 |
| 94 | + |
| 95 | +#--(yes/no). Bulk consecutive autoskip chapters together in 1 countdown |
| 96 | +autoskip_countdown_bulk=no |
| 97 | + |
| 98 | +#--(yes/no). Sends prompt for autoskip without forcing |
| 99 | +autoskip_countdown_graceful=no |
| 100 | + |
| 101 | +#-- Detected autoskip will be triggered once only for each chapter |
| 102 | +# (yes/no). Or specify types ["internal-chapters", "external-chapters"] |
| 103 | +skip_once=no |
| 104 | + |
| 105 | +#--(string) write the string for any chapter type following the syntax: |
| 106 | +# e.g.: categories=my-new-category>Part [AB]/Ending 1; another-category>Part C/Part D |
| 107 | +#-- Or specify categories string for each chapter type. |
| 108 | +# e.g.: categories=[ ["internal-chapters", "my-new-category>Part [AB]/Ending 1; another-category>Part C/Part D"], ["external-chapters", "idx->0/1/2/3"] ] |
| 109 | +# Syntax: category-name-1>chapter-name-1-slash-separated/chapter-name-2-slash-seperated; lua patterns, each category is separated by semicolons |
| 110 | +# Predefined Category: (idx- followed by the chapter index / slash seperated to autoskip based on index) |
| 111 | +categories=[ ["internal-chapters", "prologue>Prologue/^Intro; opening>^OP/ OP$/^Opening; ending>^ED/ ED$/^Ending; preview>Preview$"], ["external-chapters", "idx->0/2"] ] |
| 112 | + |
| 113 | +#--(string) enables defined categories for autoskip |
| 114 | +# e.g: skip=opening;ending |
| 115 | +# Or write the category names for each chapter type: |
| 116 | +# e.g.: skip=[ ["internal-chapters", "prologue;ending"], ["external-chapters", "idx-"] ] ]] |
| 117 | +# Syntax: To enable category for autoskip, write any defined category name inside the string, followed by a semicolons. |
| 118 | + |
| 119 | +##-- Predefined Categories: (toggle, toggle_idx, idx-) |
| 120 | +# (idx- is for enabling index based autoskip). |
| 121 | +# (toggle is for chapters toggled during playback). |
| 122 | +# (toggle_idx is for chapter index toggled during playback) |
| 123 | + |
| 124 | +skip=[ ["internal-chapters", "toggle;toggle_idx;opening;ending;preview"], ["external-chapters", "toggle;toggle_idx"] ] |
| 125 | + |
| 126 | +####------Autoload Settings-------#### |
| 127 | +#--(yes/no). Autoload files in the same directory into playlist |
| 128 | +autoload_playlist=yes |
| 129 | + |
| 130 | +#--(#number). Max entries for autoload * 2 when starting a file (before + after). 5000 is the maximum recommended value |
| 131 | +autoload_max_entries=5000 |
| 132 | + |
| 133 | +#--(#number). Max directory stack for autoload when starting a file. 20 is the recommended value |
| 134 | +autoload_max_dir_stack=20 |
| 135 | + |
| 136 | +#--(yes/no). Hidden files in the directory will be ignored |
| 137 | +ignore_hidden=yes |
| 138 | + |
| 139 | +#--(yes/no). Allow same type of extensions |
| 140 | +same_type=no |
| 141 | + |
| 142 | +#--(auto/recursive/lazy/ignore). Specify the directory mode for autoload |
| 143 | +directory_mode=auto |
| 144 | + |
| 145 | +#--(yes/no). Types that will be autoloaded |
| 146 | +images=yes |
| 147 | +videos=yes |
| 148 | +audio=yes |
| 149 | + |
| 150 | +#--(extension,). Add additional extenions to be autoloaded. |
| 151 | +# e.g.: additional_image_exts=bmp,vob,pxr |
| 152 | +additional_image_exts= |
| 153 | +additional_video_exts= |
| 154 | +additional_audio_exts= |
| 155 | + |
| 156 | +####------OSD Messages Settings-------#### |
| 157 | + |
| 158 | +#--(-1/milliseconds). Duration for the osd message in milliseconds, applies to all osd_messages. |
| 159 | +# -1 reverts to mpv --osd-duration |
| 160 | +osd_duration=2500 |
| 161 | + |
| 162 | +#-- (no-osd/osd-bar/osd-msg/osd-msg-bar). OSD message that will be shown when the script triggers an action |
| 163 | +seek_osd=osd-msg-bar |
| 164 | +chapter_osd=osd-msg-bar |
| 165 | +autoskip_osd=osd-msg-bar |
| 166 | + |
| 167 | +#--(yes/no). Shows OSD when playlist entry changes |
| 168 | +playlist_osd=yes |
| 169 | + |
| 170 | +#--(yes/no). All other OSD messages. |
| 171 | +osd_msg=yes |
| 172 | + |
| 173 | +####------Keybind Settings-------#### |
| 174 | +#-- Add below (after a comma) any additional keybind you want to bind. Or change the letter inside the quotes to change the keybind |
| 175 | +# e.g.: ["ctrl+x"], e.g.2: ["atl+n", "n", "N"] |
| 176 | + |
| 177 | +#-- Enables or disables autoload during playback for the session |
| 178 | +toggle_autoload_keybind=[""] |
| 179 | + |
| 180 | +#-- Enables or disables Auto-Skip during playback for the session |
| 181 | +toggle_autoskip_keybind=["ctrl+."] |
| 182 | + |
| 183 | +#-- Enables or disables a chapter for Auto-Skip during playback for the session |
| 184 | +toggle_category_autoskip_keybind=["alt+."] |
| 185 | + |
| 186 | +#-- Cancels Auto-Skip when countdown is started |
| 187 | +cancel_autoskip_countdown_keybind=["esc", "n"] |
| 188 | + |
| 189 | +#-- Proceeds Auto-Skip when countdown is started |
| 190 | +proceed_autoskip_countdown_keybind=["enter", "y"] |
| 191 | + |
| 192 | +#-- Add a chapter for the reached position |
| 193 | +add_chapter_keybind=["n"] |
| 194 | + |
| 195 | +#-- Removes the current chapter |
| 196 | +remove_chapter_keybind=["alt+n"] |
| 197 | + |
| 198 | +#-- Renames the current chapter |
| 199 | +edit_chapter_keybind=[""] |
| 200 | + |
| 201 | +#-- Manually save the changes for chapters using an external file |
| 202 | +write_chapters_keybind=["ctrl+n"] |
| 203 | + |
| 204 | +#-- Merge the changes of chapters for the file inside mkv file |
| 205 | +bake_chapters_keybind=[""] |
| 206 | + |
| 207 | +#-- Jumps to next chapter > to next playlist |
| 208 | +chapter_next_keybind=["ctrl+right"] |
| 209 | + |
| 210 | +#-- Jumps to previous chapter > to begining > to previous playlist |
| 211 | +chapter_prev_keybind=["ctrl+left"] |
| 212 | + |
| 213 | +#-- Triggers silence_skip > next chapter > next playlist based on different variables |
| 214 | +smart_next_keybind=[">"] |
| 215 | + |
| 216 | +#-- Jumps to begining > previous chapter > previous playlist based on different variables |
| 217 | +smart_prev_keybind=["<"] |
| 218 | + |
| 219 | +#-- Triggers silence skip to detect silence as per the configured parameters |
| 220 | +silence_skip_keybind=["?"] |
0 commit comments