PDA

View Full Version : Alien BBC/OS X/Current state of things



Michael Tarr
2004-12-08, 16:04
Wow!

I had gotten AlienBBC working wonderfully, when my 1-year old awoke. So
I couldn't get to the net to let all know. By now others have also
gotten it to work.

Soooo...To reprise where we are at, and what see is not working...

1. The trick to a decent mplayer is ffmpegX, upon initial startup, it
requests you download various binaries, including mplayer. I put all
binaries in /usr/local/bin NOTE: fink install of mplayer is bad.... We
really need a decent install of mplayer for OSX - MplayerOSX is a nice
package, but it needs to function via the command line (which it
currently does not).

2. It also asks you to download some RA codecs. I just put the folder
in /Applications and then I installed ffmpegX which seems to move
needed codecs into /Library/Application Support/ffmpegX/reallib The
particular compile of mplayer looks there, so you need to either create
this folder nesting and copy things or install ffmpegX (which is a nice
program we have used in the lab). It also copies binaries to
/Library/Application Support/ffmpegX

3. NOW, AlienBBC works. Sort of. Yes it plays all streams (and mplayer
will play my .asx playlists) BUT, I only get AlienBBC correctly
installed and running if I start things from the command line with
"./slimserver.pl --d_plugins", if on the other hand I start the server
via the preferencepane (mac users will know what this means), I don't
get ANY AlienBBC options, but I do get a plugin checked on the plugins
page of the server called "Alien" - this is probably a question for the
SlimServer people - that is, why does SlimServer behave different upon
command line startup and prefpane startup???

4. Finally, Jules - thanks for sending the info on how to add to the
playlists. But where do I put said file???

5. As a final note, would be nice if there was some mplayer integration
into Slimserver, so that if you install mplayer and associated codecs,
there is a way in SlimServer playlists to specify using mplayer to play
the stream...

I think we are almost there.

-m

PS BBC feed is awesome...

Daniel Cohen
2004-12-08, 16:33
On 8/12/04 at 6:04 pm -0500, Michael Tarr wrote
>3. NOW, AlienBBC works. Sort of. Yes it plays all streams (and
>mplayer will play my .asx playlists) BUT, I only get AlienBBC
>correctly installed and running if I start things from the command
>line with "./slimserver.pl --d_plugins", if on the other hand I
>start the server via the preferencepane (mac users will know what
>this means), I don't get ANY AlienBBC options, but I do get a plugin
>checked on the plugins page of the server called "Alien" - this is
>probably a question for the SlimServer people - that is, why does
>SlimServer behave different upon command line startup and prefpane
>startup???

As you'll note, I have this problem, but I think Adrian does not.

