You are not logged in.

#1 2024-04-08 00:29:19

JasonMehmel
Member
Registered: 2015-10-06
Posts: 186

Favourite terminal music players?

I've got a solution for my situation right now, but I'd love to hear what others are using!

I've been using cmus for years... mostly to play streams!

I download or make a .pls file, mostly from Soma FM, and then add it as a playlist called 'streams' where I put all of them.

There's a few other terminal players that have better library settings, but I haven't been able to replicate the stream-play option.

I was trying to find a way to play YouTube music playlists via the terminal. I used to be able to do it with mpv --no-video <url> but I think something's not working right since youtube-dl depreciated and yt-dlp hasn't caught up.

Yewtube (https://github.com/mps-youtube/yewtube) has been an interesting option, though the setup isn't working with my media keys.


Fortune favours the bold.
ThinkPad T15 Gen 2i

Offline

#2 2024-04-08 00:38:56

shortarcflyer
Banned
Registered: 2022-04-27
Posts: 408

Re: Favourite terminal music players?

It is not a terminal streaming player but have you ever tried radiotray-ng? 

https://github.com/ebruck/radiotray-ng


I use Arch BTW!  If it is not rolling, it is stagnant!
RebornOS, EndeavourOS, Archbang, Artix,
Linuxhub Prime, Manjaro, Void, PCLinuxOS

Offline

#3 2024-04-08 00:44:04

JasonMehmel
Member
Registered: 2015-10-06
Posts: 186

Re: Favourite terminal music players?

shortarcflyer wrote:

It is not a terminal streaming player but have you ever tried radiotray-ng? 

https://github.com/ebruck/radiotray-ng

I'm intrigued! Are you running that on a BunsenLabs system? I'm not sure if the default system tray plays well with this program but I am very interested.


Fortune favours the bold.
ThinkPad T15 Gen 2i

Offline

#4 2024-04-08 01:50:36

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 13,161
Website

Re: Favourite terminal music players?

^I'm using radiotray-ng too - it works fine on BL Beryllium. (Haven't upgraded to Boron yet. hmm )

btw I've had no issues with yt-dlp, which I've used to download from yt in the last couple of days. But that's the direct upgrade, not the Debian version. Youtube changes so fast it's really hopeless trying to use a debian package. That was the case with youtube-dl too.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#5 2024-04-08 02:28:45

JasonMehmel
Member
Registered: 2015-10-06
Posts: 186

Re: Favourite terminal music players?

johnraff wrote:

^I'm using radiotray-ng too - it works fine on BL Beryllium. (Haven't upgraded to Boron yet. hmm )

btw I've had no issues with yt-dlp, which I've used to download from yt in the last couple of days. But that's the direct upgrade, not the Debian version. Youtube changes so fast it's really hopeless trying to use a debian package. That was the case with youtube-dl too.

Okay, that clinches it. I'll have to give this a try ASAP.

John, Did you have to install anything extra for that gnome-extension systray action? (Extra as in, out of repos?) And did you compile the radiotray-ng for Debian, or use one the Ubuntu-flavoured .deb files they've got?

Are you compiling the yt-dlp from source?

I haven't really played much with yt-dlp at all, I was just noting that the trick I used to play youtube playlists via the mpv --no-video command didn't appear to be working easily, and that youtube-dl was probably the issue. I just couldn't quickly figure out how to make yt-dlp work with that mpv command. (That said, I haven't tried yt-dlp on it's own, so maybe it's got the problem that I've now encountered.)

Oh, and...

johnraff wrote:

