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 (YouTube/SoundCloud/NicoVideo):
rmpc addyt <url>
(TUI:addyt <url>
) - Search by name (first result, YouTube):
rmpc searchyt “search terms”
(TUI:searchyt “search terms”
) - Search SoundCloud:
rmpc searchyt -s “search terms”
(TUI:searchyt -s “search terms”
) - Interactive pick (choose from a list): add
—interactive
(TUI opens a picker) — e.g.rmpc searchyt —interactive “search terms”
- Limit candidates: add
—limit <N>
to fetch the first N search results - Optional position: add
—position <n|+n|-n>
to enqueue at an absolute or relative position
- From a URL (YouTube/SoundCloud/NicoVideo):
Example
Section titled “Example”bind_to_address "/tmp/mpd_socket"
( address: "/tmp/mpd_socket", cache_dir: Some("/tmp/rmpc/cache"), ...)