I get a menu item with no text if I put AlienBBC at the top level of
Squeezeboc menus. I forget (and it's too late for me to try) what
happens if I just leave it in place, I rather think that it does not
appear at all (either in Plugins or Internet Radio).

My preference pane was installed for one user only, his for all users.

Various discussions with Kevin and Jules have come up with
suggestions, but nothing that works.

The problem is plainly with the AlienBBC plugin itself, so if anyone
wants to try debugging it could be done without doing the full
installation of the files needed to play music.
--
Daniel Cohen

Adrian Merwood
2004-12-08, 22:33
Daniel Cohen wrote:

> On 8/12/04 at 6:04 pm -0500, Michael Tarr wrote
>
>> 3. NOW, AlienBBC works. Sort of. Yes it plays all streams (and
>> mplayer will play my .asx playlists) BUT, I only get AlienBBC
>> correctly installed and running if I start things from the command
>> line with "./slimserver.pl --d_plugins", if on the other hand I start
>> the server via the preferencepane (mac users will know what this
>> means), I don't get ANY AlienBBC options, but I do get a plugin
>> checked on the plugins page of the server called "Alien" - this is
>> probably a question for the SlimServer people - that is, why does
>> SlimServer behave different upon command line startup and prefpane
>> startup???
>
>
> As you'll note, I have this problem, but I think Adrian does not.
>
> I get a menu item with no text if I put AlienBBC at the top level of
> Squeezeboc menus. I forget (and it's too late for me to try) what
> happens if I just leave it in place, I rather think that it does not
> appear at all (either in Plugins or Internet Radio).
>
> My preference pane was installed for one user only, his for all users.
>
> Various discussions with Kevin and Jules have come up with
> suggestions, but nothing that works.
>
> The problem is plainly with the AlienBBC plugin itself, so if anyone
> wants to try debugging it could be done without doing the full
> installation of the files needed to play music.

Daniel,

Mine starts from the PreferencePane startup without any problem.

One slight addendum to your install instructions:

n. Edit transcoder_proxy.pl "my mplayer=" and add the full path to
mplayer - without this I could only run trancoder_proxy.pl from the
command line (some kind of pathing problem??)

Adrian

Daniel Cohen
2004-12-09, 00:12
On 9/12/04 at 5:33 am +0000, Adrian Merwood wrote
>One slight addendum to your install instructions:
>
>n. Edit transcoder_proxy.pl "my mplayer=" and add the full path to
>mplayer - without this I could only run trancoder_proxy.pl from the
>command line (some kind of pathing problem??)

Hadn't I put that in? I thought I had.

Yes, I had, but was sloppy (too late at night). I said

In the Config block of transcoder_proxy.pl, in the line beginning my
@encoder_search_paths add the location of lame and of mplayer.

As you say, it is the "my mplayer =" line where the path to mplayer
is needed, not the my @encoder_search_paths line.

Interesting that you got something useful when transcoder_proxy was
run from the command line but not otherwise.

I had wondered if the problem with AlienBBC not being recognised when
SlimServer is run from the preference pane was a paths issue, but I'm
not knowledgeable enough with Unix and perl to be sure.

For instance, what precisely does package Plugins::Alien::Plugin;
mean? Yes, I realise it refers to Plugin.pm inside a folder Alien
which is in turn inside a folder Plugins, but this isn't the full
path. Why is this getting the correct folder among several that may
be named Plugins? Could this be the thing that is going wrong when
SlimServer is run from the preference pane? I can't really see why
this should be different from other plugins, though, such as DateTime
(the only other one which is itself inside a folder).
--
Daniel Cohen

Adrian Merwood
2004-12-09, 04:30
Daniel Cohen wrote:

> I had wondered if the problem with AlienBBC not being recognised when
> SlimServer is run from the preference pane was a paths issue, but I'm
> not knowledgeable enough with Unix and perl to be sure.
>
> For instance, what precisely does package Plugins::Alien::Plugin;
> mean? Yes, I realise it refers to Plugin.pm inside a folder Alien
> which is in turn inside a folder Plugins, but this isn't the full
> path. Why is this getting the correct folder among several that may be
> named Plugins? Could this be the thing that is going wrong when
> SlimServer is run from the preference pane? I can't really see why
> this should be different from other plugins, though, such as DateTime
> (the only other one which is itself inside a folder).

Daniel,

The package naming a::b::c is a Perl convention - I used to use perl
extensively but have not done so for a while so I am pretty rusty.

Have you gone to the debugging page in slimserver and turned on some
additional logging? You may get some additional information about what
is going on with the startup of AlienBBC on your machine.

I guess my problem was that SlimServer is using a different environment
to the shell where I was running transcoder_proxy.

I am interested to find out what other streams mplayer is capable of
playing. I went ahead and installed all of ffgmpegX (??) along with all
the Helix codecs. Maybe AlienBBC could become a generic streaming
solution fro web portals.

Adrian

Daniel Cohen
2004-12-09, 05:36
On 9/12/04 at 11:30 am +0000, Adrian Merwood wrote
>Daniel Cohen wrote:
>
>>I had wondered if the problem with AlienBBC not being recognised
>>when SlimServer is run from the preference pane was a paths issue,
>>but I'm not knowledgeable enough with Unix and perl to be sure.
>>
>>For instance, what precisely does package Plugins::Alien::Plugin;
>>mean? Yes, I realise it refers to Plugin.pm inside a folder Alien
>>which is in turn inside a folder Plugins, but this isn't the full
>>path. Why is this getting the correct folder among several that may
>>be named Plugins? Could this be the thing that is going wrong when
>>SlimServer is run from the preference pane? I can't really see why
>>this should be different from other plugins, though, such as
>>DateTime (the only other one which is itself inside a folder).
>
>Daniel,
>
>The package naming a::b::c is a Perl convention - I used to use perl
>extensively but have not done so for a while so I am pretty rusty.


yes, I do understand that part of the convention. What I don't
understand is what it is relative to. Probably the 'a' folder is
assumed to be at the same level as the perl program that is running
(with some separate stuff in the program to ensure that there is a
second acceptable folder for slimserver to look for plugins).

>
>Have you gone to the debugging page in slimserver and turned on some
>additional logging? You may get some additional information about
>what is going on with the startup of AlienBBC on your machine.


Any thoughts on what to try? Using the 'plugins' debug on the Web
page simply claims that the plugin is undefined, no further
information, and of course the plugins debug on the command line just
reveals the plugin loading ok.

--
Daniel Cohen

Jules Taplin
2004-12-10, 02:06
Erm. In answer to question 4 of your list here - you put the playlists
wherever you've configured slimserver to look for playlists (in my case,
it's /mp3/playlists, but that's unlikely to be the same for you *grin*).

The option to set it is the 3rd item down in the main 'Server Settings'
page of the web server ('Playlists Folder')


-- Jules

Michael Tarr wrote:

> Wow!
>
> I had gotten AlienBBC working wonderfully, when my 1-year old awoke.
> So I couldn't get to the net to let all know. By now others have also
> gotten it to work.
>
> Soooo...To reprise where we are at, and what see is not working...
>
> 1. The trick to a decent mplayer is ffmpegX, upon initial startup, it
> requests you download various binaries, including mplayer. I put all
> binaries in /usr/local/bin NOTE: fink install of mplayer is bad.... We
> really need a decent install of mplayer for OSX - MplayerOSX is a nice
> package, but it needs to function via the command line (which it
> currently does not).
>
> 2. It also asks you to download some RA codecs. I just put the folder
> in /Applications and then I installed ffmpegX which seems to move
> needed codecs into /Library/Application Support/ffmpegX/reallib The
> particular compile of mplayer looks there, so you need to either
> create this folder nesting and copy things or install ffmpegX (which
> is a nice program we have used in the lab). It also copies binaries to
> /Library/Application Support/ffmpegX
>
> 3. NOW, AlienBBC works. Sort of. Yes it plays all streams (and mplayer
> will play my .asx playlists) BUT, I only get AlienBBC correctly
> installed and running if I start things from the command line with
> "./slimserver.pl --d_plugins", if on the other hand I start the server
> via the preferencepane (mac users will know what this means), I don't
> get ANY AlienBBC options, but I do get a plugin checked on the plugins
> page of the server called "Alien" - this is probably a question for
> the SlimServer people - that is, why does SlimServer behave different
> upon command line startup and prefpane startup???
>
> 4. Finally, Jules - thanks for sending the info on how to add to the
> playlists. But where do I put said file???
>
> 5. As a final note, would be nice if there was some mplayer
> integration into Slimserver, so that if you install mplayer and
> associated codecs, there is a way in SlimServer playlists to specify
> using mplayer to play the stream...
>
> I think we are almost there.
>
> -m
>
> PS BBC feed is awesome...
>
>
>
>