Squeezslave on Open WRT router tp link wr1043nd I'm stuck...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chriskrems
    Junior Member
    • Sep 2013
    • 10

    Squeezslave on Open WRT router tp link wr1043nd I'm stuck...

    Hi guys,
    I try to install squeezeslave on the above mentioned router...

    so far so good I activated the packes for the usb Sound Card...

    when i run

    Code:
     /usr/bin/squeezeslave -L
    the output is:
    0: (ALSA) C-Media USB Headphone Set: USB Audio (hw:0,0) (11/46)
    1: (ALSA) front (11/46)
    2: (ALSA) surround40 (11/46)
    3: (ALSA) iec958 (11/46)
    4: (ALSA) spdif (11/46)
    * 5: (ALSA) default (42/42)
    6: (ALSA) dmix (42/42)
    7: (OSS) /dev/dsp (11/46)
    when I run
    Code:
    /usr/bin/squeezeslave -I
    the Output is:
    forrest:9000 (10.0.0.80)
    for me it Looks like everything is fine...



    then I try -o0 for Output USB soundcard and Server 10.0.0,80

    /usr/bin/squeezeslave -o0 10.0.0.80
    nothing happens...

    I have a few questions...

    when i run the command everything is in foreground how to Exit this without always closing the SSH Connection is there a shortcut for this?

    Is my Syntax not correct?
    what should I try?

    if it works how to get it into start up?

    THX CHris
  • chriskrems
    Junior Member
    • Sep 2013
    • 10

    #2
    Maybe some Progress...

    I used

    /usr/bin/squeezeslave -o0 10.0.0.80 -d slimproto -P 9000
    and I got this:

    Code:
    root@OpenWrt:~# /usr/bin/squeezeslave -o0 10.0.0.80 -d slimproto -P 9000
    proto_thread: state=1
    proto_thread: PROTO_CLOSED cond_wait
    slimproto_connect: (10.0.0.80, 9000)
    proto_close: state 1
    proto_close: not connected
    any remarks?

    Comment

    • Roland0
      Senior Member
      • Aug 2012
      • 1343

      #3
      Originally posted by chriskrems
      Code:
      root@OpenWrt:~# /usr/bin/squeezeslave -o0 10.0.0.80 -d slimproto -P 9000
      any remarks?
      don't use port 9000 (that's the web ui), use 3483 (which is the default anyway, so no need to specify it)

      try
      Code:
      /usr/bin/squeezeslave -o 0 -d all 10.0.0.80
      Check if it connects:
      Code:
      slimproto_connect: (10.0.0.80, 3483)
      proto_close: state 1
      proto_close: not connected
      proto_thread: state=2
      proto_sigpipe: MSG_NOSIGNAL
      proto_connect: connected to 10.0.0.80
      proto_thread: state=3
      Check if the audio device is correct (and try another one, e.g. 5)
      Code:
      output_thread: PortAudio initialized
      paDeviceInfo->deviceid 9
      paDeviceInfo->maxOutputChannels 128
      outputParameters.suggestedLatency 0.046440
      paDeviceInfo->defaultHighOutputLatency 0.046440
      paDeviceInfo->defaultLowOutputLatency 0.042653
      paDeviceInfo->defaultSampleRate 44100.000000
      or just try squeezelite instead of squeezeplay...
      Various SW: Web Interface | Text Interface | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | Ambient Noise Mixer | DB Optimizer | Image Enhancer | Chiptunes | LMSlib2go | ...
      Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

      Comment

      • chriskrems
        Junior Member
        • Sep 2013
        • 10

        #4
        Ok i tried
        /usr/bin/squeezeslave -o 5 -d all 10.0.0.80
        the Output was
        root@OpenWrt:~# /usr/bin/squeezeslave -o 5 -d all 10.0.0.80
        decoder buffer pointer: 0x910098
        output buffer pointer: 0x911008
        proto_thread: state=1
        proto_thread: PROTO_CLOSED cond_wait
        Using audio device index: 5
        decoder_thread: STREAM_STOPPED first_time:1
        http_thread state 2
        slimproto_connect: (10.0.0.80, 3483)
        proto_close: state 1
        proto_close: not connected
        Segmentation fault
        seems it is not the right Version? can I compile it by hand??

        Comment

        • chriskrems
          Junior Member
          • Sep 2013
          • 10

          #5
          I got it a try with squeezelite and ohh what a surprise ist working ... I can Play Music see it in the LMS, but there is no Sound...

          cd /usr/bin/
          wget http://squeezelite.googlecode.com/fi...te-mips-ar71xx
          chmod u+x squeezelite-mips-ar71xx
          squeezelite-mips-ar71xx -l
          the Output was:

          root@OpenWrt:/usr/bin# squeezelite-mips-ar71xx -l
          Output devices:
          null - Discard all samples (playback) or generate zero samples (capture)
          default:CARD=Set - C-Media USB Headphone Set, USB Audio - Default Audio Device
          front:CARD=Set,DEV=0 - C-Media USB Headphone Set, USB Audio - Front speakers
          surround40:CARD=Set,DEV=0 - C-Media USB Headphone Set, USB Audio - 4.0 Surround output to Front and Rear speakers
          surround41:CARD=Set,DEV=0 - C-Media USB Headphone Set, USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers
          surround50:CARD=Set,DEV=0 - C-Media USB Headphone Set, USB Audio - 5.0 Surround output to Front, Center and Rear speakers
          surround51:CARD=Set,DEV=0 - C-Media USB Headphone Set, USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
          surround71:CARD=Set,DEV=0 - C-Media USB Headphone Set, USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
          iec958:CARD=Set,DEV=0 - C-Media USB Headphone Set, USB Audio - IEC958 (S/PDIF) Digital Audio Output
          then I started it with
          squeezelite-mips-ar71xx -o front:CARD=Set,DEV=0 10.0.0.80
          but no Sound...

          what should be start Parameters??

          thx

          chris

          Comment

          • Roland0
            Senior Member
            • Aug 2012
            • 1343

            #6
            Originally posted by chriskrems
            I got it a try with squeezelite and ohh what a surprise ist working ..
            what should be start Parameters??
            have you tried just using the default audio (i.e. no -o option)
            if you use -o, format would be -o front
            turn on debugging: -d all=debug
            Various SW: Web Interface | Text Interface | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | Ambient Noise Mixer | DB Optimizer | Image Enhancer | Chiptunes | LMSlib2go | ...
            Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

            Comment

            • chriskrems
              Junior Member
              • Sep 2013
              • 10

              #7
              so i tried the following:

              squeezelite-mips-ar71xx -o front 10.0.0.80
              squeezelite-mips-ar71xx -o front:CARD=Set,DEV=0 10.0.0.80
              no Sound... i even can't see that it is playing the song, i can see the squeezelite Client and can add mp3s to the playlist but when I push Play nothing happens....

              may this be a Problem of ALSA?

              chris

              Comment

              • chriskrems
                Junior Member
                • Sep 2013
                • 10

                #8
                i tried a lot more but ist not working

                here is my Debugging

                root@OpenWrt:/usr/bin# squeezelite-mips-ar71xx -d all=debug -o front:CARD=Set,DEV=0 10.0.0.80
                [13:39:38.748807] stream_init:264 init stream
                [13:39:38.751791] stream_init:265 streambuf size: 2097152
                [13:39:38.766357] output_init:1337 init output
                [13:39:38.768547] output_init:1340 outputbuf size: 3528000
                [13:39:38.769181] output_init:1372 requested alsa_buffer: 40 alsa_period: 4 format: any mmap: 1
                [13:39:38.827894] output_init:1398 output: front:CARD=Set,DEV=0 maxrate: 48000
                [13:39:38.849028] output_init:1408 memory locked
                [13:39:38.853016] output_thread:601 open output device: front:CARD=Set,DEV=0
                [13:39:38.857754] alsa_open:270 opened device front:CARD=Set,DEV=0 using format: S16_LE sample rate: 44100 mmap: 1
                [13:39:38.858397] alsa_open:335 buffer: 40 period: 4 -> buffer size: 1764 period size: 441
                [13:39:38.859655] output_init:1431 set output sched fifo rt: 45
                [13:39:38.865741] decode_init:129 init decode
                [13:39:38.868449] load_faad:560 dlerror: File not found
                [13:39:38.868969] load_vorbis:257 dlerror: File not found
                [13:39:38.869392] load_flac:214 dlerror: File not found
                [13:39:38.869768] register_pcm:352 using pcm
                [13:39:38.870142] load_mad:309 dlerror: File not found
                [13:39:38.870559] load_mpg:215 dlerror: File not found
                [13:39:38.871947] discover_server:633 sending discovery
                [13:39:38.873207] discover_server:644 got response from: 10.0.0.80:3483
                [13:39:38.873645] slimproto:686 connecting to 10.0.0.80:3483
                [13:39:38.874503] slimproto:713 connected
                [13:39:38.874851] sendHELO:109 mac: xx:xx:xx:xx:xx:xx
                [13:39:38.875172] sendHELO:111 cap: Model=squeezelite,ModelName=SqueezeLite,AccuratePl ayPoints=1,HasDigitalOut=1,MaxSampleRate=48000,aif ,pcm
                [13:39:38.877295] process:409 strm
                [13:39:38.877810] process_strm:219 strm command q
                [13:39:38.882719] decode_flush:181 decode flush
                [13:39:38.887847] output_flush:1443 flush output buffer
                [13:39:38.888478] sendSTAT:151 STAT: STMf
                [13:39:38.889104] process:409 strm
                [13:39:38.889550] process_strm:219 strm command q
                [13:39:38.889922] decode_flush:181 decode flush
                [13:39:38.890261] output_flush:1443 flush output buffer
                [13:39:38.890610] sendSTAT:151 STAT: STMf
                [13:39:38.891062] process:413 unhandled setd
                [13:39:38.891511] process:413 unhandled setd
                [13:39:38.891941] process:409 aude
                [13:39:38.892330] process_aude:340 enable spdif: 1 dac: 1
                [13:39:38.892791] process:409 audg
                [13:39:38.893183] process_audg:357 audg gainL: 65536 gainR: 65536 adjust: 1
                [13:39:41.679379] process:409 strm
                [13:39:41.679733] process_strm:219 strm command t
                [13:39:41.679974] sendSTAT:151 STAT: STMt
                [13:39:45.680103] process:409 strm
                [13:39:45.680459] process_strm:219 strm command t
                [13:39:45.680701] sendSTAT:151 STAT: STMt
                [13:39:45.962663] process:409 strm
                [13:39:45.963017] process_strm:219 strm command q
                [13:39:45.963252] decode_flush:181 decode flush
                [13:39:45.963474] output_flush:1443 flush output buffer
                [13:39:45.963704] sendSTAT:151 STAT: STMf
                [13:39:46.152234] process:409 audg
                [13:39:46.152586] process_audg:357 audg gainL: 65536 gainR: 65536 adjust: 1
                [13:39:46.161876] process:409 strm
                [13:39:46.162336] process_strm:219 strm command s
                [13:39:46.162605] process_strm:286 strm s autostart: 1 transition period: 10 transition type: 0
                [13:39:46.162882] sendSTAT:151 STAT: STMf
                [13:39:46.163249] codec_open:204 codec open: 'p'
                [13:39:46.163658] pcm_open:333 pcm size: 2 rate: 44100 chan: 2 bigendian: 0
                [13:39:46.163986] stream_sock:352 connecting to 10.0.0.80:9000
                [13:39:46.164736] stream_sock:381 header: GET /stream.mp3?player=xx:xx:xx:xx:xx:xx HTTP/1.0


                [13:39:46.165091] sendSTAT:151 STAT: STMc
                [13:39:46.165470] process_strm:309 set fade mode: 0
                [13:39:46.165925] process:409 audg
                [13:39:46.166169] process_audg:357 audg gainL: 65536 gainR: 65536 adjust: 1
                [13:39:46.181684] process:409 strm
                [13:39:46.182040] process_strm:219 strm command q
                [13:39:46.182278] decode_flush:181 decode flush
                [13:39:46.182499] output_flush:1443 flush output buffer
                [13:39:46.182895] sendSTAT:151 STAT: STMf
                [13:39:46.360292] process:409 audg
                [13:39:46.360645] process_audg:357 audg gainL: 65536 gainR: 65536 adjust: 1
                [13:39:46.367160] process:409 strm
                [13:39:46.367601] process_strm:219 strm command s
                [13:39:46.367835] process_strm:286 strm s autostart: 1 transition period: 10 transition type: 0
                [13:39:46.368111] sendSTAT:151 STAT: STMf
                [13:39:46.372603] codec_open:204 codec open: 'p'
                [13:39:46.376218] pcm_open:333 pcm size: 2 rate: 44100 chan: 2 bigendian: 0
                [13:39:46.379416] stream_sock:352 connecting to 10.0.0.80:9000
                [13:39:46.380891] stream_sock:381 header: GET /stream.mp3?player=xx:xx:xx:xx:xx:xx HTTP/1.0


                [13:39:46.381255] sendSTAT:151 STAT: STMc
                [13:39:46.381740] process_strm:309 set fade mode: 0
                [13:39:46.382229] process:409 audg
                [13:39:46.382472] process_audg:357 audg gainL: 65536 gainR: 65536 adjust: 1
                [13:39:46.387982] stream_thread:150 headers: len: 115
                HTTP/1.1 200 OK
                Server: Logitech Media Server (7.7.3 - 1375965195)
                Connection: close
                Content-Type: audio/L16


                [13:39:46.388400] process:409 strm
                [13:39:46.393152] process_strm:219 strm command q
                [13:39:46.393459] decode_flush:181 decode flush
                [13:39:46.393676] output_flush:1443 flush output buffer
                [13:39:46.394696] sendSTAT:151 STAT: STMf
                ^C[13:39:49.189737] slimproto_stop:763 slimproto stop
                [13:39:49.290330] decode_close:166 close decode
                [13:39:49.381522] stream_close:296 close stream
                [13:39:49.400468] output_close:1457 close output
                any hints?

                Comment

                • Roland0
                  Senior Member
                  • Aug 2012
                  • 1343

                  #9
                  Originally posted by chriskrems
                  i tried a lot more but ist not working
                  any hints?
                  You're missing the audio libraries.
                  Originally posted by SqueezeliteHomepage
                  The current version supports built in pcm (wav/aiff) decode plus flac, mp3, ogg and aac via libFLAC, libmad/libmpg123, libvorbisfile, libfaad respectively if they are present on your machine.
                  Various SW: Web Interface | Text Interface | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | Ambient Noise Mixer | DB Optimizer | Image Enhancer | Chiptunes | LMSlib2go | ...
                  Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

                  Comment

                  • chriskrems
                    Junior Member
                    • Sep 2013
                    • 10

                    #10
                    Which audio libraries exactly?

                    Gesendet von meinem Nexus 7 mit Tapatalk 4

                    Comment

                    • Roland0
                      Senior Member
                      • Aug 2012
                      • 1343

                      #11
                      Originally posted by chriskrems
                      Which audio libraries exactly?
                      The ones mentionioned in post #9:

                      Originally posted by SqueezeliteHomepage
                      The current version supports built in pcm (wav/aiff) decode plus flac, mp3, ogg and aac via libFLAC, libmad/libmpg123, libvorbisfile, libfaad respectively if they are present on your machine.
                      Various SW: Web Interface | Text Interface | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | Ambient Noise Mixer | DB Optimizer | Image Enhancer | Chiptunes | LMSlib2go | ...
                      Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

                      Comment

                      • DJanGo
                        Senior Member
                        • Sep 2005
                        • 2856

                        #12
                        Originally posted by chriskrems
                        but no Sound...
                        whats about alsamixer?
                        May (mostly) the sund is just dimmed down
                        whats about the audio group?
                        Always people frgot to put the user that starts squuezeserver r squeezelite into the audio group.

                        Comment

                        Working...