Not sure how well known these are but, as someone with a weak netbook i love
Pianobar-: a cli pandora player
https://github.com/PromyLOPh/pianobar
Youtube-viewer-: a way to stream youtube videos via cli, essentially uses mplayer or mpv etc, but the interface is cli. I like it because 1) no flash 2) uses my player, mpv, so all hotkeys are the same. 3) works way better with a tiling wm and easier with multitasking as yo dont need a browser open.
I use youtube-viewer, which has a GTK front end as well if you want it. Ultimately it just passes the URL off to mpv or vlc or a few others, but it does support subscriptions and some other things.. I am not sure about playlists though, definitely no recommendations.
I drop this program a lot, but it doesn't quite catch on here. Anyway, the cli version loads vids in like a second or less for me (may require some edits to its config file, tho):
https://github.com/trizen/youtube-viewer
As for intergration with qutebrowser, instead of spawning mpv directly, I have a script that calls youtube-viewer whenever I supply YouTube links, and fallsback on MPV+ytdl for anything else.
YouTube is a mess no matter what web client you use. I know it's not the answer to your question, but have you tried youtube-viewer? It's a lightweight client with both a GUI (GTK2) and TUI.
I am actually using the "External Application Button 2" where I bound this script:
#!/bin/bash _video=$(echo $1 | egrep -o "[?&]v=."|egrep v=[_0-9a-zA-Z-]) ionice -c 2 -n 0 schedtool -N -n 0 -e youtube-viewer -f --really-quiet --no-interactive --video-player=vlc $_video
EDIT: youtube-viewer
is available here or in Arch Linux just run sudo pacman -S youtube-viewer
It looks like this is an issue with YouTube-viewer and googles api call limit: https://github.com/trizen/youtube-viewer/issues/308
There are instructions in the readme.md on how to create your own client id/secret to get around this, if you feel like trying it out.
There is option in youtube-dl that sets quality of the video ...mpv has hook for youtube-dl meaning that you can pass this parameter for youtube-dl via mpv.conf ....i m not sure what default value is, but i would guess it is "the best" ...as someone mentioned there is delay because a lot of things has to happen before mpv starts playing. There is nothing about this that is mpv's fault ...youtube-dl has to start downloading (that takes for me like 3 seconds) then it has to load few frames so it doesnt lag immediately ...so what you can do is lower the quality and what helped me the most is youtube-viewer ...under the hood it uses youtube-dl but somehow it is way faster for me (try it ....it also accepts parameter for quality)
for youtube-dl, put this line to .config/mpv/mpv.conf
ytdl-format=bestvideo[height<=?720]+bestaudio/best
​
and for [youtube-viewer](https://github.com/trizen/youtube-viewer), just run it like this :
youtube-viewer --resolution=720p --player=mpv --no-interactive {url}
<code>youtube-viewer</code> does it pretty nicely, but it doesn't automate it in your suggested way. Instead you have a CLI-interface to select a video. I'm unsure if you can log into your account through it, though.
Not sure what you mean, with HTML5 on Firefox that's how it behaves for me; the player sticks to the browser and is always fullscreen. If you mean you want to resize the fullscreen player while keeping it fullscreen, you can't with standard YouTube playing AFAIK.
I watch all my YouTube videos with mpv (mplayer replacement) and gtk-youtube-viewer, which is quite a bit more flexible (you might want to tweak cache settings and stuff for decent playback + seeking though).
yt-dlp is much faster, really. Google is (accidentally) working against youtube-dl, and yt-dlp has worked around that by pretending to be an andriod device or something, while youtube-dl has basically ceased development.
youtube-viewer is imo also really, really fast with loading a yt video into mpv (doesn't use youtube-dl/yt-dlp).
I say this everytime when qb + mpv comes up, but in my experience youtube-viewer opens URLs a lot faster than if you would just use mpv (you can test this from the commandline, mpv/youtube-viewer $URL
— be sure the appropiately configure youtube-viewer first, so that it directly launches mpv). It also has a pretty nice config for storing youtube-related playback preferences.
you might wanna check this out. Its always nice to use lightweight options but it has some perks...i noticed it starts those videos faster for example that simply mpv "ytb link" with its ytbdl hook
check out youtube-viewer it's a command-line youtube browser that opens the video with mpv. If you're only on youtube and not visiting other sites it should work nicely :)
It is. I had to consult it via the Tor browser because i block all Google access on my network.
Here´s the GitHub page for that last one https://github.com/trizen/youtube-viewer
And, it´s linked AUR page. https://aur.archlinux.org/packages/gtk-youtube-viewer-git/
https://github.com/trizen/youtube-viewer ???
This is a constant annoyance across this sub. I've never heard of youtube-viewer
and you question quite frankly assumes it's as common a command as grep
Assuming I understand your question, when I want to get data about a youtube video while on the command line, I use the following function:
$ type ytvi #ytvi -- You Tube Video Information ytvi is a function ytvi () { youtube-dl -j -- "$" | python -m json.tool | grep -E "uploader|upload_date|filename|description|^ \"duration" | sed -e 's\n_\n_g' -e 's|(.*uploader_url.)",|\1/videos|g' }
youtube-dl = https://ytdl-org.github.io/youtube-dl/index.html
(I should probably fix python -m json.tool
to point to the equivalent python3 command.)
If you want newsboat to load your actual youtube submissions proper I believe OP is doing this and his config will point you in the right direction; technically I still just manually add youtube channels my urls manually via https://www.youtube.com/feeds/videos.xml?user=USER_NAME or https://www.youtube.com/feeds/videos.xml?channel_id=CHANNEL_ID - as for my bash scripts they're more than a little disorganized so I don't have them online yet, but let me know and I can share what I have if you want. Otherwise simply installing youtube-viewer and running youtube-viewer --tricks may inspire you. Best
Nice work! I similarly use Newsboat for accessing youtube subscriptions, but with youtube-viewer and some intermediate scripts to save videos for later, extract mp3, like the video, etc.
You can "follow" channels by RSS, then use something like youtube-dl (personally I'm a fan of https://github.com/trizen/youtube-viewer) to pipe the videos into VLC or your preferred media player.
The RSS feed has to be in either of these two formats:
https://www.youtube.com/feeds/videos.xml?channel_id=*IDOFCHANNEL**