Is there any way that I can continue to pass through commands from my IR remote to Kodi in the background while moonlight is running? See, I call a script from my remote.xml to control the volume on my AVR and this fails to work while moonlight is open. Thanks!
Kodi doesnāt work while moonlight is running. It is impossible for it to work, so you would have to use some external scripts, if those could work. Assuming youāre controlling it over CEC, scripts should work?
@smg04, have you had any luck looking further at the surround issue with versions after 126?
Just wanted to say I downgraded back to 126 and surround is absolutely spot on for me and the experience works really well so donāt know if itās just worth keeping whatever you did with the sound in this version the same in newer releases?
Iām getting some pretty consistent micro stutters using this implementation of moonlight-embedded.
Everything is hardwired of course.
I have a Steam Link hanging off the same network switch which gives a seemingly smoother experience using moonlight-qt.
Could this be an issue with the hardware decoder? Iāve tried a significant amount of troubleshooting and it just feels like the frame pacing is all over the place.
@jollybully I donāt think anything can be done about the microstuttering. The problem about moonlight-embedded is that it doesnāt have any way to control the displaying of frames (every frame received gets instantly sent to the decoder). There is no mechanism to smoothen out any drops in frameratesā¦
That said, I can send you an alternative binary that might help with the micro-stutters a little bit, but itās not guaranteedā¦
@Adam86 I will be reverting back to the old method and keep it like that until a better solution is found.
Test this version. Iāve rolled back to the old surround solution and added basic PTS support. It might aid with stuttering, but I donāt think it will work. This should be an official update after it gets tested.
@smg04, just testing now while Iāve got half an hour.
Initial impressions are that the surround sound is working just the same as the 126 release which is great
Will see how performance is but I was already happy with how mine ran compared to using Android Moonlight on my old S912
EDIT: I seemed to get off to a good start, I left Moonlight streaming the desktop for a while and then launched a game, as soon as the game loaded up my Moonlight session locked up and now whenever I start the session again I get a blank screen. Habe rebooted my host as well as Kodi box but to no avail
Available for update in CoreELEC Nightly or GitHub (check out first post).
For anyone testing out surround sound, this version should have surround workingā¦
changelog:
ā [moonlight-embedded] Supply amlogic codec with packetsā PTS (noticed less stuttering)
first of all thanks for this addon it provides exactly what I am trying to achieve. I got it working pretty easily but the stream quality is quite bad.
If I raise the bitrate and resolution a black screen/freeze is happening pretty fast with the accompanying logfile entries:
Video decode buffer too small, 345361 > 307200
Video decode buffer too small, 342609 > 307200
Video decode buffer too small, 353617 > 307200
...
This starts to happen even at 1080p when going above ~35MBit at 120fps. And gets worse (happening sooner or even at stream start) with higher resolutions.
Pretty early in this thread there was a discussion about this error, were any substantial fixes made since then?
I had issues with the initial setup with the message Pairing failed or already paired!, even with the hostname specified manually. It looks like the add-on removes all the error output from moonlight in the event of an error, so you canāt see whatās going on.
After having lots of initial connection problems, I connected from a different Moonlight client in an attempt to debug ā which worked fine.
Pairing from the command-line gave me a hint as to what was up:
# /storage/.kodi/addons/script.luna/bin/moonlight pair
Searching for server...
Connect to ${IP}...
Please enter the following PIN on the target PC: 1234
Failed to pair to server: The computer is currently in a game. You must close the game before pairing
I donāt know what state it was in before trying that, but it seems like me testing left things in a worse state.
Turning āShield Streamingā in the āGeForce Experienceā software off and on again allowed pairing to complete at the command line:
# /storage/.kodi/addons/script.luna/bin/moonlight pair
Searching for server...
Connect to ${IP}...
Please enter the following PIN on the target PC: 1234
Succesfully paired
After that, the add-on worked fine.
Keyboard and mouse control was intermittent, but connecting those directly to the host PC works fine (ie: Luna/moonlight are exclusively used for display/audio). The downside is that whatever game youāre playing needs to explicitly support NVidiaās remote play system to give you the option there to disconnect, otherwise you need to killall moonlight over SSH, or reboot the box to quit.
@smg04, Iāve just tried the 130 version again and still getting this black screen issue.
Here are the logs:
Moonlight Embedded 2.5.1 (AML;ALSA;PULSE;EMBEDDED)
Connect to R730...
Request https://R730:47984/serverinfo?uniqueid=ec23aeb1a18fc00&uuid=952779c6-bef0-4a10-9e95-6bac61134e46
Response:
<?xml version="1.0" encoding="UTF-16"?><root protocol_version="0.1" query="serverinfo" status_code="200" status_message="OK"><AuthenticationType>1</AuthenticationType><ConnectionState></ConnectionState><CurrentClient>0</CurrentClient><GfeVersion>3.23.0.74</GfeVersion><GsVersion>gs_04_31_29971906</GsVersion><HttpsPort>47984</HttpsPort><LocalIP>192.168.0.131</LocalIP><LocalIPs><Address>192.168.0.131</Address></LocalIPs><LoginState>2</LoginState><MaxLumaPixelsH264>737235008</MaxLumaPixelsH264><MaxLumaPixelsHEVC>589622848</MaxLumaPixelsHEVC><Mode>0</Mode><PairStatus>1</PairStatus><ServerCapability>3895</ServerCapability><ServerCodecModeSupport>3843</ServerCodecModeSupport><ServerColorSpaceSupport>2</ServerColorSpaceSupport><SupportedDisplayMode><DisplayMode><Height>2160</Height><RefreshRate>60</RefreshRate><Width>3840</Width></DisplayMode><DisplayMode><Height>2160</Height><RefreshRate>30</RefreshRate><Width>3840</Width></DisplayMode><DisplayMode><Height>1080</Height><RefreshRate>60</RefreshRate><Width>1920</Width></DisplayMode><DisplayMode><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></DisplayMode><DisplayMode><Height>720</Height><RefreshRate>60</RefreshRate><Width>1280</Width></DisplayMode><DisplayMode><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></DisplayMode></SupportedDisplayMode><accountId>7B6F6FA0136D4826D6C27366DBA478184325A06700206DDF54DBEEFFE867059C</accountId><appversion>7.1.431.0</appversion><currentgame>0</currentgame><gamelistid>8714af3a257c0fbb34cb122d4922cae2</gamelistid><gputype>NVIDIA GeForce GTX 1060 6GB</gputype><hostname>R730</hostname><mac>44:A8:42:4A:D7:7B</mac><numofapps>0</numofapps><resyncSuccessful>0</resyncSuccessful><state>MJOLNIR_STATE_SERVER_AVAILABLE</state><uniqueid>cc5b5457-e8e3-48b6-8c3b-33d18ec98ad1</uniqueid></root>
GPU: NVIDIA GeForce GTX 1060 6GB, GFE: 3.23.0.74 (gs_04_31_29971906, 7.1.431.0)
Platform AMLogic VPU
Loading mappingfile gamecontrollerdb.txt
Not mapping Media Center Ed. eHome Infrared Remote Transceiver (0471:2093) as a gamepad
Detected Xbox 360 Wireless Receiver (XBOX) (030000005e040000a102000007010000) on /dev/input/event6 as X360 Wireless Controller
Not mapping gpio_keypad as a gamepad
Not mapping aml_vkeypad as a gamepad
Not mapping vad_keypad as a gamepad
Not mapping cec_input as a gamepad
Not mapping VNCServer SimKey as a gamepad
Request https://R730:47984/applist?uniqueid=ec23aeb1a18fc00&uuid=34fba422-c5f2-4e16-8964-b8babdeb9543
Response:
<?xml version="1.0" encoding="UTF-16"?><root protocol_version="0.1" query="applist" status_code="200" status_message="OK"><App><AppInstallPath>D:\Games\Shadow of the Tomb Raider\</AppInstallPath><AppTitle>Shadow of the Tomb Raider</AppTitle><CmsId>100201611</CmsId><Distributor>Steam</Distributor><ID>114918865</ID><IsAppCollectorGame>0</IsAppCollectorGame><IsHdrSupported>1</IsHdrSupported><MaxControllersForSingleSession>1</MaxControllersForSingleSession><ShortName>shadow_of_the_tomb_raider</ShortName><SupportedSOPS><SOPS><Height>1080</Height><RefreshRate>60</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>2160</Height><RefreshRate>30</RefreshRate><Width>3840</Width></SOPS><SOPS><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>720</Height><RefreshRate>60</RefreshRate><Width>1280</Width></SOPS><SOPS><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></SOPS></SupportedSOPS><UniqueId>20741001</UniqueId><simulateControllers>0</simulateControllers></App><App><AppInstallPath>D:\Games\Fallout 4\</AppInstallPath><AppTitle>Fallout 4 Far Harbor</AppTitle><CmsId>18543611</CmsId><Distributor>Steam</Distributor><ID>180350979</ID><IsAppCollectorGame>0</IsAppCollectorGame><IsHdrSupported>0</IsHdrSupported><MaxControllersForSingleSession>1</MaxControllersForSingleSession><ShortName>fallout_4_far_harbor</ShortName><SupportedSOPS><SOPS><Height>1080</Height><RefreshRate>60</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>2160</Height><RefreshRate>30</RefreshRate><Width>3840</Width></SOPS><SOPS><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>720</Height><RefreshRate>60</RefreshRate><Width>1280</Width></SOPS><SOPS><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></SOPS></SupportedSOPS><UniqueId>18543611</UniqueId><simulateControllers>0</simulateControllers></App><App><AppInstallPath>D:\Games\Microsoft Studios\Quantum Break\</AppInstallPath><AppTitle>Quantum Break</AppTitle><CmsId>18113511</CmsId><Distributor>Steam</Distributor><ID>354615321</ID><IsAppCollectorGame>0</IsAppCollectorGame><IsHdrSupported>0</IsHdrSupported><MaxControllersForSingleSession>1</MaxControllersForSingleSession><ShortName>quantum_break_steam</ShortName><SupportedSOPS><SOPS><Height>1080</Height><RefreshRate>60</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>720</Height><RefreshRate>60</RefreshRate><Width>1280</Width></SOPS><SOPS><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></SOPS></SupportedSOPS><UniqueId>16075001</UniqueId><simulateControllers>0</simulateControllers></App><App><AppInstallPath>C:\Program Files (x86)\Steam\</AppInstallPath><AppTitle>Steam</AppTitle><CmsId>100021711</CmsId><Distributor>Steam</Distributor><ID>1088017781</ID><IsAppCollectorGame>0</IsAppCollectorGame><IsHdrSupported>1</IsHdrSupported><MaxControllersForSingleSession>1</MaxControllersForSingleSession><ShortName>steam</ShortName><SupportedSOPS><SOPS><Height>2160</Height><RefreshRate>60</RefreshRate><Width>3840</Width></SOPS><SOPS><Height>1080</Height><RefreshRate>60</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>720</Height><RefreshRate>60</RefreshRate><Width>1280</Width></SOPS><SOPS><Height>2160</Height><RefreshRate>30</RefreshRate><Width>3840</Width></SOPS><SOPS><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></SOPS></SupportedSOPS><UniqueId>20225001</UniqueId><simulateControllers>0</simulateControllers></App><App><AppInstallPath>D:\Games\Cyberpunk 2077\</AppInstallPath><AppTitle>Cyberpunk 2077</AppTitle><CmsId>101606111</CmsId><Distributor>Steam</Distributor><ID>1088352973</ID><IsAppCollectorGame>0</IsAppCollectorGame><IsHdrSupported>0</IsHdrSupported><MaxControllersForSingleSession>1</MaxControllersForSingleSession><ShortName>cyberpunk_2077</ShortName><SupportedSOPS><SOPS><Height>1080</Height><RefreshRate>60</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>2160</Height><RefreshRate>30</RefreshRate><Width>3840</Width></SOPS><SOPS><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>720</Height><RefreshRate>60</RefreshRate><Width>1280</Width></SOPS><SOPS><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></SOPS><SOPS><Height>2160</Height><RefreshRate>60</RefreshRate><Width>3840</Width></SOPS></SupportedSOPS><UniqueId>101606111</UniqueId><simulateControllers>0</simulateControllers></App><App><AppInstallPath>D:\Games\Fallout 4\</AppInstallPath><AppTitle>Fallout 4</AppTitle><CmsId>17932211</CmsId><Distributor>Steam</Distributor><ID>1429557126</ID><IsAppCollectorGame>0</IsAppCollectorGame><IsHdrSupported>0</IsHdrSupported><MaxControllersForSingleSession>1</MaxControllersForSingleSession><ShortName>fallout_4</ShortName><SupportedSOPS><SOPS><Height>2160</Height><RefreshRate>30</RefreshRate><Width>3840</Width></SOPS><SOPS><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></SOPS></SupportedSOPS><UniqueId>12456001</UniqueId><simulateControllers>0</simulateControllers></App><App><AppInstallPath>D:\Games\Epic Games\GTAV\</AppInstallPath><AppTitle>Grand Theft Auto V</AppTitle><CmsId>11022111</CmsId><Distributor>TGP</Distributor><ID>1667859416</ID><IsAppCollectorGame>0</IsAppCollectorGame><IsHdrSupported>0</IsHdrSupported><MaxControllersForSingleSession>1</MaxControllersForSingleSession><ShortName>grand_theft_auto_v</ShortName><SupportedSOPS><SOPS><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>1080</Height><RefreshRate>60</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>2160</Height><RefreshRate>30</RefreshRate><Width>3840</Width></SOPS><SOPS><Height>720</Height><RefreshRate>60</RefreshRate><Width>1280</Width></SOPS><SOPS><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></SOPS><SOPS><Height>2160</Height><RefreshRate>60</RefreshRate><Width>3840</Width></SOPS></SupportedSOPS><UniqueId>0</UniqueId><simulateControllers>0</simulateControllers></App><App><AppInstallPath>C:\Windows\System32\</AppInstallPath><AppTitle>mstsc.exe</AppTitle><CmsId></CmsId><Distributor></Distributor><ID>9724336</ID><IsAppCollectorGame>1</IsAppCollectorGame><IsHdrSupported>0</IsHdrSupported><MaxControllersForSingleSession>1</MaxControllersForSingleSession><ShortName>mstsc_exe</ShortName><SupportedSOPS></SupportedSOPS><UniqueId>0</UniqueId><simulateControllers>0</simulateControllers></App></root>
Request https://R730:47984/launch?uniqueid=ec23aeb1a18fc00&uuid=9b21d0f3-967f-4ca5-9613-cda9416099c0&appid=9724336&mode=1920x1080x60&additionalStates=1&sops=0&rikey=83690cdb040f3f55029be1215c25b6be&rikeyid=1476587427&localAudioPlayMode=0&surroundAudioInfo=4128774&remoteControllersBitmap=1&gcmap=1
Response:
<?xml version="1.0" encoding="UTF-16"?><root protocol_version="0.1" query="launch" status_code="200" status_message="OK"><DisplayHeight>1080</DisplayHeight><DisplayWidth>1920</DisplayWidth><EnhancedStreamMode>1</EnhancedStreamMode><HdrMode>0</HdrMode><RefreshRate>60</RefreshRate><avkey>ok</avkey><gamesession>f9afc963cffcbcd8182baba6d3b2d1fe</gamesession><rikey>ok</rikey><sessionUrl0>rtsp://192.168.0.131:48010</sessionUrl0><wssignaling>0</wssignaling></root>
Stream 1920 x 1080, 60 fps, 100000 kbps
RTSP port: 48010
Initializing platform...done
Resolving host name...done
Initializing audio streacodec_init amstream version : 2.0
EVIOCGRAB failed with error 16
m...done
Starting RTSP handshake...Audio port: 48000
Video port: 47998
Control port: 47999
done
Initializing control stream...done
Initializing video stream...done
Initializing input stream...done
Starting control stream...done
Starting video stream...done
Starting audio stream...Alsa error code -16
Audio stream start failed: -1
Stopping video stream...No video traffic was ever received from the host!
ENet wait interrupted
Control stream connection failed: -1
Received first video packet after 0 ms
done
Stopping control stream...ENet peer acknowledged disconnection
done
Cleaning up input stream...done
Cleaning up video stream...done
Cleaning up control stream...done
Cleaning up audio stream...done
Cleaning up platform...done
Assigned Xbox 360 Wireless Receiver (XBOX) as player 1
Your audio backend is used by most likely Kodi. It could also be addons such as librespot etc. You should try out other audio backends or myb remove exotic audio features (surround?)
@micolous Could you please try and check if you have your kodi.log that time you tried to pair but it didnāt show what the error was?
@derTyp script.luna-1.1.0-matrix.131.zip (2.6 MB)
Try this one. Increased video buffer (even though I donāt expect itās gonna be that much better performance wise? seems like really high bitrate?)
@smg04 the 126 version works fine though and I thought youād reverted the solution for the surround so it was the same on the newer builds?
I can double check my settings though and see if anything else works as I do select the audio device manually within the moonlight config.
EDIT:
Have played around with the settings again this morning, disabling surround etc and back to sysdefault for audio device and I am still having the same problem.
Seems a really mixed bag, can either get straight to the Desktop but as soon as I launch a game the moonlight sesion will freeze up whilst everything runs fine on the client side.
These are some additional logs:
Moonlight Embedded 2.5.1 (AML;ALSA;PULSE;EMBEDDED)
Connect to R730...
Request https://R730:47984/serverinfo?uniqueid=ec23aeb1a18fc00&uuid=ff3b9205-9ce8-4a03-b2ce-16f16e65c72e
Response:
<?xml version="1.0" encoding="UTF-16"?><root protocol_version="0.1" query="serverinfo" status_code="200" status_message="OK"><AuthenticationType>1</AuthenticationType><ConnectionState></ConnectionState><CurrentClient>0</CurrentClient><GfeVersion>3.23.0.74</GfeVersion><GsVersion>gs_04_31_29971906</GsVersion><HttpsPort>47984</HttpsPort><LocalIP>192.168.0.131</LocalIP><LocalIPs><Address>192.168.0.131</Address></LocalIPs><LoginState>2</LoginState><MaxLumaPixelsH264>737235008</MaxLumaPixelsH264><MaxLumaPixelsHEVC>589622848</MaxLumaPixelsHEVC><Mode>0</Mode><PairStatus>1</PairStatus><ServerCapability>3895</ServerCapability><ServerCodecModeSupport>3843</ServerCodecModeSupport><ServerColorSpaceSupport>2</ServerColorSpaceSupport><SupportedDisplayMode><DisplayMode><Height>2160</Height><RefreshRate>60</RefreshRate><Width>3840</Width></DisplayMode><DisplayMode><Height>2160</Height><RefreshRate>30</RefreshRate><Width>3840</Width></DisplayMode><DisplayMode><Height>1080</Height><RefreshRate>60</RefreshRate><Width>1920</Width></DisplayMode><DisplayMode><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></DisplayMode><DisplayMode><Height>720</Height><RefreshRate>60</RefreshRate><Width>1280</Width></DisplayMode><DisplayMode><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></DisplayMode></SupportedDisplayMode><accountId>7B6F6FA0136D4826D6C27366DBA478184325A06700206DDF54DBEEFFE867059C</accountId><appversion>7.1.431.0</appversion><currentgame>0</currentgame><gamelistid>8714af3a257c0fbb34cb122d4922cae2</gamelistid><gputype>NVIDIA GeForce GTX 1060 6GB</gputype><hostname>R730</hostname><mac>44:A8:42:4A:D7:7B</mac><numofapps>0</numofapps><resyncSuccessful>0</resyncSuccessful><state>MJOLNIR_STATE_SERVER_AVAILABLE</state><uniqueid>cc5b5457-e8e3-48b6-8c3b-33d18ec98ad1</uniqueid></root>
GPU: NVIDIA GeForce GTX 1060 6GB, GFE: 3.23.0.74 (gs_04_31_29971906, 7.1.431.0)
Platform AMLogic VPU
Loading mappingfile gamecontrollerdb.txt
Not mapping Media Center Ed. eHome Infrared Remote Transceiver (0471:2093) as a gamepad
Detected Xbox 360 Wireless Receiver (XBOX) (030000005e040000a102000007010000) on /dev/input/event4 as X360 Wireless Controller
Not mapping gpio_keypad as a gamepad
Not mapping aml_vkeypad as a gamepad
Not mapping vad_keypad as a gamepad
Not mapping cec_input as a gamepad
Not mapping VNCServer SimKey as a gamepad
Request https://R730:47984/applist?uniqueid=ec23aeb1a18fc00&uuid=89d7fb8e-4e26-4333-9077-a4b263a26343
Response:
<?xml version="1.0" encoding="UTF-16"?><root protocol_version="0.1" query="applist" status_code="200" status_message="OK"><App><AppInstallPath>D:\Games\Shadow of the Tomb Raider\</AppInstallPath><AppTitle>Shadow of the Tomb Raider</AppTitle><CmsId>100201611</CmsId><Distributor>Steam</Distributor><ID>114918865</ID><IsAppCollectorGame>0</IsAppCollectorGame><IsHdrSupported>1</IsHdrSupported><MaxControllersForSingleSession>1</MaxControllersForSingleSession><ShortName>shadow_of_the_tomb_raider</ShortName><SupportedSOPS><SOPS><Height>1080</Height><RefreshRate>60</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>2160</Height><RefreshRate>30</RefreshRate><Width>3840</Width></SOPS><SOPS><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>720</Height><RefreshRate>60</RefreshRate><Width>1280</Width></SOPS><SOPS><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></SOPS></SupportedSOPS><UniqueId>20741001</UniqueId><simulateControllers>0</simulateControllers></App><App><AppInstallPath>D:\Games\Fallout 4\</AppInstallPath><AppTitle>Fallout 4 Far Harbor</AppTitle><CmsId>18543611</CmsId><Distributor>Steam</Distributor><ID>180350979</ID><IsAppCollectorGame>0</IsAppCollectorGame><IsHdrSupported>0</IsHdrSupported><MaxControllersForSingleSession>1</MaxControllersForSingleSession><ShortName>fallout_4_far_harbor</ShortName><SupportedSOPS><SOPS><Height>1080</Height><RefreshRate>60</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>2160</Height><RefreshRate>30</RefreshRate><Width>3840</Width></SOPS><SOPS><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>720</Height><RefreshRate>60</RefreshRate><Width>1280</Width></SOPS><SOPS><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></SOPS></SupportedSOPS><UniqueId>18543611</UniqueId><simulateControllers>0</simulateControllers></App><App><AppInstallPath>D:\Games\Microsoft Studios\Quantum Break\</AppInstallPath><AppTitle>Quantum Break</AppTitle><CmsId>18113511</CmsId><Distributor>Steam</Distributor><ID>354615321</ID><IsAppCollectorGame>0</IsAppCollectorGame><IsHdrSupported>0</IsHdrSupported><MaxControllersForSingleSession>1</MaxControllersForSingleSession><ShortName>quantum_break_steam</ShortName><SupportedSOPS><SOPS><Height>1080</Height><RefreshRate>60</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>720</Height><RefreshRate>60</RefreshRate><Width>1280</Width></SOPS><SOPS><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></SOPS></SupportedSOPS><UniqueId>16075001</UniqueId><simulateControllers>0</simulateControllers></App><App><AppInstallPath>C:\Program Files (x86)\Steam\</AppInstallPath><AppTitle>Steam</AppTitle><CmsId>100021711</CmsId><Distributor>Steam</Distributor><ID>1088017781</ID><IsAppCollectorGame>0</IsAppCollectorGame><IsHdrSupported>1</IsHdrSupported><MaxControllersForSingleSession>1</MaxControllersForSingleSession><ShortName>steam</ShortName><SupportedSOPS><SOPS><Height>2160</Height><RefreshRate>60</RefreshRate><Width>3840</Width></SOPS><SOPS><Height>1080</Height><RefreshRate>60</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>720</Height><RefreshRate>60</RefreshRate><Width>1280</Width></SOPS><SOPS><Height>2160</Height><RefreshRate>30</RefreshRate><Width>3840</Width></SOPS><SOPS><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></SOPS></SupportedSOPS><UniqueId>20225001</UniqueId><simulateControllers>0</simulateControllers></App><App><AppInstallPath>D:\Games\Cyberpunk 2077\</AppInstallPath><AppTitle>Cyberpunk 2077</AppTitle><CmsId>101606111</CmsId><Distributor>Steam</Distributor><ID>1088352973</ID><IsAppCollectorGame>0</IsAppCollectorGame><IsHdrSupported>0</IsHdrSupported><MaxControllersForSingleSession>1</MaxControllersForSingleSession><ShortName>cyberpunk_2077</ShortName><SupportedSOPS><SOPS><Height>1080</Height><RefreshRate>60</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>2160</Height><RefreshRate>30</RefreshRate><Width>3840</Width></SOPS><SOPS><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>720</Height><RefreshRate>60</RefreshRate><Width>1280</Width></SOPS><SOPS><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></SOPS><SOPS><Height>2160</Height><RefreshRate>60</RefreshRate><Width>3840</Width></SOPS></SupportedSOPS><UniqueId>101606111</UniqueId><simulateControllers>0</simulateControllers></App><App><AppInstallPath>D:\Games\Fallout 4\</AppInstallPath><AppTitle>Fallout 4</AppTitle><CmsId>17932211</CmsId><Distributor>Steam</Distributor><ID>1429557126</ID><IsAppCollectorGame>0</IsAppCollectorGame><IsHdrSupported>0</IsHdrSupported><MaxControllersForSingleSession>1</MaxControllersForSingleSession><ShortName>fallout_4</ShortName><SupportedSOPS><SOPS><Height>2160</Height><RefreshRate>30</RefreshRate><Width>3840</Width></SOPS><SOPS><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></SOPS></SupportedSOPS><UniqueId>12456001</UniqueId><simulateControllers>0</simulateControllers></App><App><AppInstallPath>D:\Games\Epic Games\GTAV\</AppInstallPath><AppTitle>Grand Theft Auto V</AppTitle><CmsId>11022111</CmsId><Distributor>TGP</Distributor><ID>1667859416</ID><IsAppCollectorGame>0</IsAppCollectorGame><IsHdrSupported>0</IsHdrSupported><MaxControllersForSingleSession>1</MaxControllersForSingleSession><ShortName>grand_theft_auto_v</ShortName><SupportedSOPS><SOPS><Height>1080</Height><RefreshRate>30</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>1080</Height><RefreshRate>60</RefreshRate><Width>1920</Width></SOPS><SOPS><Height>2160</Height><RefreshRate>30</RefreshRate><Width>3840</Width></SOPS><SOPS><Height>720</Height><RefreshRate>60</RefreshRate><Width>1280</Width></SOPS><SOPS><Height>720</Height><RefreshRate>30</RefreshRate><Width>1280</Width></SOPS><SOPS><Height>2160</Height><RefreshRate>60</RefreshRate><Width>3840</Width></SOPS></SupportedSOPS><UniqueId>0</UniqueId><simulateControllers>0</simulateControllers></App><App><AppInstallPath>C:\Windows\System32\</AppInstallPath><AppTitle>mstsc.exe</AppTitle><CmsId></CmsId><Distributor></Distributor><ID>9724336</ID><IsAppCollectorGame>1</IsAppCollectorGame><IsHdrSupported>0</IsHdrSupported><MaxControllersForSingleSession>1</MaxControllersForSingleSession><ShortName>mstsc_exe</ShortName><SupportedSOPS></SupportedSOPS><UniqueId>0</UniqueId><simulateControllers>0</simulateControllers></App></root>
Request https://R730:47984/launch?uniqueid=ec23aeb1a18fc00&uuid=49ef5cfd-232f-43a4-9679-cb42d6a6d19b&appid=9724336&mode=1920x1080x60&additionalStates=1&sops=0&rikey=fc999cdc5228abb87a0724aacf8be104&rikeyid=-560463006&localAudioPlayMode=0&surroundAudioInfo=196610&remoteControllersBitmap=1&gcmap=1
Response:
<?xml version="1.0" encoding="UTF-16"?><root protocol_version="0.1" query="launch" status_code="200" status_message="OK"><DisplayHeight>1080</DisplayHeight><DisplayWidth>1920</DisplayWidth><EnhancedStreamMode>1</EnhancedStreamMode><HdrMode>0</HdrMode><RefreshRate>60</RefreshRate><avkey>ok</avkey><gamesession>703a40eb8a69cca7643367703c5b3b14</gamesession><rikey>ok</rikey><sessionUrl0>rtsp://192.168.0.131:48010</sessionUrl0><wssignaling>0</wssignaling></root>
Stream 1920 x 1080, 60 fps, 100000 kbps
RTSP port: 48010
Initializing platform...done
Resolving host name...done
Initializing audio streamcodec_init amstream version : 2.0
EVIOCGRAB failed with error 16
...done
Starting RTSP handshake...Audio port: 48000
Video port: 47998
Control port: 47999
done
Initializing control stream...done
Initializing video stream...done
Initializing input stream...done
Starting control stream...done
Starting video stream...done
Starting audio stream...done
Starting input stream...done
Received first audio packet after 0 ms
Initial audio resync period: 1885 milliseconds
Assigned Xbox 360 Wireless Receiver (XBOX) as player 1
Received first video packet after 0 ms
Alsa shortm write, write 208 frames
Alsa shortm write, write 208 frames
Alsa shortm write, write 208 frames
Alsa shortm write, write 208 frames
Unrecoverable frame 753: 12+0=12 received < 52 needed
Network dropped 1 frame (frame 753)
Waiting for IDR frame
IDR frame request sent
Unrecoverable frame 774: 11+0=11 received < 43 needed
Network dropped 1 frame (frame 774)
Waiting for IDR frame
IDR frame request sent
Unrecoverable frame 912: 16+0=16 received < 26 needed
Network dropped 1 frame (frame 912)
Waiting for IDR frame
IDR
For me the few seconds that you can play a game it does feel like there is a lot more stutter than version 126 that I have been using up to press.
Did just try your 131 version too but it was the same. As soon as I roll back to 126 everything works as expected.
EDIT2: May have sorted it, fingers crossed, still testing, I disabled the āKeep Audio Device Aliveā within Kodi config. Itās the longest the game has been streaming for now without the stream locking up just like version 126.
Once the stream starts successfully, itās hard it will fail. Of course, itās useful to get logs if it crashes, but I donāt believe thereās anything to fix if you see video stream and hear the audio.