-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running on RPI4 / ARM #1
Comments
Looks like you made an error while compiling / statically linking the project.
What didn't work when using the Edit: Just saw that you used cmake. That means you do not need to link anything, since I compile the sources directly. It is working fine on my macOS machine using the pip install version (which executes cmake internally). Either this error has something to do with the ARM architecture or you are missing some necessary cmake flags. I do not have a Raspberry Pi 4, so I can sadly not test this. Would be good to know if libplist is working on a raspberry pi. |
you need to update .gitmodules (see my commit request that was also merged to philippe44/RAOP-Player repo). Once I fixed this and run the Have in mind that to get philippe44/RAOP-Player to compile on the PI, I needed to add the
Happy to help as I'm trying to build AirVinyl - always-on RPI line-in to AirPlay for my record player :-) Here is the error:
|
You can see the error here:
You can fix this by installing
After you have |
you were right, I can confirm it complied on RPI 4 with the pip install |
to pair do you need to pass the -pin arg? it's asking for a file |
It is no asking for a file. It is asking for a pin code. Which Apple TV are you trying to pair ? This is only necessary for Apple TV 4 and up running TV OS 10 or greater. If you pass the pin flag and no other flags your Apple TV should display a four digit pin code. If you type that pin code in the terminal window and press enter you will get a secret. Store that secret somewhere. Now each time you try to stream something to the apple tv you can just use the secret ( |
it's not for an AppleTV it's for a speaker - what is the way to get the secret back from a speaker ? |
Which speaker? There are two possibilities:
|
Raop-Player did work on 2 speakers in my house and stopped yesterday, maybe it's something apple added? speakers are:Wiim Mini Airplay Streamer and Devialet Phantom |
root@phono:~# ./raop_player.py -v 20 -p 7000 192.168.4.13 file_example_WAV_10MG.wav |
this is from raop_play root@phono:~# raop_play -p 7000 -v 20 192.168.4.12 file_example_WAV_10MG.wav |
confirmed - it will work only when adding to the home app.
|
This is strange, since this is just a wrapper around RAOP-Player. I'm calling exactly the same code to stream the file. Could you wait a little bit longer before interrupting the process ? The output only shows me, that my fork is connecting just fine and then it is killed by the user. |
root@phono:~# ./raop_player.py -v 40 -p 7000 192.168.4.13 file_example_WAV_10MG.wav it timed out, also it does connect to the other speaker (once it's added to the home app) but the sound is jittered (while with the raop_player it works well) |
It might very well be the case that the Raspberry Pi is the problem. The latency between sending the chunks must be small. If your processor is too slow, then the communication overhead between the Python and the underlying C-Code is too big, meaning that the data is send too slowly. The only option to prevent this, is to optimise the for-loop which is sending the chunks. This is very hard to optimize in Python. It is much easier to just write the loop in C-Code. There is nothing I will do about this, since this is not a problem with the library, but instead a problem with the example program I wrote. The example program is just a showcase and not intended to be used as a ready to go solution for all platforms. You got three options here:
|
Hey,
I managed to compile your RAOP-Player on Rasberry PI 4 by using cmake as the pip / setup.py didn't work on the PI.
I got the library compiled under
libraop.cpython-39-arm-linux-gnueabihf.so
, it was moved to the player folder under the nameibraop.so
When I try to run the raop_play.py I get the below error:
Any idea why?
btw - you need to update the .gitmodules
have a look https://github.com/nadigo/RAOP-Player-bindings/blob/master/.gitmodules
The text was updated successfully, but these errors were encountered: