This is the second version with added directory support and the duration of the current track is displayed.
It may be a little heavy on resources with an older machine but the tradeoff is the number of formats it supports, it supports whatever your version of ffmpeg supports. Ffmpeg has been in all mainstream puppies for a long time. It may not be in heavily cut down puplets.
It uses the Pmusic engine by transcoding the file to .au format and piping to aplay. It works equally as well outside of X.. if anyone actually does that anymore! Should also run on any *nix.
You can create custom playlists and also a directory once played is stored as a playlist.
It handles spaces in filenames as long as you wrap the path in quotes, single or double.
Code: Select all
# ashmusic
ashmusic-0.2 GPL3
Usage:
example: ashmusic "/path/to/music file can have spaces.mp3"
Options:
-h [display this help]
-a <track> [add to playlist -track plays]
-b <track> [add to playlist -track doesn't play]
-d <directory> [add a whole directory as playlist]
-l <name>(optional) [load playlist <name>]
You can use "ctrl - c" to quit at any time.
<-- Supports whatever audio format your ffmpeg supports
Code: Select all
# ashmusic -l
angels
Judas_Priest
MCR
Sad_Wings_of_Destiny
The_Black_Parade
Type the name of a playlist to load from the above list
The_Black_Parade
Tracklist:
01 The End..mp3
02 Dead!.mp3
03 This Is How I Disappear.mp3
04 The Sharpest Lives.mp3
05 Welcome to the Black Parade.mp3
06 I Don't Love You.mp3
07 House of Wolves.mp3
08 Cancer.mp3
09 Mama.mp3
10 Sleep.mp3
11 Teenagers.mp3
12 Disenchanted.mp3
Now playing: 01 The End..mp3
Press "q" to skip
Duration:00:01:53
finished!
Now playing: 02 Dead!.mp3
Press "q" to skip
Duration:00:03:15