Skip to content
jmf1988 edited this page Aug 26, 2021 · 3 revisions

Welcome to the ytdash wiki! More examples and tips from a Debian Stable experience:

  • To create a launcher to automatically search per channel to avoid video ID rotation of some long live videos add to command:

ytdash -s https://www.youtube.com/channel/UCSyg9cb3Iq-NtlbxqNB9wGw -a -k

That will first kill any other instances currently running of ytdash (-k), search (-s) in the given channel id (UCSyg9cb3Iq-NtlbxqNB9wGw) for live streams (default) and play all video items found (a channel can have many live videos simultaneously, i.e Explore Oceans' channel) and start playing automatically (-a) all items (default is a max of 5 results) from the first item found.

Because the search results are cached and have a 24h lifetime, each time you click again in the same day it will start faster, because it is cached and after a day passed it will re-search again so to avoid a maybe changing video id, so you can fully automatize the process of watching a live stream and changing between channels almost like a TV (just clicking on each channel launcher in the desktop or a bar/dock).

  • Directly search and autostart ytdash from console without Desktop environment with startx:

alias sy='startx /home/jmf/.local/bin/ytdash -s -fs -a -mh 720 '

So now I can start ytdash without any graphical interface more than a console and Xorg at system startup just type i.e; "sy news", and ytdash will search (-s) for "news" string in youtube using its API and start playing automatically (-a) all items (default is a max of 5 results) from the first item found in fullscreen (-fs) mode and with max resolution of 720p (-mh 720).

  • Enable vaapi on mpv:

In order to enable hardware video decoding through vaapi with mpv 0.29 user-wide I had to add these lines to ~/.config/mpv/mpv.conf:

hwdec=auto

vo=vaapi (may have osd text resolution issues, but fixed and flag not needed with mpv 0.32)

  • To enable old play bar on mpv add to ~/.config/mpv/mpv.conf:

script-opts='osc-layout=box,osc-seekbarstyle=bar,osc-deadzonesize=0,osc-minmousemove=3'

Clone this wiki locally