A Audio, hi-fi and car audio  forum. Audio Banter

Go Back   Home » Audio Banter forum » UK Audio Newsgroups » uk.rec.audio (General Audio and Hi-Fi)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

uk.rec.audio (General Audio and Hi-Fi) (uk.rec.audio) Discussion and exchange of hi-fi audio equipment.

Audio over wifi


« Push vs pull | test »

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old June 23rd 16, 08:24 PM posted to uk.rec.audio
Java Jive
external usenet poster
 
Posts: 106
Default Audio over wifi

On Thu, 23 Jun 2016 08:28:04 -0500, Richard Robinson
wrote:

Bob Latham said:
In article ,
Richard Robinson wrote:

Hello. I'm baffled and looking for help.


I've been trying to play audio over my home wifi :- the backend is a
raspbery pi sending audio out via USB into a DAC, the frontend is a
laptop running Debian 8, sending to a pulseaudio "SMC9514 hub digital
stereo (IEC958) on pi@raspberypi" sink (I find pulseaudio deeply obscure
and offputting, but I haven't found much else that offers the
possibility of doing this at all).


Not used a RPi, so can't help much with that at all. BTW, Jim is no
fan of pulse audio - neither am I, so I'm not grumbling - but
pulse audio or not, I suspect the WiFi is the problem, see below.

This connects, to the extent of
getting a noise out of the speakers, but the sound is useless - broken
up, stuttering, as much silence than sound - it gives the impression
that the data's just not being sent fast enough.


What transfer rate do you get if you just copy a file via WiFi from
the laptop to the RPi?

Wifi-wise, the pi is the bottleneck, with 'iwconfig wlan0' giving "Bit
Rate=54 Mb/s" (the rest of the system could go faster).


That sounds like it's telling you the theoretical maximum rate for
802.11g rather than the actual rate being achieved:
802.11b 2.4GHz 11 Mb/s
802.11g 2.4GHz 54 Mb/s
802.11n 2.4GHz 320 Mb/s

But
handwavingly, this is ~5megabytes/sec, CD-quality sound is
~10megabytes/min, so I'd have expected that to be plenty.


5MB/s is approximately equal to 54Mb/s (bytes vs bits), so, even if
you are being told the actual rate being achieved, you could easily be
maxing it out.

So what am I missing ? Is there some deep reason why this won't work, am
I doing something stupid, what's going on ?


I don't think your WiFi can be handling the throughput. You might
wish to investigate the coverage in as scientific a manner as
possible. It is generally accepted that to achieve a stable WiFi
connection, you need a signal-to-noise ratio of around -70dBm or
better. You can get smartphone/tablet apps that measure WiFi signals.
I have used an Android mobile phone app called WiFi Analyser, which I
rate as being pretty good ...
https://play.google.com/store/apps/d....wifi.analyzer
.... while for i* there's this, although I have no experience of it ...
https://itunes.apple.com/gb/app/netw...562315041?mt=8
Use one of these or something similar to check out the WiFi coverage.
--
================================================== ======
Please always reply to ng as the email in this post's
header does not exist. Or use a contact address at:
http://www.macfh.co.uk/JavaJive/JavaJive.html
http://www.macfh.co.uk/Macfarlane/Macfarlane.html
  #2 (permalink)  
Old June 23rd 16, 08:45 PM posted to uk.rec.audio
Don Pearce[_3_]
external usenet poster
 
Posts: 1,358
Default Audio over wifi

On Thu, 23 Jun 2016 21:24:57 +0100, Java Jive
wrote:

On Thu, 23 Jun 2016 08:28:04 -0500, Richard Robinson
wrote:

Bob Latham said:
In article ,
Richard Robinson wrote:

Hello. I'm baffled and looking for help.

I've been trying to play audio over my home wifi :- the backend is a
raspbery pi sending audio out via USB into a DAC, the frontend is a
laptop running Debian 8, sending to a pulseaudio "SMC9514 hub digital
stereo (IEC958) on pi@raspberypi" sink (I find pulseaudio deeply obscure
and offputting, but I haven't found much else that offers the
possibility of doing this at all).


Not used a RPi, so can't help much with that at all. BTW, Jim is no
fan of pulse audio - neither am I, so I'm not grumbling - but
pulse audio or not, I suspect the WiFi is the problem, see below.

This connects, to the extent of
getting a noise out of the speakers, but the sound is useless - broken
up, stuttering, as much silence than sound - it gives the impression
that the data's just not being sent fast enough.


What transfer rate do you get if you just copy a file via WiFi from
the laptop to the RPi?

Wifi-wise, the pi is the bottleneck, with 'iwconfig wlan0' giving "Bit
Rate=54 Mb/s" (the rest of the system could go faster).


That sounds like it's telling you the theoretical maximum rate for
802.11g rather than the actual rate being achieved:
802.11b 2.4GHz 11 Mb/s
802.11g 2.4GHz 54 Mb/s
802.11n 2.4GHz 320 Mb/s

But
handwavingly, this is ~5megabytes/sec, CD-quality sound is
~10megabytes/min, so I'd have expected that to be plenty.


5MB/s is approximately equal to 54Mb/s (bytes vs bits), so, even if
you are being told the actual rate being achieved, you could easily be
maxing it out.

So what am I missing ? Is there some deep reason why this won't work, am
I doing something stupid, what's going on ?


I don't think your WiFi can be handling the throughput. You might
wish to investigate the coverage in as scientific a manner as
possible. It is generally accepted that to achieve a stable WiFi
connection, you need a signal-to-noise ratio of around -70dBm or
better. You can get smartphone/tablet apps that measure WiFi signals.
I have used an Android mobile phone app called WiFi Analyser, which I
rate as being pretty good ...
https://play.google.com/store/apps/d....wifi.analyzer
... while for i* there's this, although I have no experience of it ...
https://itunes.apple.com/gb/app/netw...562315041?mt=8
Use one of these or something similar to check out the WiFi coverage.


Anyone who lives in a city is lucky if their wifi works at all.
Typically dozens of stations are crammed onto each channel, and the
signal is not the most robust. By London standards, my house is in a
pretty good location, but I still contend with this

http://www.soundthoughts.co.uk/look/wifi.png

d

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

  #3 (permalink)  
Old June 24th 16, 02:16 PM posted to uk.rec.audio
Richard Robinson
external usenet poster
 
Posts: 102
Default Audio over wifi

[interim followup, I haven't had a lot of time for this].

Java Jive said:
On Thu, 23 Jun 2016 08:28:04 -0500, Richard Robinson

Wifi-wise, the pi is the bottleneck, with 'iwconfig wlan0' giving "Bit
Rate=54 Mb/s" (the rest of the system could go faster).


That sounds like it's telling you the theoretical maximum rate for
802.11g rather than the actual rate being achieved:
802.11b 2.4GHz 11 Mb/s
802.11g 2.4GHz 54 Mb/s
802.11n 2.4GHz 320 Mb/s


I suspected that. Then I shuffled stuff around the network for a while to
make sure it had enough reality to chew on then looked again, and it told
me, variously, 180Mb/s and 216Mb/s. So I think it's real numbers - which I
also don't understand, the card only claiming to be capable of up to
150Mb/s. I have v. little experience of network diagnostics.


But handwavingly, this is ~5megabytes/sec, CD-quality sound is
~10megabytes/min, so I'd have expected that to be plenty.


5MB/s is approximately equal to 54Mb/s (bytes vs bits), so, even if you
are being told the actual rate being achieved, you could easily be maxing
it out.


That's what I don't see, 5 megabytes / second is much faster than 10
megabytes / minute. Bob Latham's comment on buffering may be the answer,
I'll investigate that when my tuits arrive. But not being in an energetic
mood today, I think I'll also look at Volumio.

--
Richard Robinson
"The whole plan hinged upon the natural curiosity of potatoes" - S. Lem

My email address is at http://www.qualmograph.org.uk/contact.html
  #4 (permalink)  
Old June 26th 16, 07:56 PM posted to uk.rec.audio
Peter Chant[_3_]
external usenet poster
 
Posts: 28
Default Audio over wifi

On 06/23/2016 12:40 PM, Bob Latham wrote:

For your raspberry pi code Google OpenHome UPnP.


I'm getting good results with MPD in the Pi with the music on another
machice as a file server. OK, sometimes FLAC tracks are a little slow
to start but generally it is good.

If you are handy with scripting and the filenames / directory names are
meaningful could you write a tagging script for those MP3s?

Pete

  #5 (permalink)  
Old June 27th 16, 12:12 PM posted to uk.rec.audio
Richard Robinson
external usenet poster
 
Posts: 102
Default Audio over wifi

Peter Chant said:
On 06/23/2016 12:40 PM, Bob Latham wrote:

For your raspberry pi code Google OpenHome UPnP.


I'm getting good results with MPD in the Pi with the music on another
machice as a file server. OK, sometimes FLAC tracks are a little slow
to start but generally it is good.


Yes, that's looking like my next step. I looked at volumio and a couple of
the other dedicated audio distros, but I couldn't get them to even boot and
have reached the point where MPD's looking like a more worthwhile option
than throwing any more time at them.

How does accessing the remote disk work, do you need NFS/Samba, somthing
like that ? I've never needed anything like that before (it's not a problem,
I can do Geek when I have to).

