How to play YouTube playlists in VLC - gHacks Tech News

How to play YouTube playlists in VLC

VLC Media Player is a versatile all-you-can-play program for Windows and other operating systems. What makes it popular is a mixture of features but especially the fact that you can throw nearly every video or audio format in existence at it and it plays them just fine, without the need for extra codecs.

Amit over at Digital Inspiration recently discovered an option to play YouTube playlists in VLC. You probably know that you can play individual YouTube videos using VLC's Media > Open Network Stream feature. That does not work for playlists out of the box though.

Before we take a look at how you integrate playlist support to VLC, we should take a moment to find out why you'd want to play the videos on your computer and not on the YouTube website.

  • You can play all videos on YouTube without the need for Adobe Flash or other plugins
  • VLC Media Player offers versatile playback controls including filters, options to zoom in or out, or changing a video's aspect ratio on the fly.
  • Ads are apparently not displayed when you play a YouTube playlist on your computer.
  • You can use VLC's always on top feature, located under Video > Always on Top and also available as an automatic setting for all videos, to have the video always in the foreground no matter what you do on the system.

youtube playlists vlc

Play YouTube playlists in VLC

You need to download this script and place it into the VLC playlist folder. You find the folder under %ProgramFiles%\VideoLAN\VLC\lua\playlist on Windows. Just download the file and place it into the folder. Make sure you restart VLC if it is open.

You can then load any YouTube playlist right into VLC by selecting CTRL-N to open the network stream window and pasting the playlist into the network url that you can input here.

open network url

A click on Play starts the first video of the playlist right away. Once that is finished, the next in line will be played until all videos of the playlist have been played in VLC Media Player.

You can use VLC's next and previous media buttons to skip videos that you are not interested in or replay videos that you want to watch again.





  • We need your help

    Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

    We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.

    If you like our content, and would like to help, please consider making a contribution:

    Comments

    1. marios said on November 28, 2012 at 2:13 pm
      Reply

      This script works only on http:// not https:// but it works like charm!

    2. marios said on November 28, 2012 at 2:50 pm
      Reply

      i also changed the extension from lua to luac.

    3. srichakradhar said on November 28, 2012 at 3:36 pm
      Reply

      Hello amit,
      I can only see the titles of the videos on the window. The videos keep switching to the next one. I can see the screenshot but the video is not at all loading. I’ve also tried changing the extension to .luac but in vain. I’ve tried with different links many times. What may be the problem?

      1. Martin Brinkmann said on November 28, 2012 at 3:41 pm
        Reply

        I’m not Amit but can you post a link you are trying to play? Also, are you running the latest version of VLC Media Player?

    4. srichakradhar said on November 28, 2012 at 7:55 pm
      Reply

      Sorry for the mistake, Mr. Martin. I am currently running VLC 2.0.1. I’ve searched just randomly for the “tutorial” videos on youtube and tried to play many of them.

      1. Martin Brinkmann said on November 28, 2012 at 9:22 pm
        Reply

        Please try the latest version of VLC, it is 2.0.4 currently.

    5. Zokzvek said on November 28, 2012 at 11:45 pm
      Reply

      I thought doing this, the prolonged loading of the videos would be bypassed because not need Flash Player. But the videos are giving each fought. Anyway, nice tip Martin.

      Sorry for my bad english. I’m russian.

    6. Alec Burgess said on November 28, 2012 at 11:49 pm
      Reply

      @Martin: just updated to latest 2.0.4
      Here is a sample playlist that does not work:
      http://www.youtube.com/watch?v=-7JVxE2SYxo&list=PL38E9705F5F68D3D0&feature=plpp_play_all
      It seems to just flash between the VLC icon and a thumbnail of the video (or at least that’s what it looks like) while the title bar alternates between displaying a URL and a title of one of the items in the playlist.

      …. later … fails on WinXP SP-3 (as above) but works perfectly on Win-7 SP1.
      Can you or anyone else duplicate this finding?
      Maybe the lua script needs a tweak?

      btw: the script name starts with leading 149909 in
      http://addons.videolan.org/CONTENT/content-files/149909-playlist_youtube.lua
      Is this significant or are all scripts in the folder evaluated to see if they can be used for a given task.

      1. imu said on November 29, 2012 at 12:02 am
        Reply

        @Alec Burgess
        make sure your link to the playlist has this format : http://www.youtube.com/playlist?……………..
        otherwise it ain’t gonna work.

        Cheers

    7. imu said on November 28, 2012 at 11:54 pm
      Reply

      under Linux drop it here : /usr/lib/vlc/lua/playlist

      Cheers

      1. Martin Brinkmann said on November 29, 2012 at 12:25 am
        Reply

        Thanks for the tip!

    8. imu said on December 1, 2012 at 1:51 am
      Reply

      just so you know..they already moved the script here :

      http://addons.videolan.org/content/show.php/+Youtube+video+and+playlist+importer?content=149909

      Cheers

      1. Martin Brinkmann said on December 1, 2012 at 2:04 am
        Reply

        Thanks, have edited the url.

    9. greyz14 said on December 2, 2012 at 2:20 pm
      Reply

      Even movie tracks can be downloaded on this media player. You can share it with your friends– simply drag and drop it to your friends without opening a new browser. Check it at http://www.emoplayer.com and get invite on Twitter.

    Leave a Reply