In case you thought I was joking…

mplayer handles filesystem wildcards beautifully. This is playing anything by STP in any subfolder of my main “Music” directory. I use wildcards between words because it’s lazier than escaping the spaces.

Raktajino@laptop:~$ ssh rak@media-pc

rak@media-pc:~$ mplayer -shuffle /media/Music/*/Stone*Temple*Pilots*
MPlayer 1.5+svn38446-1build5 (Debian)
Playing Acoustics/Stone Temple Pilots - Plush (Acoustic).mp3.
Clip info:
 Title: Plush
 Artist: Stone Temple Pilots
 Album: Simply Acoustic
 Track: 10
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A: 233.8 (03:53.7) of 234.0 (03:54.0)  4.5% 

Playing Rock/Stone Temple Pilots - Dead and Bloated.mp3.
Clip info:
 Title: Dead & Bloated
 Artist: Stone Temple Pilots
 Album: The Best Of Stone Temple Pilot
 Track: 7
 Genre: Grunge
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A:   9.1 (09.1) of 310.0 (05:10.0)  4.5% 
  • idegenszavak@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    3 个月前

    ncmpcpp -h media-pc

    Ncmpcpp is short for NCurses Music Player Client (Plus Plus). Its ui is top notch, its name is super memorable.

  • splendoruranium@infosec.pub
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    3 个月前

    What kind of mad person shuffles their whole collection? Do you preemptively purge all albums/artists of the songs you don’t like before adding them to your collection? 😮

    • Iced Raktajino@startrek.websiteOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      28 天前

      Dunno how I missed this, but I referenced this post as a reply to another and am just now seeing it.

      The box I ssh into is headless, and AFAIK, use of /media/{user}/{mountpoint} is just a desktop environment convention. When I plug in any kind of removable media to this box, I manually mount it under /mnt. I mount my NAS’s media share to /media mostly for convenience since that’s the main purpose of this box in my workshop.