by blodsugare » Sat Apr 25, 2015 6:51 pm
Hey guys I like SMPlayer and I managed to find my own solution for Youtube+SMPlayer it works awesome, I combined "smplayer" and "gtk youtube-viewer together". I'm using Ubuntu Trusty Tahr this is how to reproduce my steps:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install youtube-viewer
By default it uses mplayer engine so you can substitute any front-end player that uses mplayer engine just to get a nice GUI. This is how you can replace it to use SMPlayer by default: in Youtube Viewer navigate to "Menu" --> "Preferences", you'll get a script opened, find these lines:
video_player_selected => "mplayer",
video_players => {
mplayer => {
arg => "-prefer-ipv4 -really-quiet-cache %d -cache-min %d",
audio => "-audiofile *AUDIO*",
cmd => "/usr/bin/mplayer",
fs => "-fs",
srt => "-sub *SUB*",
},
mpv => {
arg => "--really-quiet",
then simply change the line:
cmd => "/usr/bin/mplayer",
to e.g.:
cmd => "/usr/bin/smplayer",
Next open SMPlayer and navigate to "SMPlayer Preferences" --> "Network" tab and put the marks at "Enable Youtube internal support" and "Enable MPV's support for streaming sites" that's it. Now go back to Youtube Viewer and click on any video it will launch it with SMPlayer. Not sure if that even was neccessary but I did it anyways. Also when using SMPlayer if you want to avoid breaking a link into threads when clicking on the video to play remove this argument line from mplayer section:
arg => "-prefer-ipv4 -really-quiet -cache %d -cache-min %d",
Now in Youtube-viewer just click on any video even from Vevo etc. and it'll be reproduced in SMPlayer in no time.