Youtube playback
Rmpc can play videos from youtube, soundcloud and nicovideo, but needs a little setup before it
can do that. Only single songs can be added at a time.
For youtube, playlists are supported as well. Be careful though because executing addyt
for
a playlist will start downloading all contained songs, this action might take some time to finish
and cannot be stopped except by terminating rmpc.
- Install yt-dlp and have it available in your PATH.
- Install yt-dlp’s dependencies: ffmpeg, ffprobe, python3 and python’s mutagen library.
- Configure rmpc’s cache directory in your config file
- Connect to MPD with a local socket and not IP address.
- Execute
rmpc addyt <youtube-url>
or in tuiaddyt <youtube-url>
to add a song to the queue.
Example
Section titled “Example”bind_to_address "/tmp/mpd_socket"
( address: "/tmp/mpd_socket", cache_dir: Some("/tmp/rmpc/cache"), ...)