hzeller / gmrender-resurrect

Resource efficient UPnP/DLNA renderer, optimal for Raspberry Pi, CuBox or a general MediaServer. Fork of GMediaRenderer to add some features to make it usable.
GNU General Public License v2.0
832 stars 202 forks source link

Streaming stops after a random amount of time #97

Open DrAxelbauer opened 8 years ago

DrAxelbauer commented 8 years ago

Hi! and thanks for this very cool piece of software! I am currently having an issue with pulseaudio-dlna. See: [https://github.com/masmu/pulseaudio-dlna/issues/151]

My setup: Raspberry Pi with Raspian, gstreamer 1.0 and the latest version of gmrender-resurrect installed and working. If I stream from my phone via bubbleupnp, the streaming works like a charm, but if I stream the output of my opensuse 42.1. box with pulseaudio-dlna streaming stops at a random amount of time (sometimes 10min, sometimes just a few seconds). Still in pavu-control, the stream (which is not hearable anymore on my hifi) seems to work and being transferred but it seems, that either pulseaudio-dlna or gmediarender is not processing the sound correctly to my hifi. I have tried around with pulseaudio-dlna but with no success so far, so I am posting the problem here, maybe it is some problem with regard to the interplay of these two…I don't know…

For more infos, you could check out the issue mentioned above. Would be cool, if you could give some advice!

Thanks, Benjamin.

hzeller commented 8 years ago

If you call gmediarender and ask it to generate a logfile, you might see if there is something happening when it stops working. With the --logfile option, you can give it a name of a logfile to write to. This could be a file, or you can just run it in foreground and dump the logfile to the terminal:

src/gmediarender --logfile=/dev/stdout

Let me know if you see something suspicious.

DrAxelbauer commented 8 years ago

Hi! okay i tried it and still the stream breaks up… Here is the log file: gmrenderer.txt

DrAxelbauer commented 8 years ago

Hmmm interesting, there seems to be no error or stop sign within the logfile…So i think it has to do with pulseaudio-dlna or pulseaudio…

5slight commented 7 years ago

I have been having this issue with a similar setup. I've got a Raspberry pi 1b and Raspberry pi 3 running Arch. Both suffer from the same issue. After a certain amount of time the audio stops. I was under the impression that this was an issue with Pulseaudio DLNA rather than gmediarender. For me when it cuts out I have to toggle between my sound card and the pi in pavucontrol a few times before it works again. I have tried restarting gmediarender when this happens and that doesn't help.

I was wondering whether this could be caused by my home network setup. I've just been using my ISP router which is a BT Home Hub. I don't know if that can mess with UPNP/DLNA. Maybe a better router would help.

I'm currently in the proccess of compiling my own version of gstreamer as I was having problems with MP3 playback. I will see if that helps.