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.
- Add music to the queue:
- From a URL:
rmpc addyt <youtube-url>
(TUI:addyt <youtube-url>
) - Search by name (first result):
rmpc searchyt “search terms”
(TUI:searchyt “search terms”
) - Optional position: add
—position <n|+n|-n>
to enqueue at an absolute or relative position
- From a URL:
Example
Section titled “Example”bind_to_address "/tmp/mpd_socket"
( address: "/tmp/mpd_socket", cache_dir: Some("/tmp/rmpc/cache"), ...)