This stops decreasing numerical values of --loop-file on each iteration so that loop-file=N loops every playlist entry without having to add --loop-file to --reset-on-next-file. The current behavior confuses users as seen in: https://github.com/mpv-player/mpv/issues/2481 https://github.com/mpv-player/mpv/issues/5943 https://github.com/mpv-player/mpv/issues/11291 https://github.com/mpv-player/mpv/issues/13860 https://www.reddit.com/r/mpv/comments/rcwnrw/looping_each_file_n_times_in_a_playlist/ Also options are supposed to reflect the value configured by the user and not change on their own. A remaining-file-loops property is exposed as a replacement to check how many loops are left.
Showing the changes to DOCS (2 of 6 files). Show all
Unified · Split
| @@ -0,0 +1,2 @@ | ||
| 1 | +numerical values of `--loop-file` no longer decrease on each iteration | |
| 2 | +add `remaining-file-loops` property as a replacement to get the remaining loop count | |
| @@ -2142,6 +2142,12 @@ Property list · 2141 unmodified lines | ||
| 2142 | 2142 | ``playback-time/full`` |
| 2143 | 2143 | ``playback-time`` with milliseconds. |
| 2144 | 2144 | |
| 2145 | +``remaining-file-loops`` | |
| 2146 | + How many more times the current file is going to be looped. This is | |
| 2147 | + initialized from the value of ``--loop-file``. This counts the number of | |
| 2148 | + times it causes the player to seek to the beginning of the file, so it is 0 | |
| 2149 | + the last the time is played. -1 corresponds to infinity. | |
| 2150 | + | |
| 2145 | 2151 | ``chapter`` (RW) |
| 2146 | 2152 | Current chapter number. The number of the first chapter is 0. |
| 2147 | 2153 | |