|
||||
MPS-Youtube on OpenBSD
I've been loving mps-youtube since it first came out, and I always have it run in background as soon as I Iogin.
It's true there are other nice music/video streaming solutions in OpenBSD's ports tree (livestreamer, mplayer, youtube-dl+mpg123 etc..), and that pyradio, builds on OpenBSD, but to me, mps-youtube looks the lightest and cleanest. Mps-youtube, exploits mps, pafy library, and youtube-dl in order to query songs, artist and playlist directly from youtube. It can also use whether Mpv or Mplayer2, depending on which one you like best, so as to display video. You can do this by turning video option to true before streaming, or, with: Code:
mpsyt playurl https://youtube_video_url MPS-youtube relies on python 3.6, and can be installed through pip. python27 version of pip (py-pip) won't be able to build mpsyt. If you have it installed, it will be necessary to exchange it with py3-pip, as shown below So, first the dependencies: - lang/python/3.6,-main - devel/py-pip,python3 - devel/py-setuptools,python3 - mpv or mplayer - youtube-dl. Please, don't build youtube-dl from ports, you'll have to install it through py3-pip inorder for mps-youtube to work. Now install youtube-dl: Code:
doas pip3.6 install -U youtube-dl Code:
doas pip3.6 install -U git+https://github.com/mps-youtube/mps-youtube.git |
|
|||
Is mps-youtube for youtube only? I ask because some of the other software you mention (like livestreamer, which by the way is now called streamlink) can stream a huge variety of sites. And in fact I made a port of it to watch Twitch. So just wondering if mps-youtube can be a replacement for things like that.
|
|
||||
Quote:
Well, mpsyt queries YouTube songs/videos only. However it is built on mps (no need for python3, it builds with standard python27 pip), which uses prostopleer.com, as primary resource/database for streaming. Now the site is down, as I think it migrated to another server and acquired the name of musicpleer.audio.Consequently, mps is currently broken, unable to stream any song. I have never tried to do so, but I think that changing its main reference site is something trivial. Hence, perhaps you may make better use of mps,, instead of mps-youtube, and switch it's main database url to your likes (mp3skull would be my suggestion). EDIT: thanks very much for streamlink. It's some time I don't have it installed on my system, but I used to spend whole afternoons with livestreamer. Now I'm curious to see what's new about the latest version. To RIPE Quote:
Short answer: you can just install the pip3.6 binary package, which is named: py3-pip It will bring all dependencies along with it. Longer answer: Seems you had both python2.7 and python3.6 already installed as dependencies for other packages . Doesn't matter. If you look below in your pkg_info output, even python3 is listed after: Information for inst: python-3.6.2 In OpenBSD (unlike FreeBSD for example) different versions of python do not conflict and can coexist together, as long as you do not create the symbolic links it suggests). You can now go on installing pip3 whether from ports or packages Hope this helps Last edited by Sehnsucht94; 15th October 2017 at 07:07 AM. |
|
||||
There is a fork from mpsyt:
"yewtube, forked from mps-youtube , is a Terminal based YouTube player and downloader. No Youtube API key required." It is easy to install with pip https://github.com/mps-youtube/yewtube I am using it. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Firefox in OpenBSD 6.0 supports YouTube videos | bsd-keith | OpenBSD Packages and Ports | 1 | 3rd September 2016 03:01 PM |
youtube-dl | kerasi | OpenBSD Packages and Ports | 13 | 17th November 2015 10:38 PM |
Gangnam Style BREAKS YouTube | J65nko | Off-Topic | 0 | 3rd December 2014 02:01 PM |
how to watch youtube videos on OpenBSD? | lucas34 | OpenBSD Packages and Ports | 28 | 11th March 2014 06:34 PM |
Conference on Youtube infrastructure | 18Googol2 | Off-Topic | 0 | 13th July 2008 05:20 PM |