Comments (6)
Is this really an issue with raspberry pi? I read that the raspberry pi has FPU and raspbian supports it.
I definitly have a performance problem. But I wonder if it's because of a lame encoder that has not been compiled with FPU support.
from nicercast.
Looks like you're on to something. Seems that the node library is compiled with the arm_nofpu
optimization (thereby using soft floats..), but could use the fpu if compiled with generic_fpu
. (see http://www.raspberrypi.org/forums/viewtopic.php?t=10656&p=150921).
See node-lame
: https://github.com/TooTallNate/node-lame/blob/391ec00c8e25f2b86de338341184e8cd12abb5e8/deps/mpg123/mpg123.gyp#L60
Do you have experience with node-gyp? Could we add another target specifically for the rpi in node-lame?
Also see configure options:
https://github.com/TooTallNate/node-lame/blob/master/deps/mpg123/configure#L14046
https://github.com/TooTallNate/node-lame/blob/391ec00c8e25f2b86de338341184e8cd12abb5e8/deps/mpg123/mpg123.gyp#L108
from nicercast.
No I didn't work with gyp yet. It should be possible to check for different arm versions there, like armv6 in the raspberry pi's case. The problem might be that some armv6 CPUs might miss an FPU unit. I could not find information on if that's possible. Maybe there is an architecture identifier like "armv6-vfp" to match against, which would make defining a target easier?
from nicercast.
from nicercast.
Have you considered NOT encoding the audio to MP3 at all? From what I understand the AirPlay codec is ALAC. The Sonos system can play ALAC 16/44.1 so perhaps this would be better for RPi to just pipe it straight out? I understand the bandwidth would be slightly more but it could create a stable platform for those not worried about the bandwidth. Perhaps I've missed something along the way so would be interested in your thoughts.
from nicercast.
Closing for now. Currently looking into direct ALAC support (stephen/nodetunes#1).
Another workaround here is to overclock the rpi (stephen/airsonos#42).
from nicercast.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nicercast.