If you are handy with scripting and the filenames / directory names are
meaningful could you write a tagging script for those MP3s?


Kid3 can do that with a button-push. Which is nice, in cases where the
filenames are meaningful. Cue hollow laughter - well, some of them are, but
plenty aren't.

$ find /home/music | egrep '/01.(mp3|flac)' | wc -l
259

Directory names are meaningful, as they more-or-less have to be, I could
script that, but it's not worth it - if I've to be doing the individual
tracks by hand it's hardly any extra nuisance to slap the 'Album' name in at
the same time. I do find Kid3 pretty convenient. And in the meantime, I have
players that'll browse the filesystem as well as the tags.

But I have written a perl script to check for and apply ReplayGain, which
seems to work, and improves things.


Which all reminds me - is there any way of storing tag data outside the
music file ? It's irritating, and slow, having to back up music files in
their entirety when I've only made changes to the tag data.

--
Richard Robinson
"The whole plan hinged upon the natural curiosity of potatoes" - S. Lem

My email address is at http://www.qualmograph.org.uk/contact.html
  #6 (permalink)  
Old June 28th 16, 08:50 PM posted to uk.rec.audio
Peter Chant[_3_]
external usenet poster
 
Posts: 28
Default Audio over wifi

On 06/27/2016 01:12 PM, Richard Robinson wrote:
Peter Chant said:
On 06/23/2016 12:40 PM, Bob Latham wrote:

For your raspberry pi code Google OpenHome UPnP.


I'm getting good results with MPD in the Pi with the music on another
machice as a file server. OK, sometimes FLAC tracks are a little slow
to start but generally it is good.


Yes, that's looking like my next step. I looked at volumio and a couple of
the other dedicated audio distros, but I couldn't get them to even boot and
have reached the point where MPD's looking like a more worthwhile option
than throwing any more time at them.


I believe that and others use mpd as a backend.

How does accessing the remote disk work, do you need NFS/Samba, somthing
like that ? I've never needed anything like that before (it's not a problem,
I can do Geek when I have to).


mpd can apparently connect directly to a smb or nfs server. In my
config I mount the nfs director using /etc/fstab. Partly as I did not
realise mpd could connect to the server directly.


Which all reminds me - is there any way of storing tag data outside the
music file ? It's irritating, and slow, having to back up music files in
their entirety when I've only made changes to the tag data.


Don't know. Playlist per album?

  #7 (permalink)  
Old June 30th 16, 12:04 AM posted to uk.rec.audio
Richard Robinson
external usenet poster
 
Posts: 102
Default Audio over wifi

Peter Chant said:
On 06/27/2016 01:12 PM, Richard Robinson wrote:
Peter Chant said:
On 06/23/2016 12:40 PM, Bob Latham wrote:

For your raspberry pi code Google OpenHome UPnP.

I'm getting good results with MPD in the Pi with the music on another
machice as a file server. OK, sometimes FLAC tracks are a little slow
to start but generally it is good.


Yes, that's looking like my next step. ...


! I do believe I have it working. And, yes, pull does the job where push didn't.

How does accessing the remote disk work, do you need NFS/Samba, somthing
like that ? I've never needed anything like that before (it's not a problem,
I can do Geek when I have to).


mpd can apparently connect directly to a smb or nfs server. In my
config I mount the nfs director using /etc/fstab. Partly as I did not
realise mpd could connect to the server directly.


I dunno. I did set up nfs, it was so little hassle I don't even know if it
was necessary or not. Fiddling about with alsa/pulseaudio configuration was
nastier, as &^%$! always.

Thanks.

--
Richard Robinson
"The whole plan hinged upon the natural curiosity of potatoes" - S. Lem

My email address is at http://www.qualmograph.org.uk/contact.html
 



« Push vs pull | test »

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:12 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.SEO by vBSEO 3.0.0
Copyright ©2004-2025 Audio Banter.
The comments are property of their posters.