Announcement

Collapse
No announcement yet.

[slim] Re: Problem with AlienBBC

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • [slim] Re: Problem with AlienBBC

    In article <001b01c574e9$3d7d21e0$0100000a@Mesh>,
    Triode<triode1 (AT) btinternet (DOT) com> wrote:
    > Andy,
    >
    > Should probably take this to the 3rd part plugins list. However please
    > try the following - set volume = 0, and post on the 3rd party plugin list
    > what happens...
    >
    > rtsp wav * *
    > [mplayer] -really-quiet -vo null -cache 128 -af volume=0,resample=44100:0:1 -ao pcm:nowaveheader:file=#PIPE# $FILE$
    > rtsp mp3 * *
    > [mplayer] -really-quiet -vo null -cache 128 -af volume=0,resample=44100:0:1 -ao pcm:file=#PIPE# $FILE$ | [lame] --silent -q
    > $QUALITY$ -b $BITRATE$ - -
    > rtsp flc * *
    > [mplayer] -really-quiet -vo null -cache 128 -af volume=0,resample=44100:0:1 -ao pcm:file=#PIPE# $FILE$ |
    > [flac] -cs --totally-silent --compression-level-


    OK, I've done this, and get much the same results. I get a 'connecting'
    message for a while, and then nothing. I've tried the command line from the
    log file directly at the command line with mplayer, and I get the following:

    gently:~# mplayer -vo null -cache 128 -af resample=44100:0:1 -ao
    pcm:file=/tmp/audio.wav
    rtsp://rmlivev8.bbc.net.uk/farm/*/ev7/live24/radio1/live/r1_dsat_g2.ra
    MPlayer 1.0pre7-3.3.5 (C) 2000-2005 MPlayer Team
    CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
    Detected cache-line size is 64 bytes
    CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled with runtime CPU detection - WARNING - this is not optimal!
    To get best performance, recompile MPlayer with
    --disable-runtime-cpudetection.


    /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoBd.ttf doesn't look like
    a font description, ignoring.
    Cannot load font: /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoBd.ttf
    Failed to open /dev/rtc: No such file or directory (it should be readable by
    the user.)
    Playing
    rtsp://rmlivev8.bbc.net.uk/farm/*/ev7/live24/radio1/live/r1_dsat_g2.ra.
    Resolving rmlivev8.bbc.net.uk for AF_INET...
    Connecting to server rmlivev8.bbc.net.uk[212.58.224.161]:554 ...
    Cache size set to 128 KBytes
    Connected to server: rmlivev8.bbc.net.uk
    Cache fill: 18.75% (24576 bytes) REAL file format detected.
    Stream description: Audio Stream
    Stream mimetype: audio/x-pn-multirate-realaudio-live
    demux_real: invalid chunksize! (0)
    Clip info:
    name: BBC Radio 1
    author: BBC
    copyright: (C) British Broadcasting Corporation 2004
    ================================================== ========================
    Opening audio decoder: [realaud] RealAudio decoder
    opening shared obj '/usr/lib/codecs/cook.so'
    Audio codec: [23] 44 Kbps Stereo Music High Response - RealAudio
    Audio bitrate: 44.100 kbit/s (5513 bps)
    AUDIO: 44100 Hz, 2 ch, s16le, 44.1 kbit/3.13% (ratio: 5513->176400)
    Selected audio codec: [ra10cook] afm:realaud (RealPlayer 10 COOK audio)
    ================================================== ========================
    Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...


    MPlayer interrupted by signal 11 in module: af_preinit
    - MPlayer crashed by bad usage of CPU/FPU/RAM.
    Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
    disassembly. Details in
    DOCS/HTML/en/bugreports_what.html#bugreports_crash.
    - MPlayer crashed. This shouldn't happen.
    It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
    gcc version. If you think it's MPlayer's fault, please read
    DOCS/HTML/en/bugreports.html and follow the instructions there. We can't
    and
    won't help unless you provide this information when reporting a possible
    bug.

    Any ideas?

    Thanks

    Andy



  • #2
    Andy,

    For the command line test please include the volume statement in it as well "-af volume=0,resample=44100:0:1"

    For the server problem - could you post the output of --d_source --d_remotestream when you try to play something

    Comment


    • #3
      Ok, adding the volume on to the command line means that mplayer starts to play the stream. I've now added this to the convert.conf file.

      Attached is the log with the two debugging arguments specified:

      Andy

      Comment


      • #4
        Andy,

        Not sure "Assuming raw pcm input file" is right as the output from lame.

        Could you retry on a client which does not have bitrate limiting set? (so that lame is not called)

        Comment


        • #5
          Log attached. This was to my SB2 with no bit rate limiting

          Andy

          Comment


          • #6
            Can't see any obvious errors. Could you edit out the -really-quiet in the mplayer command and the --totally-slient in the flac command and try again?

            Comment


            • #7
              Ok, I think this is the relevant section. Any ideas?

              Thanks

              Andy

              Comment


              • #8
                This doesn't seem to show anything wrong - I suspect you may have edited out a but too much...

                I would also suggest installing the latest 6.0.x nightly as it suppresses some of the error messages when --d_source is enabled which will help debug this (hopefully)

                Comment


                • #9
                  Ok, the full log is available here (it's about 4M in size):



                  Andy
                  Last edited by adhawkins; 2005-06-22, 10:18.

                  Comment


                  • #10
                    Andy,

                    "[AO PCM] Failed to open /dev/fd/3 for writing!
                    Could not open/initialize audio device -> no sound."

                    This leads me to think your unix does not have /dev/fd/3 support on by default.

                    Some other users on the list have expienced this, I am not sure what the answer was though. Some suggested ensuring you are running bash [edit mplayer.sh to start #!/bin/bash, others was installing some additional package [linux distrib specific?]

                    A test of whether it is working is:
                    echo "hello" > temp.txt
                    cp temp.txt /dev/fd/3 3>&1 1>&2

                    Do you see "hello" on stdout?

                    Comment


                    • #11
                      Originally posted by Triode
                      A test of whether it is working is:
                      echo "hello" > temp.txt
                      cp temp.txt /dev/fd/3 3>&1 1>&2

                      Do you see "hello" on stdout?
                      Yes

                      Next?

                      Andy

                      Comment


                      • #12
                        Did you try changing the start of mplayer.sh to #!/bin/bash
                        I think someone claimed this helped this sort of problem.

                        Anyway if you get "[AO PCM] Failed to open /dev/fd/3 for writing!
                        Could not open/initialize audio device -> no sound." you have no hope of getting output, so you need to tinker until this goes away - unfortunately this appears to be system specific and I've not got any more suggestions....

                        Comment


                        • #13
                          Originally posted by Triode
                          Did you try changing the start of mplayer.sh to #!/bin/bash
                          I think someone claimed this helped this sort of problem.
                          By jove, I think that's worked!

                          Thanks all.

                          Andy

                          Comment


                          • #14
                            OK so that's the second recorded case of this.

                            To check what is going on - is /bin/sh a link to bash? If so there appears to be something in bash which switches off /dev/df/3 support when involved as sh...

                            Comment


                            • #15
                              [slim] Re: Problem with AlienBBC

                              Hi,

                              In article <Triode.1r3azz (AT) no-mx (DOT) forums.slimdevices.com>,
                              Triode<Triode.1r3azz (AT) no-mx (DOT) forums.slimdevices.com> wrote:
                              > To check what is going on - is /bin/sh a link to bash?


                              Yes.

                              > If so there appears to be something in bash which switches off /dev/df/3
                              > support when involved as sh...


                              Doesn't appear so. Just created a file called 'testing' containing:

                              echo "hello" > temp.txt
                              cp temp.txt /dev/fd/3 3>&1 1>&2

                              And done the following:

                              andy@gently:~$ bash testing
                              hello
                              andy@gently:~$ sh testing
                              hello


                              Odd...

                              Andy

                              >
                              >


                              Comment

                              Working...
                              X
                              😀
                              🥰
                              🤢
                              😎
                              😡
                              👍
                              👎