-
Notifications
You must be signed in to change notification settings - Fork 42
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
Does xrdp sink make any compression of audio stream? #105
Comments
It defaults no compression, we should look into maybe changing that. --enable-mp3lame for mp3 compression and --enable-fdkaac for aac compression. --enable-opus is there too but that is not part of the Microsoft standard and only works on client that have that special support. |
Thank you! |
You should be able to see it in the bandwidth being used. Uncompressed PCM stereo will use around 150kb/s (which is quite exactly the bandwidth usage I see right now when audio is playing, plus some 25kb/s for nothing really moving on the desktop). Using mp3 should be way lower (10-20% maybe, not sure how the quality and bitrate settings are controlled for xrdp-sink). You need some kind of network monitor to tell the bandwidth usage. "Conky" on the Linux side or "Net Speed Monitor" on the Windows side (it's a task bar widget) give very precise readings e.g.. |
Where is the place to set the "--enable-mp3lame" or "--enable-fdkaac" flags? Can you tell me? Thank you! o) |
You can use those parameters to configure xrdp. The compression is done in xrdp(chansrv). |
Hi jsorg71! o) I tried that and I got this message, so I assumed this is not the way to go: Thank you nonetheless, any help is appreciated! o) Full output looks like this:
|
@tbone2k-git - those flags are required to build xrdp, not the module. The data flow goes from the sink to chansrv (local connection) and from there via xrdp over the network (remote connection). The compression is not done in the sink as this would potentially hold up other sound server events. |
Hi Mat! o) Ok, interesting. So I need to compile the full xrdp "thing" somehow and find out how and where to deploy the compile/build artefacts? Man, I was hoping things get easier from some point on.. o) I have to research how to do all this.. Thank you for your kind help! o) |
Some hours later.. I need to uninstall the xrdp package before being able to compile / deploy it with make (I read in the docs). I currently use the packaged xrdp to work on the Linux desktop, I would need to switch to SSH then I guess, at least temporarily. I also had problems when installing all the dependencies, I used these links for help: Package "python-libxml2" does not exist on Debian12. I just swapped it for "python3-libxml2", but not sure how this works out in the later process. Finally.. just throwing in "--enable-mp3lame, --enable-fdkaac" is probably not enough to have a somewhat rich xrdp experience. There are a lot more options in the "./configure" script, I am not sure which one were enabled for the xrdp package I use right now, which was installed via "apt install". So, I have a lot of guess work to do, before ending up with something that has more features than before? Most of the options default to "no", I don't really understand why that is, is it because to use all the other options, the list of dependencies and additionally required packages would grow exponentially? I guess so? Would I be able to compile all the options available? Even more questions.. o) Thank you all, I think I have to give up at this point! o( Getting the audio compression to work, is icing on the case anyway I guess. I'm still happy I have any audio signal now at all. I spend days and had multiple attempts of compiling the xrdp sink "myself" (which means by following various existing documentations). For some reason it worked the last time I tried! o) Thank you all! I mean it! o) |
If anyone likes to encourage me to continue.. I maybe would! o) Unfortunately, compiling such a huge package and replacing it in the system is probably way over my head. I am a software dev for decades, but not very used to Linux and gcc (not used at all). So, things can get really nasty if I / we continue. o) |
If it's any encouragement, you have build the xrdp pulseaudio sink with is the most difficult. |
@tbone2k-git - a couple of bit more encouragement for you:-
Good luck with the desktop replacement project - it sounds interesting. |
I see it's totally unusable to listen audio. Every move of any window inerrupts sound!
May be I've built it with wrong flags?
The text was updated successfully, but these errors were encountered: