Conversation
Notices
-
is there a simple (Linux) music player that accepts 1+ file names on the command line and just plays them w/ minimal UI?
-
'mplayer', vlc with CLI interface or 'ffplay' :)
-
There are many. I've had success with mpg123. I think moc can do this too.
-
@gomerx @mmn thanks! I do not see mpg but I do see moc; did not know VLC had a CLI, thought mplayer was video...
-
@gomerx @mmn clearly I'm out of my depth here :) I'll try some of these!
-
You can also do something like 'ls *.mp3 >playlist.m3u' to build a playlist file for most media players.
-
you can easily use something like: vlc --qt-minimal-view <files>, CLI params at http://j.mp/SdUYfa
-
@gomerx no I don't want a playlist, just something simple I can configure as action in another program for the 'play' action
-
@marjoleink I rather like MPD for that purpose, though I think the file names need to be in its library.
-
@gomerx I tried moc (actually mocp to start) and it's nice but I do not see how to feed it an parameter (tried %F)
-
@bijan OK, I'll try that!
-
@jfm what I'm looking for is to be able to just listen (even a bit), especially when it's not yet in any library
-
@marjoleink I use Mplayer for this. It will also handle stream URLs. Had a low-spec machine where Mplayer handled all audio&video playback.
-
mpg123 works pretty well, but I believe it only does mp3. I've used it in command-line only systems.
-
@marjoleink Do you have the 'play' command? Not sure which sound library it belongs to.
-
@mjjzf I'm looking at puddletag right now which has configurable player for a 'play' command. Use case: ...
-
@mjjzf ...hear sample before making effort to create/correct tags
-
@mmn Hmm 'cvlc %f' works - it plays the file - only I don't know how to stop it again (except kill it) :)
-
@marjoleink Right. Yes, that makes sense. I quite like Puddletag, actually.
-
Saving the started PID and killing it is a perfectly good way of stopping. Otherwise 'mplayer' has a slave mode: http:/…
-
You could also try out xmms2. It runs as a daemon in the background, and you control it using commands like 'xmms2 stop/play/toggle/add'.
-
Also, since xmms2 runs as a bg daemon, it isn't tied to your terminal. After starting up a set of songs, you're free to close the terminal.
-
@marjoleink OK, 'mplayer %f' works, too - but same problem: don't know how to stop it except by killing it
-
@camurp0 that sounds interesting, too. looks like I'm close but need to actually read some manuals ;)
-
@marjoleink What woyld you want to do with it? Pause with space, forward and backward with arrow keys.
-
@mjjzf I think play/stop/next/previous would be all I need. Puddletag has actions, I might be able to use those
-
@camurp0 this sounds like the best option so far - going to experiment with xmms2!
-
@marjoleink Not sure if Mplayer takes %F for several files
-
@mjjzf I'm not sure either, %f does work. Going to try xmms2 now, that seems a somewhat better fit (if it works :))
-
The slave mode would help you very much for that. Not sure what language you're using, but you can control an mplayer -…
-
@marjoleink Considered using one of the MPD front ends?
-