Coder Social home page Coder Social logo

Comments (9)

masmu avatar masmu commented on July 19, 2024

I guess this is because of the codec. In 0.4.x pulseaudio-dlna chooses the codec depending on the devices capabilities and a priority list of available encoders. At the moment wav has the highest priority and is therefore chosen over mp3_ and others.

Could you check this by starting it with another encoder?
pulseaudio-dlna --encoder mp3 or
pulseaudio-dlna --encoder opus

from pulseaudio-dlna.

petereckhardt avatar petereckhardt commented on July 19, 2024

Hello Massimo,

that was a fast reply :-)

You are right using -e mp3 works nicely. In 3.5.1 - e wav did work also.

Anyway a great program. Makes streaming with pulse audio so much easier.

Take care and thanks a lot for the quick help.

Peter

engrea GmbH
Im Unterfeld 39
76297 Stutensee

Am 30. Juli 2015 12:41:36 schrieb Massimo Mund [email protected]:

I guess this is because of the codec. In 0.4.x pulseaudio-dlna chooses
the codec depending on the devices capabilities and a priority list of
available encoders. At the moment wav has the highest priority and is
therefore chosen over mp3_ and others.

Could you check this by starting it with another encoder?
pulseaudio-dlna --encoder mp3 or
pulseaudio-dlna --encoder opus


Reply to this email directly or view it on GitHub:
#60 (comment)

from pulseaudio-dlna.

masmu avatar masmu commented on July 19, 2024

I did not modify the wav encoder. Which version of kodi are you using?

from pulseaudio-dlna.

iBigQ avatar iBigQ commented on July 19, 2024

Same problem here, just updated to the new version in the repository, Kodi was not modified. I also got the
sox WARN wav: Length in output .wav header will be wrong since can't seek to fix it
message. I started pulseaudio-dlna without any parameters. I will also try with the mp3 encoder

from pulseaudio-dlna.

petereckhardt avatar petereckhardt commented on July 19, 2024

Hello Massimo,

Kodi Version is 15. I tried to use flac. That works also. Seems problem
only appears with wav.

Greetings
Peter

engrea GmbH
Im Unterfeld 39
76297 Stutensee

Am 30. Juli 2015 15:55:27 schrieb Massimo Mund [email protected]:

I did not modify the wav encoder. Which version of kodi are you using?


Reply to this email directly or view it on GitHub:
#60 (comment)

from pulseaudio-dlna.

masmu avatar masmu commented on July 19, 2024

@petereckhardt
Thanks for your testings. Those were indeed very helpful 👍

I could track the problem down. Its a mix of my performance optimizations and kodi's way of detecting audio formats.
But currently i am not quite sure whats the best way to solve it.

In the meantime, please just use another encoder.

from pulseaudio-dlna.

petereckhardt avatar petereckhardt commented on July 19, 2024

Hello Massimo,

i can nicely live with flac. No problem.

Have a great weekend

Peter

engrea GmbH
Im Unterfeld 39
76297 Stutensee

Am 31. Juli 2015 12:29:16 schrieb Massimo Mund [email protected]:

@petereckhardt
Thanks for your testings. Those were indeed very helpful 👍

I could track the problem down. Its a mix of my performance optimizations
and kodi's way of detecting audio formats.
But currently i am not quite sure whats the best way to solve it.

In the meantime, please just use another encoder.


Reply to this email directly or view it on GitHub:
#60 (comment)

from pulseaudio-dlna.

masmu avatar masmu commented on July 19, 2024
  • 0.4.2 - (2015-08-02)
    • The mp3 encoder is now prioritize over wav
    • Added '--disable-switchback' option
    • Wav encoders do not longer share their encoder process

from pulseaudio-dlna.

rog4l avatar rog4l commented on July 19, 2024

Hello,

I am receiving same error with the wav encoder and just wanted to ask if there is any chance for fix of that?
The encoder option set to mp3 work perfectly fine, but as an mp3 is a lossy compression doesn't that have an influence on the sound quality?
Also as it is mentioned in the documentation, the usage of wav encoder should cause a shorter delay in playback. In my case the delay is around 5-7 seconds for mp3.
Below are some couple lines from the log before the error occurs. After that stream gets closed and the DLNA renderer gets disconnected.
Installed version is 0.4.7

12-28 23:26:53 pulseaudio_dlna.streamserver INFO Client 192.168.1.2 registered to stream /dWRuPSJ1dWlkOjNiZjAxNzdhLWVmZGUtZDVmMi1mMDA1LTAxOTk1MjAxNTdGIix0eXBlPSJicmlkZ2Ui/stream.wav.
12-28 23:26:53 pulseaudio_dlna.streamserver DEBUG Starting processes "parec --format=s16le -d airtrymr_dlna.monitor | sox -t raw -b 16 -e signed -c 2 -r 44100 - -t wav -b 16 -e signed -c 2 -r 44100 -L -"
12-28 23:26:53 pulseaudio_dlna.streamserver INFO Processes of /dWRuPSJ1dWlkOjNiZjAxNzdhLWVmZGUtZDVmMi1mMDA1LTAxOTk1MjAxNTdGIix0eXBlPSJicmlkZ2Ui/stream.wav initialized ...
sox WARN wav: Length in output .wav header will be wrong since can't seek to fix it

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.