Coder Social home page Coder Social logo

Comments (18)

masmu avatar masmu commented on August 20, 2024

Which version of ubuntu are you using?

Please open a new issue for the discovery thing. Just to keep things seperate from each other.

You can try the latest development version if you want. There are many bug fixes in there.

For that first remove the version you installed by package
sudo apt-get remove pulseaudio-dlna

Then make sure you installed git.
sudo apt-get install git

Make sure you installed the dependencies which are new in contrast to the version you installed:
sudo apt-get install python-setuptools python-protobuf python-notify2 faac

Then make a test directory somewhere, e.g. in your home folder:
mkdir ~/test

Go into it:
cd ~/test

Clone the repository:
git clone https://github.com/masmu/pulseaudio-dlna.git

Go to the source folder:
cd pulseaudio-dlna

Checkout the development branch:
git checkout refactor/streaming-server

Set it up:
make venv

Run the development version:
bin/pulseaudio-dlna

If it does not work, provide a debug.log. Since this will get very long, use that command:
bin/pulseaudio-dlna --debug 2>&1 | tee -a debug.log

It will create a debug.log you can upload somewhere and paste the link here.

If you want to uninstall it, just delete your test folder. Since it won't installed into your system this is all you have to do.

from pulseaudio-dlna.

billsbro avatar billsbro commented on August 20, 2024

thanks

I got stuck at the make venv cmd

virtualenv --system-site-packages -p python2.7 .
make: virtualenv: Opdracht niet gevonden
make: *** [bin/pip] Fout 127
bb@dell6410:~/dlnatest/pulseaudio-dlna$

(command not found)
(error 127)

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024

Sorry, i missed that ..

sudo apt-get install python-dev python-virtualenv

from pulseaudio-dlna.

billsbro avatar billsbro commented on August 20, 2024

thanks again

here's the link to the debug.log , unfortunately it didnt work, I am connecting through the devices network. I appreciate your effort

http://1drv.ms/1D2wCcj

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024

@billsbro
You are welcome!

I looked into your debug.log and everything looks good, besides that your device does not accept the stream. It requests it and closes the connection immediately. So i guess for some reason it does not like it. There is an odd thing: The devices user-agent is wget?!

Could you provide me a log for the output of pactl list sink-inputs while you are playing some music or watching a movie?

Did you try a different encoder? Your device provides that it is capable of playing FLAC.
So try bin/pulseaudio --encoder flac
You could also try to change the bitrate for mp3. Perhaps it is not capable of doing a constant bitrate of 192. That would be strange but it is worth a try.
So try: bin/pulseaudio --encoder mp3 --bit-rate 128

Could you give me a direct link to your device? I searched on google for it and got zero results, which is strange. The website is on korean and despite random clicking on it i was not able to find it.

from pulseaudio-dlna.

billsbro avatar billsbro commented on August 20, 2024

