PDA

View Full Version : command-line equivalent for softsqueeze?



David Feldman
2005-02-19, 10:15
I'm trying to configure an old laptop using softsqueeze and lirc so I
can connect it to my home stereo and control it with a universal
remote. I've got it mostly working, but it's sort of a pain to have to
boot it into X and start up softsqueeze. Is there a command-line
equivalent for softsqueeze that I can control with various hotkeys from
an xterm or telnet session?

--Dave

Aaron Zinck
2005-02-19, 10:33
Slimserver allows the control of any player through the command line. Check
out the "technical information" section of slimserver for the documentation
of how to do this.

David Feldman
2005-02-19, 10:59
> Slimserver allows the control of any player through the command line.
> Check
> out the "technical information" section of slimserver for the
> documentation
> of how to do this.

Cool, thanks. A follow-up question:

Since I won't actually be looking at the screen and can control the
player from the command line, it makes sense to forget the softsqueeze
and use something that doesn't require X. (Then I can eliminate X from
the SUSE install altogether, not boot into it, or, I suppose, install a
stripped-down Linux like Gentoo.) Is there a simple player with either
no UI or a command-line UI that will still support playing of AAC files
from a Linux-installed slimserver?

Something that actually has its own command-line UI seems like it might
make the most sense, since then I won't need to make a second
connection out to the server to control it. But obviously that's not
essential.

Thanks again,
--Dave

John Gorst
2005-02-19, 11:20
David Feldman wrote:
>> Slimserver allows the control of any player through the command line.
>> Check
>> out the "technical information" section of slimserver for the
>> documentation
>> of how to do this.
>
>
> Cool, thanks. A follow-up question:
>
> Since I won't actually be looking at the screen and can control the
> player from the command line, it makes sense to forget the softsqueeze
> and use something that doesn't require X. (Then I can eliminate X from
> the SUSE install altogether, not boot into it, or, I suppose, install a
> stripped-down Linux like Gentoo.) Is there a simple player with either
> no UI or a command-line UI that will still support playing of AAC files
> from a Linux-installed slimserver?
>
> Something that actually has its own command-line UI seems like it might
> make the most sense, since then I won't need to make a second connection
> out to the server to control it. But obviously that's not essential.

Not sure if you realise, but softsqueeze can be made to run in
'headless' mode - but I am not sure if it can be controlled in this mode.

The other option is slimp3 which is completely command line but only
plays mp3 (or all the other formats transcoded into mp3).

Ian Payton
2005-02-19, 12:24
John Gorst wrote:
> Not sure if you realise, but softsqueeze can be made to run in
> 'headless' mode - but I am not sure if it can be controlled in this mode.

I had difficulty doing this on a Linux box (Mandrake 10.1) without X
installed. I seem to remember Java had some trouble initialising Swing
(even though I was running in headless mode).

> The other option is slimp3 which is completely command line but only
> plays mp3 (or all the other formats transcoded into mp3).

Did you mean "slimp3slave" here? All I wanted to do in my set-up was
have a headless slave player, and in the end I used a combination of
slimp3slave and madplay, which worked very well (even got it to start up
as a service when I booted the machine).

slimp3slave will take keyboard input for a variety of simple commands,
so maybe it could be used for what the OP wanted?

Ian

Aaron Zinck
2005-02-19, 12:32
"David Feldman" wrote
> > Slimserver allows the control of any player through the command line.
> > Check
> > out the "technical information" section of slimserver for the
> > documentation
> > of how to do this.
>
> Cool, thanks. A follow-up question:
>
> Since I won't actually be looking at the screen and can control the
> player from the command line, it makes sense to forget the softsqueeze
> and use something that doesn't require X. (Then I can eliminate X from
> the SUSE install altogether, not boot into it, or, I suppose, install a
> stripped-down Linux like Gentoo.) Is there a simple player with either
> no UI or a command-line UI that will still support playing of AAC files
> from a Linux-installed slimserver?
>
> Something that actually has its own command-line UI seems like it might
> make the most sense, since then I won't need to make a second
> connection out to the server to control it. But obviously that's not
> essential.
>
> Thanks again,
> --Dave

I'm not familiar with all the available linux apps out there, but anything
that is capable of playing an mp3 stream should work. Just point it at
http://slimserverhostcomputer:9000/stream.mp3

rtitmuss
2005-02-19, 13:39
David Feldman wrote:

>> Slimserver allows the control of any player through the command
>> line. Check
>> out the "technical information" section of slimserver for the
>> documentation
>> of how to do this.
>
>
> Cool, thanks. A follow-up question:
>
> Since I won't actually be looking at the screen and can control the
> player from the command line, it makes sense to forget the softsqueeze
> and use something that doesn't require X. (Then I can eliminate X from
> the SUSE install altogether, not boot into it, or, I suppose, install
> a stripped-down Linux like Gentoo.) Is there a simple player with
> either no UI or a command-line UI that will still support playing of
> AAC files from a Linux-installed slimserver?

To play AAC files you really need to use Softsqueeze, otherwise your
files will be transcoded to mp3. To start Softsqueeze in headless mode
use: java -Dskins=headless -jar SoftSqueeze.jar

I know that some recent versions are broken and won't work headlessly,
but you should be alright with version 1.16.

> Something that actually has its own command-line UI seems like it
> might make the most sense, since then I won't need to make a second
> connection out to the server to control it. But obviously that's not
> essential.

It should be pretty easy to add in some simple commands to the
Softsqueeze command line (e.g. Play, Pause, Rew, Fwd, etc.) but not so
easy to add a command-line display. Let me know if adding the commands
would be useful, I might have some time tomorrow to squeeze it in ;).

Regards,
Richard

David Feldman
2005-02-20, 12:31
> It should be pretty easy to add in some simple commands to the
> Softsqueeze command line (e.g. Play, Pause, Rew, Fwd, etc.) but not so
> easy to add a command-line display. Let me know if adding the commands
> would be useful, I might have some time tomorrow to squeeze it in ;).

That does sound handy, but I wonder if it's overkill. Would there be an
advantage efficiency-wise over controlling the player via the
slimserver command-line interface?

Related question: How do I use the slimserver command-line interface in
non-interactive mode? Is there any disadvantage to doing it that way as
opposed to opening an interactive connection? (In the non-interactive
case it's easier to script, create hotkeys, etc.)

--Dave