Alien BBC on Mac OS X instructions(Longish)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Joe Hickey

    Alien BBC on Mac OS X instructions(Longish)

    Jason,
    Here are some instructions that Jules (the AlienBBC guy) sent me,
    they're quite involved...
    I was going to give them a try this weekend, I think it could be a good
    couple of hours to get it going.

    Good luck,
    Joe

    AlienBBC Plugin
    ========================

    You will need to do the following.

    + Extract the contents of the AlienBBC.tar
    + Install the plugin
    + delete the linux alienstream binary
    + Install the HTML::Parser module (HTML:Tagset will be installed as
    well)
    cd /Library/PreferencePanes/SlimServer.prefPane/Contents/server
    perl -MCPAN -e shell (First time this runs you will need to configure,
    choose the
    defaults and select a mirror server close to you.)

    Once in the perl shell, run the following.
    install HTML::Parser


    + Install the 1.5 XCode Apple Developer Tools
    (http://developer.apple.com/)

    + Install the X11 Dev package (I think this is required)
    (http://www.apple.com/macosx/features/x11/download/)

    + Install RealPlayer10, the free one works fine! (codec donnor)
    (http://www.real.com/player/?src=realplayer)

    + Install the Fink package manager (http://fink.sourceforge.net/)

    + Compile and install madplay (Diagnostics)
    run fink install madplay

    + Compile and install lame
    run fink install lame

    + Compile and install mplayer (Diagnostics)
    run fink install mplayer

    + Download the xine package xine 1-rc5 (http://xinehq.de/)

    + Compile xine and alienstream as per the "More complex instructions"
    for OS X on the alienstream web site.
    (http://www.dur.ac.uk/p.j.heslin/amus...ream/version3/
    alienstream_os_x.html)

    Copy the resulting binary file to the SlimServer directory.
    cp alienstream
    /Library/PreferencePanes/SlimServer.prefPane/Contents/server/
    cd /Library/PreferencePanes/SlimServer.prefPane/Contents/server
    mkdir unknown
    cd unknown
    Copy and rename the cook codec from the RealPlayer app to the unknown
    directory.
    cp
    /Applications/RealPlayer.app/Contents/Frameworks/HXClientKit.framework/
    HelixPlugins/Codecs/cook.bundle/Contents/MacOS/cook cook.so.6.0

    + You should now have the following binaries installed in the /sw/bin
    directory.
    lame
    madplay
    mplayer

    and in the
    /Library/PreferencePanes/SlimServer.prefPane/Contents/server/
    directory.

    alienstream


    + Edit transcoder_proxy with a text editor
    Change the first line to read
    #!/usr/bin/perl -w
    -I/Library/PreferencePanes/SlimServer.prefPane/Contents/server/CPAN
    In the config block set the locations of alienstream and lame.

    + Edit Plugins/Alien/Plugin.pm
    Change the value of $proxy_path to the fully qualified path of
    transcoder_proxy.pl

    + Restart slimserver


    + Test that alienstream is working correctly

    cd /Library/PreferencePanes/SlimServer.prefPane/Contents/server
    mkfifo tmp.wav
    export XINE_WAVE_OUTPUT=tmp.wav
    ./alienstream
    rtsp://rmlivev8.bbc.net.uk/farm/*/ev7/live24/radio1/live/r1_dsat_g2.ra

    In another console

    /sw/bin/mplayer tmp.wav

    or

    /sw/bin/lame -q 9 -cbr -b 320 --resample 44100 -S tmp.wav - |
    /sw/bin/madplay -

    If you hear BBC Radio One you've done the hard part.

    + Test that the transcoder_proxy is functioning

    In a console start the trancoder_proxy

    ./transcoder_proxy

    Start iTunes and connect to the following stream.

    live24/radio1/live/r1_dsat_g2.ra

    If iTunes is playing radio one then all is well.

    Kill the transcoder_proxy ctrl-c


    + restart slimserver


    On 24 Sep 2004, at 19:44, discuss-request (AT) lists (DOT) slimdevices.com wrote:

    > From: Jason Snell <jsnell (AT) macworld (DOT) com>
    > Date: 24 September 2004 02:14:20 BST
    > To: Slim Devices Discussion <discuss (AT) lists (DOT) slimdevices.com>
    > Subject: [slim] AlienBBC on OS X
    > Reply-To: Slim Devices Discussion <discuss (AT) lists (DOT) slimdevices.com>
    >
    >
    > So it seems from my scouring of the list archives that the
    > award-winning AlienBBC plug-in will work on Mac OS X, but only with a
    > lot of effort and compilation.
    >
    > Has anyone put together any sort of step-by-step guide to doing
    > AlienBBC on OS X?
    >
    > And if not, could someone? If it truly works on OS X it would be fun
    > to use, but I haven't the faintest idea how to begin.
    > --
    > Jason Snell / Editor in Chief, Macworld / jsnell (AT) macworld (DOT) com
    > 415-243-3565 / AIM-iChat: MW jsnell
  • Dave Scott

    #2
    Alien BBC on Mac OS X instructions - first attempt

    Ok

    Followed the instructions below with a few "differing steps"

    1.Fink installed libxine (xine-lib-1-rc5)
    2. Complied alienstream as per:

    > alienstream as per the "More complex instructions" for OS X on the
    > alienstream web site.
    > (http://www.dur.ac.uk/p.j.heslin/amus...ream/version3/
    > alienstream_os_x.html)


    using 'Fink'

    edited transcoder_proxy.pl & alienstream

    had to change by shell to 'bash' - using tsch :-)
    mkfifo m tmp.wav
    export XINE_WAVE_OUTPUT=tmp.wav

    if I didn't use mkfifo m i end up with a xine-output.wav file

    ran the alienstream command

    ran mplayer - but using cli had to specify location of tmp.wav (note
    from X11 xterm)

    works using mplayer.

    1. Cannot run "transcoder_proxy" command - command not found ???/ even
    when in directory where transcoder_proxy.pl is
    2 Soft squeeze works with all the menu options / shows connecting but
    doesn't actually connect ..
    3.tmp.wav grows very fast

    overall progress, before using alien stream couldn't get any sound ...

    still - have to start alien stream manually - not working through
    softsqueeze / or itunes
    if stop slimserver - stops mplayer - so guess that part is working ..

    cheers

    dave scott
    > Jason,
    > Here are some instructions that Jules (the AlienBBC guy) sent me,
    > they're quite involved...
    > I was going to give them a try this weekend, I think it could be a
    > good couple of hours to get it going.
    >
    > Good luck,
    > Joe
    >
    > AlienBBC Plugin
    > ========================
    >
    > You will need to do the following.
    >
    > + Extract the contents of the AlienBBC.tar
    > + Install the plugin
    > + delete the linux alienstream binary
    > + Install the HTML::Parser module (HTML:Tagset will be installed as
    > well)
    > cd /Library/PreferencePanes/SlimServer.prefPane/Contents/server
    > perl -MCPAN -e shell (First time this runs you will need to
    > configure, choose the
    > defaults and select a mirror server close to you.)
    >
    > Once in the perl shell, run the following.
    > install HTML::Parser
    >
    >
    > + Install the 1.5 XCode Apple Developer Tools
    > (http://developer.apple.com/)
    >
    > + Install the X11 Dev package (I think this is required)
    > (http://www.apple.com/macosx/features/x11/download/)
    >
    > + Install RealPlayer10, the free one works fine! (codec donnor)
    > (http://www.real.com/player/?src=realplayer)
    >
    > + Install the Fink package manager (http://fink.sourceforge.net/)
    >
    > + Compile and install madplay (Diagnostics)
    > run fink install madplay
    >
    > + Compile and install lame
    > run fink install lame
    >
    > + Compile and install mplayer (Diagnostics)
    > run fink install mplayer
    >
    > + Download the xine package xine 1-rc5 (http://xinehq.de/)
    >
    > + Compile xine and alienstream as per the "More complex instructions"
    > for OS X on the alienstream web site.
    > (http://www.dur.ac.uk/p.j.heslin/amus...ream/version3/
    > alienstream_os_x.html)
    >
    > Copy the resulting binary file to the SlimServer directory.
    > cp alienstream
    > /Library/PreferencePanes/SlimServer.prefPane/Contents/server/
    > cd /Library/PreferencePanes/SlimServer.prefPane/Contents/server
    > mkdir unknown
    > cd unknown
    > Copy and rename the cook codec from the RealPlayer app to the unknown
    > directory.
    > cp
    > /Applications/RealPlayer.app/Contents/Frameworks/
    > HXClientKit.framework/HelixPlugins/Codecs/cook.bundle/Contents/MacOS/
    > cook cook.so.6.0
    >
    > + You should now have the following binaries installed in the /sw/bin
    > directory.
    > lame
    > madplay
    > mplayer
    >
    > and in the
    > /Library/PreferencePanes/SlimServer.prefPane/Contents/server/
    > directory.
    >
    > alienstream
    >
    >
    > + Edit transcoder_proxy with a text editor
    > Change the first line to read
    > #!/usr/bin/perl -w
    > -I/Library/PreferencePanes/SlimServer.prefPane/Contents/server/CPAN
    > In the config block set the locations of alienstream and lame.
    >
    > + Edit Plugins/Alien/Plugin.pm
    > Change the value of $proxy_path to the fully qualified path of
    > transcoder_proxy.pl
    >
    > + Restart slimserver
    >
    >
    > + Test that alienstream is working correctly
    >
    > cd /Library/PreferencePanes/SlimServer.prefPane/Contents/server
    > mkfifo tmp.wav
    > export XINE_WAVE_OUTPUT=tmp.wav
    > ./alienstream
    > rtsp://rmlivev8.bbc.net.uk/farm/*/ev7/live24/radio1/live/r1_dsat_g2.ra
    >
    > In another console
    >
    > /sw/bin/mplayer tmp.wav
    >
    > or
    >
    > /sw/bin/lame -q 9 -cbr -b 320 --resample 44100 -S tmp.wav - |
    > /sw/bin/madplay -
    >
    > If you hear BBC Radio One you've done the hard part.
    >
    > + Test that the transcoder_proxy is functioning
    >
    > In a console start the trancoder_proxy
    >
    > ./transcoder_proxy
    >
    > Start iTunes and connect to the following stream.
    > http://10.0.0.10:5123/RealAudio/rtsp...net.uk/farm/*/
    > ev7/live24/radio1/live/r1_dsat_g2.ra
    >
    > If iTunes is playing radio one then all is well.
    >
    > Kill the transcoder_proxy ctrl-c
    >
    >
    > + restart slimserver
    >
    >
    > http://lists.slimdevices.com/lists/listinfo/discuss

    Comment

    • Dave Scott

      #3
      Alien BBC on Mac OS X instructions - first attempt

      Ok - part 2

      tried this:

      [sgw2dscottmac:Contents/server/plugins] dscott% ./transcoder_proxy.pl

      got this:

      Unrecognized switch:
      -/library/preferencepanes/slimserver.prefpane/contents/server/CPAN (-h
      will show valid options).

      missing & -l ? maybe

      re-edited it

      & got back permission denied again ..

      query:

      owner is dscott group unknown -- do I need to change this ...

      so close but yet so far


      On 3 Oct 2004, at 13:56, Dave Scott wrote:

      > Ok
      >
      > Followed the instructions below with a few "differing steps"
      >
      > 1.Fink installed libxine (xine-lib-1-rc5)
      > 2. Complied alienstream as per:
      >
      >> alienstream as per the "More complex instructions" for OS X on the
      >> alienstream web site.
      >> (http://www.dur.ac.uk/p.j.heslin/amus...ream/version3/
      >> alienstream_os_x.html)

      >
      > using 'Fink'
      >
      > edited transcoder_proxy.pl & alienstream
      >
      > had to change by shell to 'bash' - using tsch :-)
      > mkfifo m tmp.wav
      > export XINE_WAVE_OUTPUT=tmp.wav
      >
      > if I didn't use mkfifo m i end up with a xine-output.wav file
      >
      > ran the alienstream command
      >
      > ran mplayer - but using cli had to specify location of tmp.wav (note
      > from X11 xterm)
      >
      > works using mplayer.
      >
      > 1. Cannot run "transcoder_proxy" command - command not found ???/ even
      > when in directory where transcoder_proxy.pl is
      > 2 Soft squeeze works with all the menu options / shows connecting but
      > doesn't actually connect ..
      > 3.tmp.wav grows very fast
      >
      > overall progress, before using alien stream couldn't get any sound ...
      >
      > still - have to start alien stream manually - not working through
      > softsqueeze / or itunes
      > if stop slimserver - stops mplayer - so guess that part is working ..
      >
      > cheers
      >
      > dave scott

      Comment

      • Jules Taplin

        #4
        Alien BBC on Mac OS X instructions - first attempt

        Hi Dave.

        Permission denied is probably because the execute bit is not set on the file
        in question.

        If it doesn't run after you've edited the file, it's probably becuse your
        editor reset the execute bit. That's pretty tedious.

        Try the following:

        From the relevant directory,

        chmod a+rx transcoder_proxy.pl


        -- Jules

        ----- Original Message -----
        From: "Dave Scott" <kiwidave (AT) starhub (DOT) net.sg>
        To: "Slim Devices Discussion" <discuss (AT) lists (DOT) slimdevices.com>
        Sent: Sunday, October 03, 2004 7:08 AM
        Subject: [slim] Alien BBC on Mac OS X instructions - first attempt


        >
        > Ok - part 2
        >
        > tried this:
        >
        > [sgw2dscottmac:Contents/server/plugins] dscott% ./transcoder_proxy.pl
        >
        > got this:
        >
        > Unrecognized
        > witch: -/library/preferencepanes/slimserver.prefpane/contents/server/CPAN
        > (-h will show valid options).
        >
        > missing & -l ? maybe
        >
        > re-edited it
        >
        > & got back permission denied again ..
        >
        > query:
        >
        > owner is dscott group unknown -- do I need to change this ...
        >
        > so close but yet so far
        >
        >
        > On 3 Oct 2004, at 13:56, Dave Scott wrote:
        >
        >> Ok
        >>
        >> Followed the instructions below with a few "differing steps"
        >>
        >> 1.Fink installed libxine (xine-lib-1-rc5)
        >> 2. Complied alienstream as per:
        >>
        >>> alienstream as per the "More complex instructions" for OS X on the
        >>> alienstream web site.
        >>> (http://www.dur.ac.uk/p.j.heslin/amus...ream/version3/
        >>> alienstream_os_x.html)

        >>
        >> using 'Fink'
        >>
        >> edited transcoder_proxy.pl & alienstream
        >>
        >> had to change by shell to 'bash' - using tsch :-)
        >> mkfifo m tmp.wav
        >> export XINE_WAVE_OUTPUT=tmp.wav
        >>
        >> if I didn't use mkfifo m i end up with a xine-output.wav file
        >>
        >> ran the alienstream command
        >>
        >> ran mplayer - but using cli had to specify location of tmp.wav (note
        >> from X11 xterm)
        >>
        >> works using mplayer.
        >>
        >> 1. Cannot run "transcoder_proxy" command - command not found ???/ even
        >> when in directory where transcoder_proxy.pl is
        >> 2 Soft squeeze works with all the menu options / shows connecting but
        >> doesn't actually connect ..
        >> 3.tmp.wav grows very fast
        >>
        >> overall progress, before using alien stream couldn't get any sound ...
        >>
        >> still - have to start alien stream manually - not working through
        >> softsqueeze / or itunes
        >> if stop slimserver - stops mplayer - so guess that part is working ..
        >>
        >> cheers
        >>
        >> dave scott

        >
        >

        Comment

        Working...