As this question looks useful to me, I have created it in order to provide an answer. (The meta issue of doing this was discussed and answered (here and here).
A specialized application to see Youtube videos in an external player is Youtube Viewer (
youtube-viewer). It runs in terminal and uses
mpv to play the youtube video.
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install youtube-viewer
By default it uses
mplayer. To make it use
mpv instead, run
youtube-viewer --video-player=mpv. So, a desktop file with this content may be useful:
Exec=bash -c 'youtube-viewer --video-player=mpv'
When running the program, a terminal window opens, saying:
=>> Search for YouTube videos (:h for help)
Just type the search item. Then type the corresponding number(s) of the videos you want to be played.
A cross-platform solution that is not limited to youtube is to use the well-known Firefox addon FlashGot, which is meant to send video streams to different download managers, but make it to send the URL stream to VLC:
- add VLC to Flashgot list: FlashGot options, General tab, Add, give a name 'VLC' , - then go to the VLC executable and select it
- FlashGot options, FlashGot tab, choose VLC
- playing the video in Firefox, a Flashgot button should appear (add that to the toolbar or the status bar). Right-click the button, Available formats, and left-click the video. VLC should start playing the video stream
1. SMPlayer. - limited to youtube (unless used with the solution above: have not tested that yet)
and the Youtube Browser
sudo add-apt-repository ppa:rvm/smplayer
sudo apt-get update
sudo apt-get install smplayer smtube
It starts the separate application, SMPlayer Youtube Browser, to search for videos. One can create a link/desktop launcher to it,
or just run
2. Using VLC. It looks like VLC is able to start videos of this kind from more websites, while smplayer is limited to youtube.
One can add the link to the video in VLC
3. Using Totem:
Some plugins are available for Totem player, among which a youtube browser similar to that of SMPlayer. You can open youtube videos in Totem, at lower quality it seems than in the previous options, but they load faster and are perfect for listening music from youtube.
There is also an arte-tv plugin for Totem that is not working at the moment... but maybe it will in the future... and supplementary plugins, including a BBC iPlayer. (The later no better than the one for arte-tv I fear.)
But there is a more elegant method:
using add-ons/extensions to open the external players directly from the internet browser's interface or context menu.
Firefox Openwith addon, created initially to open links in different web browsers, can do just that, by adding in its Preferences
smtube instead of/beside browsers .
In Chromium there is an extension to start youtubes in VLC - here.
To use it, the youtube video has to be playing, the VLC web interface has to be enabled (VLC Tools-Preferences-Show Settings -All-Interface-Main-enable Web, restart VLC) and VLC has to be already open.
While VLC seems able to do this outside youtube, it has limitations when dealing with other websites. In Dailymotion works perfectly, but on Google videos it already may have problems, in others it's the OpenWith addon that would not work. I hadn't time to test them enough, I'll update this post in time, and invite comments and edits that would help find ways to open any embedded flash in VLC or other external player.
(This answer was based on ideas coming from izx, Halknner and user55822 as they answered or commented on other question.)
There is a VLC add-on to play YouTube videos and playlists - here
Copy the URL of the youtube video or playlist (must contain "list=PL...")
Start VLC, press Ctrl+N, paste the url then click on "Play" (or Alt+P then Enter), the video /playlist should start.
In 'Media', 'Save Playlist to File' and may open it later in VLC.