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
Sound skips and rattles heavily from Windows to Linux (xrdp) or Windows Server (RDS) #5514
Comments
|
@vscfreire just tried the current nightly build https://ci.freerdp.com/job/freerdp-nightly-windows/arch=win64,label=vs2013/lastSuccessfulBuild/artifact/build/Release/wfreerdp.exe against various servers (rds and direct connections) and did not experience rattling or similar. |
@vscfreire Ok, did finally manage to reproduce, it was the missing latency estimation. |
@akallabeth Connecting to either Windows or Linux server seems much better now (with PCM). In both cases, sometimes (~20%) the sound starts perfect but after a minute or more the skips and rattles come back. If I stop and start the clip/video again it appears to fix it. There's another situation, if I omit the sound format parameter to force PCM, the connection to Windows Servers 2016 (from a Windows 10) the FreeRDP client states: Opening device with format WAVE_FORMAT_AAC_MS [backend WAVE_FORMAT_PCM]. In this case I get sound distortion/rattle from the beginning (but no skipping). In terms of environment, fairly standard Windows 10 (1903) on the client side, and a low latency, high throughput WAN connection to the server side ( Linux xrdp 0.9.10 or Windows Server RDS 2016). The WAN connection it's over IPSEC with 0% packet loss and 6 ms average rtt. |
|
|
@vscfreire ok. some notes:
|
@akallabeth With Windows, I'm using the ffmpeg backend, but just tried using faad in Linux and the sound works great connecting to Windows Server, even with induced latency and drops. Also tried PCM in Linux and it's also really resilient to network conditions. |
@vscfreire ok, so it is the |
@vscfreire Ok, is the current nightly working? Have run it a few times and the problems seem fixed. |
Can not reproduce with nightly build https://ci.freerdp.com/job/freerdp-nightly-windows/656/ |
Sorry for the late reply. I'm still getting problems, when using the latest nightly build (656) on Windows (x86_64). Tried the latest nightly on Linux (connecting from the same network to the same Windows Server 2016 machine) and the sound is just perfect, spot-on. Is there any additional info I can provide to help debug the issue? |
Just to complement what I said regarding the latest nightly (running on Windows)... Sometimes I connect and the sound is perfectly synced and with no skipping/rattling. But if I disconnect and reconnect to the same session, the sound is now skipping/rattling again. And it stays that way until I disconnect. Sometimes this reconnect makes things worse, sometimes it improves a bit (and sometimes it becomes perfect). |
In the latest build (Nightly build 710, win32, vs2013) the sound is always skipping. The last time I tested, some times it worked but in the latest build, I can't get proper sound anytime. (windows 10 desktop to windows 2016 server) |
Ok, #5818 should (finally) fix this one. please confirm |
@akallabeth Great work! No skips, no rattles, no crashes. This is based only on an hour test but I think you can close this issue. Thanks for your support. |
@vscfreire good news, finally :) |
Using the latest FreeRDP 2 builds (build 648) and connecting from Windows to either Linux (xrdp 0.9.10) or Windows Server (RDS 2016) results in sound skipping and rattling frequently. This problem is present for some time now.
I’m using the following command for the connection with the Windows and Linux server:
wfreerdp.exe /v:hostname /cert-tofu /u:Administrator /p:password /sound:format:0x0001 /w:1000 /h:600
Several optimization tactics, like sound formats, quality, latency and network detection were used with very limited success, usually only delaying the sound skipping and rattling.
Also, using sound formats (e.g. WAVE_FORMAT_MPEGLAYER3 0x0055) other than PCM (0x0001) while connecting to Linux (xrdp 0.9.10) server will result in client immediately exiting when playing any kind of sound with [com.freerdp.client.common] - Network disconnect. Debugging shows “rdpsnd_virtual_channel_client_thread reported an error. Error was 13”
The text was updated successfully, but these errors were encountered: