Here are some alternatives I found to be nice:
Another Terminal based YouTube player that I extensively use : https://github.com/mps-youtube/mps-youtube
Features as provided on the official page :
Search and play audio/video from YouTube
Search tracks of albums by album title
Search and import YouTube playlists
Create and save local playlists
Download audio/video
Convert to mp3 & other formats (requires ffmpeg or avconv)
View video comments
Works with Python 3.x
Works with Windows, Linux and Mac OS X
> YouTube is fairly unavoidable, but for maximum communism use something like YouTube-dl, create torrents and seed them, and they'll never be taken down.
I recently got into mps-youtube since reinstalling my favorite flavor of GNU/Linux. You can use it to search, load playlists, and comment. Normally I just listen to music, but you can have it output video to mplayer. Figure I would link it to ya since you talked about YouTube-dl.
I use mpsyt. Videos are watched locally with mpv (no ads) and you can do everything from a terminal. It does not manage subscriptions but for me that's not a problem. Would recommend.
Well, if you install youtube-dl with mpv
you can stream youtube videos in it without the browser and virtually no GUI in the way. You could also use mps-youtube to browse youtube in the terminal.
Mpv has an OSD on-screen controller that is just fine. You can also use mpvc written by /u/wildefyr and then bind keys to control it as well.
For music, a lot of people use mpd
+ ncmpcpp
combo, with ncmpcpp you also have tag features, including masstag and library organization. You can use mpc
to control it with keybinds as well.
OP might have a look at mps-youtube and use mplayer/mpv to play the video content. There's also Minitube if OP prefers a GUI. Both work flawlessly here on a 10 years old thinkpad T60 and should run correctly on an Atom N450.
mps-youtube is the best youtube application ever. No obnoxious thumnails, you can search, make playlists, download videos, or listen to just the audio.
Now if only there was a port of it to android, then we'd have a decent youtube app on our phones.
Yes, everything goes to externals when after having watched it. I dont play or download 4K but youtube-dl would easily ve able to download the videos and 1080p would ve no problem to download and then play (only 720p streaming since I send the Direct links To omxplayer² (or just use <em>mps-youtube</em>) and dont play the 1080p dash in the web browser (might be too much for the pi).
Firefox-ESR but also chromium are pretty stable with many tabs on the pi. Especially firefox.
Also a perfect machine for long downloads or just keeping it on 24/7 since it doesn't need much energy.
² omxplayer $(youtube-dl -f 22 -g https://youtube.com/watch?v=VideoID)
>Thaks, but surfraw youtube foo just opens up https://www.youtube.com/results?search_query=foo in my web browser. That's not what I'm looking for. I don't want the web browser to be involved in any way.
Then set an another web browser, I prefer to use w3m
with surfraw but you could set it to use curl
if you wanted.
>If the magical search command could just return a list of links and metadata (such as descriptions, durations, views, etc) in JSON format or something, that'd be nice.
I already told you about youtube-dl ytsearch:
didn't I? What more could you ask for? Do you ever read man pages? youtube-dl
has a very convenient option -j
which gives you the information if fucking JSON. It took me a couple of minutest to write this crappy script (requires jq
) for you, now either improve it or write your own.
If you want a a youtube experience that is not focused on downloading the videos and watching them locally then you might prefer mps-youtube.
No, that's not planned to be supported by MPV. The mpv developers suggest that the functionality should be in youtube-dl, so you may want to ask them.
If your use case is auto playing music you might want to look at mps-youtube.
I believe it does, but I haven't tried that- would also look into mps-youtube (which I just found out about) if you're into streaming music. They're both great
https://github.com/mps-youtube/mps-youtube
I would just download your subscriptions via the export option an import.it to a RSS reader.
As a side note, it is also possible to play YouTube videos directly with VLC player AFAIK
You could try mps-youtube. It's a command line app with fairly simple commands. You'll want to change the settings to show you the video and also show non-music only options. It will give you a full window to view your content.
I haven't tested it on Windows personally but there are instructions for installing it on the GitHub repo
Thanks. Looks like youtube-dl would have to download the video and then extract the audio.
I've found another mps-youtube that states it can download audio only. Gonna check out both and see what I prefer.
Probably not. It's a bug. It needs to be fixed by the mps-youtube author. You should create a new issue on the project page. Try to explain exactly what you did so someone can reproduce your bug and find out what causes it.
I don't have a RPI, I have an orange pi 2.
I tried with mps-youtube (a cli youtube player that uses mplayer) and works fairly well. Granted I never tried High resolutions.
I liked it very much. Nowadays I use it in my headless installation, through ssh.
But some caveats. One, often the .deb or other packages are outdated and sometimes they break, so it makes senses install it directly from source. Also there are videos that are ciphered so it needs a dependency youtube-dl that also has likely outdated packages and can be broken.
https://github.com/mps-youtube/mps-youtube
http://rg3.github.io/youtube-dl/download.html
The usage it's pretty simple.
$> mpsyt
That opens the application in the interpreter. It's not fancy or nice.
$> mpsyt playurl <url or id>
Plays a video.
Then 9/0 decrease/increase volume, [space] pauses, </> prev/next video...
I use mps youtube. It's a terminal application, so it's text based, you only see what you look for. The downside is you can't see thumbnails to determine whether or not a video is what you want, but that makes the mindless "click on cool thumbnail in related videos" browsing impossible.
I've since moved on to Chrome but I believe the options you need to mark as 'true' in about:config are: media.mediasource.enabled media.mediasource.mp4.enabled media.mediasource.webm.enabled
You may also like to try this extension: https://addons.mozilla.org/en-us/firefox/addon/youtube-all-html5/
And finally if none of those options work for you then you could try mps-youtube which is a command line interface to YouTube. It plays videos you select through an external media player like mpv or VLC.
You need to create your own API key. With the one you are using, too much has already been downloaded and the quota set by Youtube has been exceeded.
https://github.com/mps-youtube/mps-youtube/issues/1143#issue-792680370
I like using YouTube via the terminal via https://github.com/mps-youtube/mps-youtube
Takes some effort configuring it, but makes any usage be very explicit. Also the ads are gone. Makes YouTube be lovely. And I find my use of it being more intentional.
For mobile I’m still kind of looking for a solution. I currently ssh into my desktop from my phone, copy the YouTube url from the terminal app, and paste the url into a shortcut that plays the YouTube video in a Picture in Picture (can watch in background while doing other things or listen in background) :
https://routinehub.co/shortcut/6622/
Again the major advantage here is it makes use be explicit. Kind of inconvenient.
I’d say desktop terminal is the final answer. Couldn’t be happier. Mobile not as much.
Ok, thanks. I'll read over those links. Expanding the question a bit - If we consider that I'm looking at this repo: https://github.com/mps-youtube/mps-youtube - it offers a Linux installation with pip, a Ubuntu installation with apt, or you can "run" it with Docker.
If I understand you correctly, there is essentially no guarantee a package will work on Termux unless it's in the package manager already. You might be able to install it via any package manager you can install on Termux - pip, apt - but not all those packages will actually work, since they might have dependencies not available in Termux (for example, I once tried to install something that needed a Chrome Driver or something). And I assume the same for manual installations like cloning a Github repository and running "make install" (which I still don't understand fully - what happens when you call this command? Just a side question. I assume package managers like pip call it too, automatically?).
So I wonder: who is responsible for adding packages to the package manager? Is there a set of steps for anyone who wants to? (Sorry if this is in the wiki, I just prefer asking my questions first.)
And beyond that, anything which is designed to run on Linux, unless I manually look through and can confirm Termux has all those dependencies, you suggest I run Linux in Termux with proot, to run that program?
Thanks very much, really appreciate it.
I have used void linux 32bit with lxde for several months now. It was the only distro that my crappy 15 year old vaio could handle. Some minor errors here and there that ocurred mainly to lxde. Other than that everything seems to work ok. I like the simplicity of void. I was so hooked up with void, I don't play anymore with ubuntu on my t420 or arch linux on the other thinkpad x200. One problem is that it does lag when I open youtube or other Javascript heavy websites, but it is something to be expected for a 2gb, 1.6 Ghz celeron cpu. For youtube I use mps- youtube package https://github.com/mps-youtube/mps-youtube
https://github.com/mps-youtube/mps-youtube - I've been using this on my PB G4 for YouTube, and it works pretty well for listening to music. Not sure if it can do live streams, but, it's easy enough to load up a playlist of things and listen just with audio.
Not tried it on OS X, though, just with Linux on it. Imagine it should work just fine, though.
Well, you'll be trusting Zoom. XD Seriously speaking, what I do is just fetch YT links and mpv [link]
on terminal, which is always fired anyway, or fetch the whole vid with youtube-dl [options] [link]
and then play it locally... But I think the most convenient way of doing that is with https://github.com/mps-youtube/mps-youtube A very powerful CLI app, give it a try if you haven't (if I remember correctly, it's installed by default in antiX).
You can search for the videos on the terminal itself! Just look at their features, installation guides, and tips here: mps-yt or youtube-viewer
mps-youtube (https://github.com/mps-youtube/mps-youtube). It's made mostly to listen to music on YouTube, but you can edit the settings to have it return results for everything, play video, and choose what player to use.
It sounds like you have an mps-youtube problem, and not a youtube-dl problem.
What is this version issue, and how do you know what it is? Is this a bug reported to the mps-youtube GitHub?
My second rice attempt :)
Player: mps-youtube
DE Theme: Breeze Dark modified
Audio Visualizer: glava
Wallpaper: Darkest Hour (Built in Manjaro)
If you ever find yourself in the need to use linux here are some tools I think might help you.
For finding files: fd
https://github.com/sharkdp/fd/blob/master/README.md
It could be paired with Fzf too to narrow down results.
I was a very big fan of Winamp before it was bought by Aol and turned to bloat. So I don't think anything out there comes close or at least I never cared since I don't maintain a local mp3 collection on my computer anymore.
The only one I kinda remember coming close was Clementine. I like command line tools so I just use mps-youtube https://github.com/mps-youtube/mps-youtube/blob/develop/README.rst
> I don't know what mpsyt is.
Also called mps-youtube.
> I wrote my comment like this because I want to encourage safe handling of secrets by default.
API keys aren't really like other secrets though - they're limited in scope, can easily be revoked, and generally aren't tied to individual people. Like another commenter said, this isn't like putting your private GPG key in a program.
> obviously I also use YouTube but I can’t find alternatives
Maybe there are no alternatives, but you can use mpsyt to browse youtube with a lot more privacy. And if you do remain with the browser, you can logout of your account. If you need a way to keep track of channels you like, you can keep a database of the channels you like along with tags (to find it easily) and the URL to their page.
As for gmail, I'm personally looking at self-hosting my email using a Raspberry Pi and dynamic DNS. I have no idea how much effort it will be, but it's on my project list.
https://github.com/mps-youtube/mps-youtube
On Linux it is simple to use, and if you install MPV then it streams directly to that. No YouTube log in needed for videos that need age proof or any nonsense like that. You can easily download things for off-line use, no ads, no click-bait images... yes!
I donate to Wikipedia at least once per year. I donate to the Software Freedom Conservancy every month, as well backing Ubuntu MATE on patreon. I also donate to EFF and to ESR every now and again.
I decided many years ago, simply talking about free software wasn't enough and decided to put my money where my mouth was and give back more than just advocacy and time.
One feature of youtube-dl that is very cool is it's ability pull down metadata along with the video. One option allows you to embed this metadata into the video itself using xattributes.
--add-metadata Write metadata to the video file
--xattrs Write metadata to the video file's xattrs (using dublin core and xdg standards)
This means you can have a complete record of the show notes or other descriptions. I have used it to pull down a food bloggers video's complete with recipes and put them into a scripting app that will let me search for a recipe by name or ingredients and then find the video or videos with that key in them.
Another pretty cool tool based on youtube-dl is mps-youtube a terminal based youtube downloader and player. You can search, watch playlist read comments and either play the video or just audio as you want to.
It is written in python and is really very elegant for what it does.
But.... there is no snap of it yet ;)
Or if you're on Android, use a lightweight YT app like NewPipe that enables background audio (and disables ads, comments and everything else you hate about YouTube).
youtube-viewer is great for laptops/desktops if you're running Linux or OS X. So is mps-youtube, which can play entire albums based on audio/video automatically scraped from YT
> Did a little more searching, it looks like they use mpris, dbus-python, and pygobject to do this. Try looking in this file on lines 191 to 229 to see what I'm talking about. That may be part of how they bind it systemwide, but don't quote me on that.
> They do have an IRC channel too.
> > An IRC channel #mps-youtube for the project is available on Freenode (chat.freenode.net:6697).
> Source
> I'm not sure how active it is, but they may be able to give you an answer that points you in the right direction.
~ /u/systemdgnulinux
thanks man, earlier i used to use an online service to convert my spotify playlists to youtube playlists. thereon i have a my own script to dowload audio in highest bitrate. It uses "pafy" - the youtube library that powers mps-youtube
have a look at mps-youtube (CLI) or minitube if you prefer GUI apps. Minitube should be in your distribution's repositories - mps-youtube might not.
Basically mps-youtube can use mpv/mplayer/vlc to play youtube videos, and iirc minitube relies on qt5-phonon (correct me if I'm wrong). Both are way faster than in-browser watching (I use mps-youtube on an old coreduo (32 bits) 1.66GHz T60 without a hitch).
Yeah, I'm cool with scraping websites "forcefully", my question was more because it seemed like something someone would have done before
Also, for my particular purpose, I found a pretty nice library that unfortunately you can't easily import in your own script, but if you just want to download a bunch of youtube videos, it works pretty well: mps-youtube
Yeah, I didn't find it unbelievably complex, just a little too complex for its purposes (or at least for what I would use it)
It's not really a problem per say, just a quality of life doubt
I ended up using mps-youtube, since it already did what I wanted to do natively
Thanks!
mps-youtube is pretty nifty too. Let's you stream/download both audio and video (externally with mplayer) and you can avoid the .com all together. Sadly won't be kind to a 2G connection, however ... :'(
mps-youtube is a neat cli youtube client. by default it only searches in music video category and video playback is off, but it can all be changed in config (read the faq for quick tips)
to install you need python''s pip tool.
https://github.com/mps-youtube/mps-youtube
from there, see if omxplayer can integrate with it,or you can download videos and then play them with it.