-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--loop-file
should apply to each file individually
#11291
Comments
Huh, I thought that's how it worked currently. Sounds like a bug. |
Ref the previous issue, I don't think it was a bug. #5943 (comment) |
@hooke007 thanks, I like the consistency of Just to have it documented in this issue, the behavior I was looking for can be achieved with |
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: mpv-player#2481 mpv-player#5943 mpv-player#11291 mpv-player#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.
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: mpv-player#2481 mpv-player#5943 mpv-player#11291 mpv-player#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.
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: mpv-player#2481 mpv-player#5943 mpv-player#11291 mpv-player#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.
Expected behavior of the wanted feature
The command line option
--loop-file
should apply to each file individually. For example, suppose I have two video filesa.mkv
andb.mkv
,mpv --loop-file=5 a.mkv b.mkv
should playa.mkv
six times in a row thenb.mkv
six times in a row.Furthermore, it should work with other command line options. For example,
mpv --loop-file=5 --loop-playlist=inf a.mkv b.mkv
should playa.mkv
six times in a row thenb.mkv
six times in a row thena.mkv
six times in a row, etc.Note that, unlike #7858, I am not trying to use
--loop-file
to create a slideshow. I am aware of--image-display-duration
. I want to loop multiple video files each a few times in a row. Also, I am pretty sure I could use a Lua script to do this but I think this should not be necessary as I believe what I am proposing is a pretty natural default behavior for--loop-file
with multiple files.Alternative behavior of the wanted feature
N/A
Log file
N/A
The text was updated successfully, but these errors were encountered: