Mpv: Is there a built-in way or hotkey to stop at the end of a current track in a playlist?

Created on 29 Aug 2020  路  6Comments  路  Source: mpv-player/mpv

I do frequently use this feature when its available in a player. Selecting individual tracks prior to starting playback isn't viable for me, choosing to stop on demand (but not mid-song) is.

question

Most helpful comment

Just edit input.conf with the desired behavior. So if you want to use the key F, you'd add: F cycle-values keep-open no always to input.conf.

All 6 comments

Are you looking for --keep-open=always? This will cause playback to pause whenever the current file is completed, even if it's not the final entry in the current playlist.

After re-reading the issue title some 10x, my guess is he is looking for a way to not auto-advance the playlist, and wait for user input?

If you're looking for a key to do something like "stop after the end of this track" you could always use a hotkey to cycle the value of keep-open, so pushing it will enable keep-open=always. Which is the option to cause the player to pause at the end of every file.

@garoto This is an example playlist. x marks my position:

    1. Closer - 5:55
    2. Ida Lupino - 7:35
    3. Started (Paul Bley) - 5:21
    4. Open, to Love - 7:14 x
    5. Harlem  - 3:26
    6. Seven - 7:25
    7. Nothing Ever Was, Anyway - 6:02 

In this example, I want to stop after the currently playing song, "Open, to Love". I may resume playback later from "Harlem". The playlist should remain active.

If you're looking for a key to do something like "stop after the end of this track" you could always use a hotkey to cycle the value of keep-open, so pushing it will enable keep-open=always. Which is the option to cause the player to pause at the end of every file.

I understand. Could you quickly show to to bind the command to a key so I can close this issue after verifying?

Just edit input.conf with the desired behavior. So if you want to use the key F, you'd add: F cycle-values keep-open no always to input.conf.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

paper9oll picture paper9oll  路  3Comments

jcowgill picture jcowgill  路  3Comments

sant527 picture sant527  路  4Comments

SPDurkee picture SPDurkee  路  3Comments

ww7 picture ww7  路  3Comments