I don't know how vlc is able to do it; I guess it takes sort of time-stamp of a movie and puts it in cache or somewhere like that. This is the way it works in vlc -

a. You see a media file, say it consists of 1.5 hours, b. At some point, say after 15-30 minutes or whenever you feel, you stopped because you had some other work, a call came or anything which disrupted your viewing.

c. After some time you start the media file again. In vlc in the top-right corner it would give a small button saying continue from where you left off.

d. If you select that button/option, it starts playing the media file from where you last left off.

I have also seen using 2-3 media files in succession and even then it remembers the position.

Is it possible to have similar functionality in mpv? Is there a way this already works, or this would be a feature request I would need to make at mplayer github?


2 Answers 2


You can run mpv with the --save-position-on-quit option. e.g.

mpv --save-position-on-quit /path/to/video.mkv

Alternatively, if you want mpv to do that by default, you can add that option to its config file. For example:

echo "save-position-on-quit" >> ~/.config/mpv/mpv.conf

Or use your favourite text editor to add the same line. The -- option prefix is not needed in the config file.

If you want this option to be the default for all users on the system rather than just your own user, the config file to edit (as root) is /etc/mpv/mpv.conf if mpv was installed as a package. And probably /usr/local/etc/mpv/mpv.conf if installed by compiling the source.

  • 2
    Is there similiar option regarding navigation through playlist? Current version does not continue playback when I navigate to a file in a playlist but starts from the beginning. Commented Mar 15, 2020 at 10:02
  • @Aleksandr Kravets see github.com/mpv-player/mpv/commit/…
    – user598527
    Commented Dec 11, 2021 at 22:47

Use "Q" (Shiftq). You will quit, and the next time you play it, it will start from when you left.


Like q, but store the current playback position. Playing the same file later will resume at the old playback position if possible.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .