[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: randomplay: command-line shuffle music player

On Mon, 8 Sep 2003, Sven Luther wrote:
> On Mon, Sep 08, 2003 at 05:37:40AM +0200, Adam Borowski wrote:
> > On Sun, 7 Sep 2003, Adam Kessel wrote:
> > > I've written a fairly simple command-line shuffle music file player.
> > > Despite its simplicity, I find it quite handy, and I don't think there's
> > > any other package out there (in Debian or not) that does quite what it
> > > does. The main feature is that it keeps track of which files have been
> > > played across sessions; but it also has some nice ways to play your files
> > > quickly from the command line. It's definitely a "scratch an itch" type
> > > program.  
> > Been there... my version is -shuffle +recursion.
> There is quark also, which is a client/server design with both command
> line and gnome system tray (err notification area that is now, maybe it
> even works with any freedesktop notification areas) clients. It does
> random and loop playing, but nothing much more, and is maybe a bit
> feable/immature on handling playlists. Well, you can provide a simple
> textual playlist file, or hand append files, but that's it.
In other words, it's one of these bulky graphical things you click on and 
you can't do anything that it's author didn't think of...  however the 
ability to "hand append files" gives us at least some hope.

What I want, is something that can take a list of files and passes all 
"mp3"s to "mpg123", all "ogg"s to "ogg123", all "mid"s to "timidity" and 
all "wav"s to "play", ignoring the rest, all while preserving the order.

How do I produce the list, it's my business.  It usually comes from "find" 
or from the shell, like:
find|bogosort|xargs 123                  # shuffle
123 ~/mp3/Dimmu\ Borgir\For\ All\ Tid\*  # a LP in order
123 ~/mp3/some_single_file.mp3
My version defaults to `find` starting from the current directory when 
it's run without any arguments, but it would be equally good to make it so 
when a filename received is a directory as opposed to a regular file the 
script does a recursive search.

> It also doesn't die when you relaunch the X server, which is rather nice 
> when doing X driver work :)))
Why won't you use one of the real text consoles then?
You see, I don't use X unless I have to, but if you're already in X, it's 
faster to just use xmms and its playlist.  Your situation is so rare that 
you can do what I and other X-haters do and use a text-based program on 
another console.

/-----------------------\ Shh, be vewy, vewy quiet,
| kilobyte@mimuw.edu.pl | I'm hunting wuntime ewwows!
Segmentation fault (core dumped)

Reply to: