Is it possible to continue movies from where one leaves in mpv as can be done in vlc?












2














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?










share|improve this question





























    2














    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?










    share|improve this question



























      2












      2








      2


      3





      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?










      share|improve this question















      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?







      vlc mpv






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 7 '18 at 14:32









      Jeff Schaller

      38.9k1053125




      38.9k1053125










      asked Jan 3 '18 at 21:13









      shirish

      3,66862983




      3,66862983






















          2 Answers
          2






          active

          oldest

          votes


















          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.






          share|improve this answer





























            3














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




            Q



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




            https://mpv.io/manual/master/






            share|improve this answer























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "106"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f414639%2fis-it-possible-to-continue-movies-from-where-one-leaves-in-mpv-as-can-be-done-in%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              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.






              share|improve this answer


























                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.






                share|improve this answer
























                  2












                  2








                  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.






                  share|improve this answer












                  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.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 4 '18 at 4:13









                  cas

                  38.6k452100




                  38.6k452100

























                      3














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




                      Q



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




                      https://mpv.io/manual/master/






                      share|improve this answer




























                        3














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




                        Q



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




                        https://mpv.io/manual/master/






                        share|improve this answer


























                          3












                          3








                          3






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




                          Q



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




                          https://mpv.io/manual/master/






                          share|improve this answer














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




                          Q



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




                          https://mpv.io/manual/master/







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited 7 hours ago









                          jasonwryan

                          49.3k14134184




                          49.3k14134184










                          answered 7 hours ago









                          Calculus Knight

                          1425




                          1425






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f414639%2fis-it-possible-to-continue-movies-from-where-one-leaves-in-mpv-as-can-be-done-in%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              濃尾地震

                              How to rewrite equation of hyperbola in standard form

                              No ethernet ip address in my vocore2