it works fine on BL Beryllium. (Haven't upgraded to Boron yet. hmm )

I am shook. wink


Fortune favours the bold.
ThinkPad T15 Gen 2i

Offline

#6 2024-04-08 03:55:39

or1o9
Member
Registered: 2017-11-15
Posts: 254

Re: Favourite terminal music players?

I use yt-dlp from backports, and so far without any problems.

Offline

#7 2024-04-08 07:11:09

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 4,109

Re: Favourite terminal music players?

I use ncmpcpp with mpd and have done for years.  I have tested other players, but ncmpcpp is the best for me.


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#8 2024-04-08 07:53:32

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 13,161
Website

Re: Favourite terminal music players?

JasonMehmel wrote:
johnraff wrote:

I'm using radiotray-ng too...

I've had no issues with yt-dlp, which I've used to download from yt in the last couple of days. But that's the direct upgrade, not the Debian version. Youtube changes so fast it's really hopeless trying to use a debian package. That was the case with youtube-dl too.

Did you have to install anything extra for that gnome-extension systray action?

No, radiotray-ng just runs in my tint2 systray the same way radiotray did.

And did you compile the radiotray-ng for Debian, or use one the Ubuntu-flavoured .deb files they've got?

I compiled a previous version from source, but right now I'm using the Ubuntu deb:
radiotray-ng_0.2.8_ubuntu_21.04_amd64.deb
and it's working OK on Beryllium.

Are you compiling the yt-dlp from source?

No I just pulled the binary from the GitHub site:
https://github.com/yt-dlp/yt-dlp#release-files
Highly dangerous behaviour that I would not recommend to anybody - much safer to compile it or use the Debian package.
I compound that by using the built-in upgrade option, so now I'm using version 2024.03.10. (The Debian Bullseye package is currently at 2023.03.04-1~bpo11+1)

or1o9 wrote:

I use yt-dlp from backports, and so far without any problems.

I guess it depends on what you're using it for. Last week I got an error downloading something and upgrading yt-dlp fixed it.

JasonMehmel wrote:

Oh, and...

johnraff wrote:

(Haven't upgraded to Boron yet. hmm )

I am shook. wink

Of course I've got Boron on two laptops and several VMs, but haven't yet set aside the time to do a careful upgrade of my main machine. Soon...


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#9 2024-04-08 10:19:26

Colonel Panic
Member
Registered: 2018-11-13
Posts: 1,623

Re: Favourite terminal music players?

The only one I know is mpv, but it works well enough (I play mostly sound files and listen to radio).

Last edited by Colonel Panic (2024-04-08 10:20:17)

Offline

#10 2024-04-08 14:53:16

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,804
Website

Re: Favourite terminal music players?

Dobbie03 wrote:

I use ncmpcpp with mpd and have done for years.  I have tested other players, but ncmpcpp is the best for me.

I tried it a few weeks ago and it was taking so much time to set up that I gave up. I use Audacious minimized to tray (Status Icon plugin) with the notification plugin running.


I don't care what you do at home. Would you care to explain?

Offline

#11 2024-04-08 15:05:20

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,804
Website

Re: Favourite terminal music players?

Oh, if your downloading with yt-dlp and want it the audio only as an mp3...

# Specify audio format and audio quality of extracted audio (between 0 (best) and 10 (worst), default = 5):

yt-dlp --extract-audio --audio-format mp3 --audio-quality 0 -o "%(title)s.%(ext)s" "URL"

Replace URL with an URL, of course. That also strips off the trailing [some random number] from the filename.

See 'man yt-dlp' for a myriad of formatting options...

https://man.archlinux.org/man/yt-dlp.1


I don't care what you do at home. Would you care to explain?

Offline

#12 2024-04-08 15:05:40

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,804
Website

Re: Favourite terminal music players?

Oh, if your downloading with yt-dlp and want the audio only as an mp3...

# Specify audio format and audio quality of extracted audio (between 0 (best) and 10 (worst), default = 5):

yt-dlp --extract-audio --audio-format mp3 --audio-quality 0 -o "%(track_number)02d. %(title)s.%(ext)s" "URL"

Replace URL with an URL, of course. That also strips off the trailing [some random number] from the filename.

See 'man yt-dlp' for a myriad of formatting options...

https://man.archlinux.org/man/yt-dlp.1


I don't care what you do at home. Would you care to explain?

Offline

#13 2024-04-08 23:42:12

shortarcflyer
Banned
Registered: 2022-04-27
Posts: 408

Re: Favourite terminal music players?

Radiotray-ng in my system area and presently playing on PCLinuxOS openbox wm.

Screenshot-2024-04-08-18-38-21.jpg


I use Arch BTW!  If it is not rolling, it is stagnant!
RebornOS, EndeavourOS, Archbang, Artix,
Linuxhub Prime, Manjaro, Void, PCLinuxOS

Offline

#14 2024-04-09 04:52:31

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 13,161
Website

Re: Favourite terminal music players?

About yt-dlp:

johnraff wrote:

now I'm using version 2024.03.10. (The Debian Bullseye package is currently at 2023.03.04-1~bpo11+1)

or1o9 wrote:

I use yt-dlp from backports, and so far without any problems.

I guess it depends on what you're using it for. Last week I got an error downloading something and upgrading yt-dlp fixed it.

I just noticed that the Debian Bullseye backports yt-dlp is at 2024.03.10, the same as what I got directly from the site. So or1o9 is right. I'll switch to the Debian package as soon as I'm on Boron. roll


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#15 2024-04-09 05:21:36

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 4,109

Re: Favourite terminal music players?

hhh wrote:

Oh, if your downloading with yt-dlp and want it the audio only as an mp3...

# Specify audio format and audio quality of extracted audio (between 0 (best) and 10 (worst), default = 5):

yt-dlp --extract-audio --audio-format mp3 --audio-quality 0 -o "%(title)s.%(ext)s" "URL"

Replace URL with an URL, of course. That also strips off the trailing [some random number] from the filename.

See 'man yt-dlp' for a myriad of formatting options...

https://man.archlinux.org/man/yt-dlp.1

You can have my config if you would like.  Just needs the music folder location changed and for you to install mpd, mpc and ncmpcpp.


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#16 2024-04-09 06:59:56

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,904

Re: Favourite terminal music players?

Dobbie03 wrote:

You can have my config if you would like.  Just needs the music folder location changed and for you to install mpd, mpc and ncmpcpp.

With pleasure. I just can't do it with mpd, mpc and ncmpcpp.  sad

Online

#17 2024-04-09 08:14:50

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 4,109

Re: Favourite terminal music players?

Create the files required below, change user to your own, as well as the music_directory.  Start mpd either as a systemd service or however you autostart apps for your setup.

Check all works by running mpd in the terminal.

bind_to_address        "127.0.0.1"
port "6600"

music_directory "/opt/Music/" 
playlist_directory "/home/dobbie/.config/mpd/playlists" 
db_file "/home/dobbie/.config/mpd/mpd.db" 
log_file "/home/dobbie/.config/mpd/mpd.log" 
pid_file "/home/dobbie/.config/mpd/mpd.pid" 
state_file "/home/dobbie/.config/mpd/mpdstate" 

restore_paused "yes"
max_playlist_length "400000"

max_output_buffer_size "100192"
audio_output {
        type            "pulse"
        name            "pulse audio"
}
audio_output {
    type                    "fifo"
    name                    "FIFO"
    path                    "/tmp/mpd.fifo"
    format                  "44100:16:2"
}

"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#18 2024-04-09 17:40:11

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,904

Re: Favourite terminal music players?

Thank you, Dobbie03.

mpd, mpc and ncmpcpp are installed.
The terminal shows this error:

$ mpd
Apr 09 18:56 : decoder: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg
Apr 09 18:56 : exception: Failed to open '/home/unklar/.mpd/mpd.db': No such file or directory
apt policy wildmidi
wildmidi:
  Installiert:           (keine)
  Installationskandidat: 0.4.3-1+b2
  Versionstabelle:
     0.4.3-1+b2 500
        500 https://deb.debian.org/debian unstable/main amd64 Packages
doas apt install wildmidi
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  freepats libwildmidi-config
Die folgenden NEUEN Pakete werden installiert:
  freepats libwildmidi-config wildmidi
0 aktualisiert, 3 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 25,1 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 33,6 MB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] 
$ mpd
Apr 09 19:07 : exception: Failed to bind to '127.0.0.1:6600'; Failed to bind socket: Address already in use

Online

#19 2024-04-09 22:04:40

beaker
Unverified Muppet
Registered: 2016-03-06
Posts: 203

Re: Favourite terminal music players?

I use mpc mpd ncmpcpp also. I used to use cmus but it couldn't resume playback properly . . .

@unklar - the last dialog you posted is not necessarily an error. This message shows for me if I type mpd when it is already running. What happens now if you type ncmpcpp?

Also are you using pipewire or pulse?

Last edited by beaker (2024-04-09 22:06:10)


absolute muppet

Offline

#20 2024-04-10 06:30:46

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 4,109

Re: Favourite terminal music players?

unklar wrote:

Thank you, Dobbie03.

mpd, mpc and ncmpcpp are installed.
The terminal shows this error:

$ mpd
Apr 09 18:56 : decoder: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg
Apr 09 18:56 : exception: Failed to open '/home/unklar/.mpd/mpd.db': No such file or directory
apt policy wildmidi
wildmidi:
  Installiert:           (keine)
  Installationskandidat: 0.4.3-1+b2
  Versionstabelle:
     0.4.3-1+b2 500
        500 https://deb.debian.org/debian unstable/main amd64 Packages
doas apt install wildmidi
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  freepats libwildmidi-config
Die folgenden NEUEN Pakete werden installiert:
  freepats libwildmidi-config wildmidi
0 aktualisiert, 3 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 25,1 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 33,6 MB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] 
$ mpd
Apr 09 19:07 : exception: Failed to bind to '127.0.0.1:6600'; Failed to bind socket: Address already in use

Run

mpc update

in your terminal and let it build the database.  How long it takes will depend on the size of your music folder.

This error:

Apr 09 18:56 : decoder: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg

isn't an issue.  You can safely igonore it.


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

Board footer

Powered by FluxBB