Coder Social home page Coder Social logo

Sonos UPNP support about pulseaudio-dlna HOT 24 CLOSED

masmu avatar masmu commented on August 20, 2024
Sonos UPNP support

from pulseaudio-dlna.

Comments (24)

masmu avatar masmu commented on August 20, 2024

Which devices is it exactly?

Could you provide a debug.log?

pulseaudio-dlna --debug 2>&1 | tee -a debug.log

from pulseaudio-dlna.

ryanroth avatar ryanroth commented on August 20, 2024

I have the same issue. Here is a debug:

https://www.dropbox.com/s/cdj16x25gjsxaw7/debug.log?dl=0

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024

@ryanroth @alois74

Could you please check the new version?

  • 0.3.5 - (2015-04-09)
    • Fixed a bug where Sonos description XML could not get parsed correctly

from pulseaudio-dlna.

ryanroth avatar ryanroth commented on August 20, 2024

It doesn't error out now. It appears the stream starts and then stops immediately

192.168.0.108 - - [09/Apr/2015 18:02:47] "GET /1921680108sonosplay1.stream HTTP/1.1" 200 -
INFO:root:"192.168.0.108 - Sonos PLAY:1" is playing.
INFO:root:starting sending stream to "192.168.0.108 - Sonos PLAY:1"
192.168.0.108 - - [09/Apr/2015 18:02:47] "HEAD /1921680108sonosplay1.stream HTTP/1.1" 200 -
INFO:root:stream closed. cleaning up remaining procecces

from pulseaudio-dlna.

ryanroth avatar ryanroth commented on August 20, 2024

From the Sonos

Transport error ERROR_CORRUPT_FILE for account type 0, URI: http://192.168.0.10:12380/1921680108sonosplay1.stream, friendly name: Live Audio, share/server: 192.168.0.10:12380, path: http://192.168.0.10:12380/1921680108sonosplay1.stream, extra info: , http: -1

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024

@ryanroth
Could you provide a debug.log for that as well? Because it really helps to find out what is really going on.

From what i can see now, your Sonos device does not recognize the stream encoding (i assume that you are using the default encoder) mp3. It might be, that the default bitrate of 320 is to high.

Did you try to use other encoders?
pulseaudio-dlna --encoder ogg for Ogg Vorbis
pulseaudio-dlna --encoder flac for Flac
pulseaudio-dlna --encoder wav for Wav

Which linux do you use? Ubuntu?
Which version?
Did you install it by the ppa or did you clone from git?

from pulseaudio-dlna.

ryanroth avatar ryanroth commented on August 20, 2024

I tried wav and flac with the same results. Sonos supports 320kbps mp3s. I cloned from git. I will try to grab debugs later today.

~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
$ uname -a
Linux friscojack 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
ryanroth@friscojack:
$

from pulseaudio-dlna.

ryanroth avatar ryanroth commented on August 20, 2024

Debug
https://www.dropbox.com/s/cdj16x25gjsxaw7/debug.log?dl=0

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024

@ryanroth Could you try the streaming-server branch?

There are many enhancements included, also your XML fix and another fix which might solve your issue.
If it does not work straight away, you can adjust the encoder and the bitrate (as far these support that) with the --encoder and --bit-rate options to figure things out.

Just a note: Nearly all encoders default bitrate is now set to 192 kbit/s.

Keep me posted.

from pulseaudio-dlna.

ryanroth avatar ryanroth commented on August 20, 2024

Ok. I tested it and no go. But I'll mess with it more this weekend.

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024

Please update the streaming-server branch. I added some additional DLNA headers and added more debug code.

When it does not work, please don't forget to paste another debug.log

from pulseaudio-dlna.

ryanroth avatar ryanroth commented on August 20, 2024

The updated branch errors out when I run it

https://www.dropbox.com/s/cdj16x25gjsxaw7/debug.log?dl=0

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024

@ryanroth Sorry for that.

That should be fixed. I updated the branch. Do a git pull and try again please.

from pulseaudio-dlna.

ryanroth avatar ryanroth commented on August 20, 2024

It now works. Still a bit glitchy depending on the audio import format it seems. I'll try to spend some time with it this week to gather better information and debugs.

from pulseaudio-dlna.

ryanroth avatar ryanroth commented on August 20, 2024

This appears to be working properly.

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024

Good to hear 😄

Thanks for your feedback!
Which device did you test exactly? I want to add it to the list of tested devices.

from pulseaudio-dlna.

ryanroth avatar ryanroth commented on August 20, 2024

A single PLAY:1, two PLAY:1s in a stereo pair, and a single PLAY:3 all separately, and then all five of my speakers grouped together. All the grouping was done through the Sonos app.

I also have a couple feature requests/suggestions where would you like those posted?

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024

Thanks.

Just open new issues please. One for each to keep things seperate.

from pulseaudio-dlna.

 avatar commented on August 20, 2024

If I am not mistaken, you changed README.md in the master branch, but the files in that branch still doesn't support Sonos. I have Sonos PLAY:5 and wanted to test it using "sudo apt-get install pulseaudio-dlna" but it is not working. Hopefully the next version 0.3.6 supports it and I will test it so you can add it to your list of tested devices :)

from pulseaudio-dlna.

ryanroth avatar ryanroth commented on August 20, 2024

You need to change branches to the streaming-server branch

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024

Yeah, i pushed it the the wrong branch. Thanks for the hint!

from pulseaudio-dlna.

alois74 avatar alois74 commented on August 20, 2024

Sorry for not responding earlier, but I forgot to enable e-mail notifications and therefore didn't realize that some approaches on solving were already going on.
When I try to run the refactoring-streaming-server (downloaded via zip) no streaming devices are found.
When starting the (newly) downloaded master branch, still no sound :-(
Is there a difference between a git pull and the zip-Download on the page?
Sorry, but I am no developer and a git-newby.
Debug.log (from master branch): https://www.schmid-alois.de/owncloud/index.php/s/42fcm1cxNP87OMI

from pulseaudio-dlna.

 avatar commented on August 20, 2024

When is the next version (0.3.6) planned?

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024
  • 0.4.0 - (2015-07-27)
    • Added the --fake-http10-content-length option
    • The application can now run as root
    • Catch pulseaudio exceptions for streams, sinks and modules when those are gone
    • Fixed a bug where a missing ssdp header field made the application crash
    • New devices are added now during runtime (thanks to coder-hugo)
    • Rewrite of the streaming server
    • Upnp devices can now request their audio format based on their capabilities
    • Added AAC encoder
    • If a device stops playing, the streams currently playing on
      the corresponding sink are switched back to the default sink
    • If a device failes to start playing, streams currently playing on
      the corresponding sink are switched back to the default sink
    • Added Chromecast support (new dependency: python-protobuf)
    • Fixed a bug where the application crashed when there was no suitable encoder found
    • Added the --bit-rate option
    • Added additional headers for DLNA devices
    • Added switch back mode also for sinks, not just for streams (new dependency: python-notify2)
    • Added better logging
    • Validate encoders for installed dependencies

from pulseaudio-dlna.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.