Skip to content
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

rpiplay performance #15

Open
zhanghaobb opened this issue Nov 17, 2021 · 9 comments
Open

rpiplay performance #15

zhanghaobb opened this issue Nov 17, 2021 · 9 comments

Comments

@zhanghaobb
Copy link

This is a great tool, easy to use and quick.
I have tried under 3B+ and 4, both of them had frame lost, I can watch the video but not quite smooth, how can I improve that?

@rahul-thakoor
Copy link
Owner

Hi, how are you deploying the app? Are you using the open fleet from balenaHub or are you maintaining your own fleet?

The open fleet uses the -l low-latency mode already as descirbed here. If you have your own fleet, you try to turn it off to see if it improves performance for you. You need to set the environment variable AIRPIPLAY_LATENCY_MODE to 0. See more docs here

@zhanghaobb
Copy link
Author

zhanghaobb commented Nov 18, 2021

Thank you for the quick response.
I simply used this link: https://hub.balena.io/gh_rahul_thakoor/balena-rpiplay download the image, and flash it.
I believe it is BalenaHub. I updated the variable of LATENCY, let me check the performance later.

Now I successfully deployed the release, there are some warnings here, is there any problem?
The program 'rpiplay' uses the Apple Bonjour compatibility layer of Avahi.
18.11.21 19:31:33 (+0800) rpiplay *** WARNING *** Please fix your application to use the native API of Avahi!
18.11.21 19:31:33 (+0800) rpiplay *** WARNING *** For more information see http://0pointer.de/blog/projects/avahi-compat.html

@rahul-thakoor
Copy link
Owner

No issues with those warnings

@zhanghaobb
Copy link
Author

I tested this for a few days, sometimes it works well, but after a while, video streaming became chopping with broken sound, I used pi-3B+ and pi-4, both are not ideal. I checked the CPU performance, mostly under 50% or at lower %, not sure if it is wifi performance, can we set it to 5.8G only?

@rahul-thakoor
Copy link
Owner

Wired connection is recommended for best performance

If you want to force to 5.8G only, you will have to modify the network connection file. Please see https://www.balena.io/docs/reference/OS/network/2.x/#wifi-setup for more info

You might find this helpful too https://forums.balena.io/t/force-networkmanager-to-connect-to-2-4ghz/282156/3

@zhanghaobb
Copy link
Author

I did use wired and Wifi. The same.

@rahul-thakoor
Copy link
Owner

can we set it to 5.8G only?

are you using the same SSID for both the 2.4 and 5 GHZ networks?

@zhanghaobb
Copy link
Author

Yes, using same SSID, this is convenient for compatibility. Let me try to disable 2.4G and see how it works.

@zhanghaobb
Copy link
Author

There is one more issue identified, when I was trying to airplay the 2160p video, it failed to cast, it is fine and understandable because of the speed, but after a few stumbles, the pi's audio started to output constant "white noise", it can reproduce every time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants