DaemonForums  

Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 14th October 2017
Sensucht94's Avatar
Sensucht94 Sensucht94 is offline
Real Name: Paolo Vincenzo Olivo
Package Pilot
 
Join Date: Oct 2017
Location: Rome
Posts: 140
Default 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
Currently only the developer branch of mps-youtube works, as it has fixed runtime issues related to latest pafy API, so you'll have to clone it directly:

Code:
doas pip3.6 install -U git+https://github.com/mps-youtube/mps-youtube.git
Simple nad clean, enjoy it!
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 09:55 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick