How to enable YouTube autoplay with youtube-dl & mpv?Awesome & youtubeCentOS, how to watch YouTube...

Withdrew when Jimmy met up with Heath

Christian apologetics regarding the killing of innocent children during the Genesis flood

During the Space Shuttle Columbia Disaster of 2003, Why Did The Flight Director Say, "Lock the doors."?

Should you play baroque pieces a semitone lower?

Does this Foo machine halt?

Understanding the point of a kölsche Witz

Is TA-ing worth the opportunity cost?

Packages "LibertinusT1Math" raises error if compiled with XeLaTeX

Who are these characters/superheroes in the posters from Chris's room in Family Guy?

Plausibility of Ice Eaters in the Arctic

Am I overreacting to my team leader's unethical requests?

What is the maximum number of PC-controlled undead?

Infeasibility in mathematical optimization models

First amendment and employment: Can a police department terminate an officer for speech?

Why is transplanting a specific intact brain impossible if it is generally possible?

changing number of arguments to a function in secondary evaluation

I accidentally overwrote a Linux binary file

Why are Gatwick's runways too close together?

Why do funding agencies like the NSF not publish accepted grants?

Is it okay for a ticket seller to grab a tip in the USA?

How many different ways are there to checkmate in the early game?

Ex-contractor published company source code and secrets online

How is this kind of structure made?

Te-form and かつ and も?



How to enable YouTube autoplay with youtube-dl & mpv?


Awesome & youtubeCentOS, how to watch YouTube videos with Mozilla Firefox?Play youtube playlist with youtube-dl with shuffling or repeatMake mpv display name of youtube link when playing just audiowatch randomly ordered videos within one mpv instanceStream Youtube with mpv starting at an arbitrary point later in the videoPrint youtube video id to file from mpv stdoutHow to queue up videos or media using mpv?CLI utility to search and view/download YouTube videosHow to list all files less than 1080p






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







7















Is there a way to play a video and make it follow YouTube autoplay videos?



Can this be done with youtube-dl and/or mpv?










share|improve this question















bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.























    7















    Is there a way to play a video and make it follow YouTube autoplay videos?



    Can this be done with youtube-dl and/or mpv?










    share|improve this question















    bumped to the homepage by Community 1 hour ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















      7












      7








      7


      2






      Is there a way to play a video and make it follow YouTube autoplay videos?



      Can this be done with youtube-dl and/or mpv?










      share|improve this question














      Is there a way to play a video and make it follow YouTube autoplay videos?



      Can this be done with youtube-dl and/or mpv?







      youtube youtube-dl mpv autoplay






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 10 '16 at 23:15









      smrdo_prdosmrdo_prdo

      1692 silver badges10 bronze badges




      1692 silver badges10 bronze badges






      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.









      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          It is possible to stream with youtube-dl and mpv.



          My script does exactly what you want. It is very simple...




          1. checks if its a YT link or not,

          2. check the params given


            • -d for download

            • -nv for no video, so you can listen a music video.



          3. with wget get the source of the YT link for example

          4. with some grepping and cutting get the video IDs of all the following recommended videos

          5. play them one by one






          share|improve this answer




























          • not good. kills all other currently running instances of mpv. miffed >9000

            – Digit
            Jan 18 at 0:22











          • seems to work happy just comment out the kill line, then all other paused mpv instances dont need to die. #[[ $(pgrep "mpv") ]] && pkill "mpv"

            – Digit
            Feb 9 at 9:58





















          0














          I think your best bet with the least effort might be with the terminal program mps-youtube's related video functionality. Check it out here: https://github.com/mps-youtube/mps-youtube.



          For example:



          If you want to watch a bunch of Chris Cornell tribute videos and you have mps-youtube installed and launched, you can use the following command to set video playback to "true" (otherwise you will only get audio)



          set show_video true


          Then, find the video, or playlist your want to play:



          For Videos:



          .Chris Cornell Tribute


          Then choose the video you want related videos for:



          r 1


          (where 1 is the video you want related videos for)



          Then simply enter the range of the videos you would like played.



          1-50


          (will play all related videos, up to number 50.)



          You may also need to set the default video player to mpv, as I think the program defaults to mPlayer. I realize this adds an entirely separate program into the mix, but it does utilize the tech's your asking about, while keeping you in the terminal.






          share|improve this answer




























          • Do you know that this will work, or are you just guessing? Can you describe how to do what the OP wants to do? Please do not respond in comments; edit your answer to make it clearer and more complete.

            – G-Man
            May 17 '17 at 21:24














          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%2f302674%2fhow-to-enable-youtube-autoplay-with-youtube-dl-mpv%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









          0














          It is possible to stream with youtube-dl and mpv.



          My script does exactly what you want. It is very simple...




          1. checks if its a YT link or not,

          2. check the params given


            • -d for download

            • -nv for no video, so you can listen a music video.



          3. with wget get the source of the YT link for example

          4. with some grepping and cutting get the video IDs of all the following recommended videos

          5. play them one by one






          share|improve this answer




























          • not good. kills all other currently running instances of mpv. miffed >9000

            – Digit
            Jan 18 at 0:22











          • seems to work happy just comment out the kill line, then all other paused mpv instances dont need to die. #[[ $(pgrep "mpv") ]] && pkill "mpv"

            – Digit
            Feb 9 at 9:58


















          0














          It is possible to stream with youtube-dl and mpv.



          My script does exactly what you want. It is very simple...




          1. checks if its a YT link or not,

          2. check the params given


            • -d for download

            • -nv for no video, so you can listen a music video.



          3. with wget get the source of the YT link for example

          4. with some grepping and cutting get the video IDs of all the following recommended videos

          5. play them one by one






          share|improve this answer




























          • not good. kills all other currently running instances of mpv. miffed >9000

            – Digit
            Jan 18 at 0:22











          • seems to work happy just comment out the kill line, then all other paused mpv instances dont need to die. #[[ $(pgrep "mpv") ]] && pkill "mpv"

            – Digit
            Feb 9 at 9:58
















          0












          0








          0







          It is possible to stream with youtube-dl and mpv.



          My script does exactly what you want. It is very simple...




          1. checks if its a YT link or not,

          2. check the params given


            • -d for download

            • -nv for no video, so you can listen a music video.



          3. with wget get the source of the YT link for example

          4. with some grepping and cutting get the video IDs of all the following recommended videos

          5. play them one by one






          share|improve this answer















          It is possible to stream with youtube-dl and mpv.



          My script does exactly what you want. It is very simple...




          1. checks if its a YT link or not,

          2. check the params given


            • -d for download

            • -nv for no video, so you can listen a music video.



          3. with wget get the source of the YT link for example

          4. with some grepping and cutting get the video IDs of all the following recommended videos

          5. play them one by one







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 17 '17 at 20:18









          Stephen Rauch

          3,36810 gold badges16 silver badges30 bronze badges




          3,36810 gold badges16 silver badges30 bronze badges










          answered May 17 '17 at 19:50









          whateverwhatever

          11 bronze badge




          11 bronze badge
















          • not good. kills all other currently running instances of mpv. miffed >9000

            – Digit
            Jan 18 at 0:22











          • seems to work happy just comment out the kill line, then all other paused mpv instances dont need to die. #[[ $(pgrep "mpv") ]] && pkill "mpv"

            – Digit
            Feb 9 at 9:58





















          • not good. kills all other currently running instances of mpv. miffed >9000

            – Digit
            Jan 18 at 0:22











          • seems to work happy just comment out the kill line, then all other paused mpv instances dont need to die. #[[ $(pgrep "mpv") ]] && pkill "mpv"

            – Digit
            Feb 9 at 9:58



















          not good. kills all other currently running instances of mpv. miffed >9000

          – Digit
          Jan 18 at 0:22





          not good. kills all other currently running instances of mpv. miffed >9000

          – Digit
          Jan 18 at 0:22













          seems to work happy just comment out the kill line, then all other paused mpv instances dont need to die. #[[ $(pgrep "mpv") ]] && pkill "mpv"

          – Digit
          Feb 9 at 9:58







          seems to work happy just comment out the kill line, then all other paused mpv instances dont need to die. #[[ $(pgrep "mpv") ]] && pkill "mpv"

          – Digit
          Feb 9 at 9:58















          0














          I think your best bet with the least effort might be with the terminal program mps-youtube's related video functionality. Check it out here: https://github.com/mps-youtube/mps-youtube.



          For example:



          If you want to watch a bunch of Chris Cornell tribute videos and you have mps-youtube installed and launched, you can use the following command to set video playback to "true" (otherwise you will only get audio)



          set show_video true


          Then, find the video, or playlist your want to play:



          For Videos:



          .Chris Cornell Tribute


          Then choose the video you want related videos for:



          r 1


          (where 1 is the video you want related videos for)



          Then simply enter the range of the videos you would like played.



          1-50


          (will play all related videos, up to number 50.)



          You may also need to set the default video player to mpv, as I think the program defaults to mPlayer. I realize this adds an entirely separate program into the mix, but it does utilize the tech's your asking about, while keeping you in the terminal.






          share|improve this answer




























          • Do you know that this will work, or are you just guessing? Can you describe how to do what the OP wants to do? Please do not respond in comments; edit your answer to make it clearer and more complete.

            – G-Man
            May 17 '17 at 21:24
















          0














          I think your best bet with the least effort might be with the terminal program mps-youtube's related video functionality. Check it out here: https://github.com/mps-youtube/mps-youtube.



          For example:



          If you want to watch a bunch of Chris Cornell tribute videos and you have mps-youtube installed and launched, you can use the following command to set video playback to "true" (otherwise you will only get audio)



          set show_video true


          Then, find the video, or playlist your want to play:



          For Videos:



          .Chris Cornell Tribute


          Then choose the video you want related videos for:



          r 1


          (where 1 is the video you want related videos for)



          Then simply enter the range of the videos you would like played.



          1-50


          (will play all related videos, up to number 50.)



          You may also need to set the default video player to mpv, as I think the program defaults to mPlayer. I realize this adds an entirely separate program into the mix, but it does utilize the tech's your asking about, while keeping you in the terminal.






          share|improve this answer




























          • Do you know that this will work, or are you just guessing? Can you describe how to do what the OP wants to do? Please do not respond in comments; edit your answer to make it clearer and more complete.

            – G-Man
            May 17 '17 at 21:24














          0












          0








          0







          I think your best bet with the least effort might be with the terminal program mps-youtube's related video functionality. Check it out here: https://github.com/mps-youtube/mps-youtube.



          For example:



          If you want to watch a bunch of Chris Cornell tribute videos and you have mps-youtube installed and launched, you can use the following command to set video playback to "true" (otherwise you will only get audio)



          set show_video true


          Then, find the video, or playlist your want to play:



          For Videos:



          .Chris Cornell Tribute


          Then choose the video you want related videos for:



          r 1


          (where 1 is the video you want related videos for)



          Then simply enter the range of the videos you would like played.



          1-50


          (will play all related videos, up to number 50.)



          You may also need to set the default video player to mpv, as I think the program defaults to mPlayer. I realize this adds an entirely separate program into the mix, but it does utilize the tech's your asking about, while keeping you in the terminal.






          share|improve this answer















          I think your best bet with the least effort might be with the terminal program mps-youtube's related video functionality. Check it out here: https://github.com/mps-youtube/mps-youtube.



          For example:



          If you want to watch a bunch of Chris Cornell tribute videos and you have mps-youtube installed and launched, you can use the following command to set video playback to "true" (otherwise you will only get audio)



          set show_video true


          Then, find the video, or playlist your want to play:



          For Videos:



          .Chris Cornell Tribute


          Then choose the video you want related videos for:



          r 1


          (where 1 is the video you want related videos for)



          Then simply enter the range of the videos you would like played.



          1-50


          (will play all related videos, up to number 50.)



          You may also need to set the default video player to mpv, as I think the program defaults to mPlayer. I realize this adds an entirely separate program into the mix, but it does utilize the tech's your asking about, while keeping you in the terminal.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 18 '17 at 18:09

























          answered May 17 '17 at 20:48









          dougblitz210dougblitz210

          112 bronze badges




          112 bronze badges
















          • Do you know that this will work, or are you just guessing? Can you describe how to do what the OP wants to do? Please do not respond in comments; edit your answer to make it clearer and more complete.

            – G-Man
            May 17 '17 at 21:24



















          • Do you know that this will work, or are you just guessing? Can you describe how to do what the OP wants to do? Please do not respond in comments; edit your answer to make it clearer and more complete.

            – G-Man
            May 17 '17 at 21:24

















          Do you know that this will work, or are you just guessing? Can you describe how to do what the OP wants to do? Please do not respond in comments; edit your answer to make it clearer and more complete.

          – G-Man
          May 17 '17 at 21:24





          Do you know that this will work, or are you just guessing? Can you describe how to do what the OP wants to do? Please do not respond in comments; edit your answer to make it clearer and more complete.

          – G-Man
          May 17 '17 at 21:24


















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f302674%2fhow-to-enable-youtube-autoplay-with-youtube-dl-mpv%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

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...