I dont really understand your question (Could you provide me a log for the output of pactl list sink-inputs while you are playing some music or watching a movie?) Do you mean the list of audio devices in the system settings? (ie : Loudspeakers internal, Hamemusic_517a (DLNA) and 42A650_Series (DLNA).
The device plays several mp3 bitrates (I can play mp3 through Android phone and Tablet without any trouble) I will try flac but I have to get those first.

The device refers to http://www.plutinosoft.com/platinum/ for libraries. I cant find any documentation in English either, I got it through amazon Germany.

I see that they added the soundrouter to the website now, this is it but its in asian
http://www.hamedata.com.cn/goods.php?id=20

edit : for what its worth : I can stream from the laptop using pulseaudio-dlna to my android phone when Bubble UPNP is running. So all devices work together except for the combination of the ubuntu laptop with the soundrouter for whatever reason..

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024

I just need the output of pactl list sink-inputs. And you need to play music or stuff while doing that, because otherwise there won't be the necessary information. E.g. mine looks like:

Senkeneingabe #24
        Treiber: protocol-native.c
        Besitzermodul: 11
        Client: 22
        Senke: 1
        Sample-Spezifikation: s16le 2ch 44100Hz
        Kanalzuordnung: front-left,front-right
        Format: pcm, format.sample_format = "\"s16le\""  format.rate = "44100"  format.channels = "2"  format.channel_map = "\"front-left,front-right\""
       ...

I want to check your internal encoding, the values of Format.

from pulseaudio-dlna.

billsbro avatar billsbro commented on August 20, 2024

I tried flac, too bad it's a no show either.

Sink Input #8
Driver: protocol-native.c
Owner Module: 9
Client: 28
Sink: 0
Sample Specification: float32le 2ch 44100Hz
Channel Map: front-left,front-right
Format: pcm, format.sample_format = ""float32le"" format.channels = "2" format.rate = "44100" format.channel_map = ""front-left,front-right""
Corked: no
Mute: no
Volume: 0: 90% 1: 90%
0: -2,75 dB 1: -2,75 dB
balance 0,00
Buffer Latency: 98117 usec
Sink Latency: 64267 usec
Resample method: copy
Properties:
media.name = "'Haus am See' door 'Heino'"
application.name = "gmusicbrowser"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "28"
media.role = "music"
application.icon_name = "gmusicbrowser"
application.process.id = "3210"
application.process.user = "bb"
application.process.host = "dell6410"
application.process.binary = "perl"
application.language = "nl_NL.UTF-8"
window.x11.display = ":0.0"
application.process.machine_id = "dfe23f74122da538a1d322aa538b568c"
application.process.session_id = "c2"
module-stream-restore.id = "sink-input-by-media-role:music"
media.title = "Haus am See"
media.artist = "Heino"

Mfg
billsbro

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024

Thanks for your report. There is a neat little difference. Your PCM is encoded with float32le. Mine with s16le. I need to do some testings about that.

Since your device creates 2 problems, i ordered one myself. It should arrive tomorrow, so stay tuned and expect some more results at the weekend.

from pulseaudio-dlna.

billsbro avatar billsbro commented on August 20, 2024

you sure go all the way, thanks in advance

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024

So, i got mine running.
They device uses HTTP/1.0 and requires to send a Content-Length header.
Could you please try the latest version?

Go to the source folder:
cd pulseaudio-dlna

Grab the latest changes:
git pull

Run it:
bin/pulseaudio-dlna

from pulseaudio-dlna.

billsbro avatar billsbro commented on August 20, 2024

I got sound!

This was priority number one, if you don't mind I will open another call for the network related issue. Btw do you have that same issue with this device?

from pulseaudio-dlna.

billsbro avatar billsbro commented on August 20, 2024

thanks man, I noticed your paypal account for a beer or two, zum Wohl.

Marc

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024

Thank you very much! I am glad it worked.

I am just using that device with cable. But the cable setup is strange too. There are 2 Ethernet ports. One with WAN and one with LAN labelled. I am just able to use the device when it is attached to the WAN port. Normally you should plug in the DSL cable there, not that cable to your LAN.
Which one are you using? Are you using cable network at all?

I will take a deeper look at that the next days. Could you describe your network setup, so that i can try to imitate it?

Gezondheid!

from pulseaudio-dlna.

billsbro avatar billsbro commented on August 20, 2024

I run it wirelessly but I will do the describtion in the dedicated thread, by your request.

So, I am still running this in in the development version I reckon but it will be available as a fix in the next stable release?

mfg

Marc

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024

Yes, please use the other thread 😄

This fix will be in the next release. The one way or the other. The problem is, i am not 100% sure if that what i am doing is up to the specification.
Perhaps there will be additional flag, such as --http10-fake-content-length ...

from pulseaudio-dlna.

billsbro avatar billsbro commented on August 20, 2024

hmm the audio connection is lost sometimes and it streams back to the internal laptops speakers, I will see if I can find any repeatable logic

from pulseaudio-dlna.

masmu avatar masmu commented on August 20, 2024

@billsbro:
Since the Hame Soundrouter does not act accordingly to the HTTP 1.0 specification, you have to use the --fake-http10-content-length flag to make your device work in 0.4.0.

  • 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.