mariotaku / moonlight-tv

Lightweight NVIDIA GameStream Client, for LG webOS TV and embedded devices like Raspberry Pi
GNU General Public License v3.0
855 stars 31 forks source link

NDL seems to be broken on webOS 5 and 6 #115

Closed JM33 closed 2 years ago

JM33 commented 3 years ago

After v1.0.0 session fails to open with automatic decoder. Using settings I can switch from automatic to WebOS NDL and get the same result, failed to open video decoder. Netcast legacy option connects, but I get black screen and audio works. Using WebOS SMP streaming works fine, seems to be a little worse performance than before. But it still works, but on that setting only.

TV is LG C1, running WebOS v 03.20.16

I'm not sure how to get an error log for you, if you point me in the right direction I can try to get that also.

mariotaku commented 3 years ago

How does v0.9.6 work?

JM33 commented 3 years ago

I don't know how to install an old version. I have used webos dev manager, and the homebrew app to install, I do not see an option for older versions. I don't know what the last version I had installed was before 1.0.0, but that was the first version to have the error.

How can I install an older version?

mariotaku commented 3 years ago

You can download old version, and drag the IPK file into apps screen (or pick the file by clicking Install button)

https://github.com/mariotaku/moonlight-tv/releases/tag/v0.9.6

JM33 commented 3 years ago

Ok installed v0.9.6 and can confirm decoder is working. Webos NDL & SMP both work, automatic works also.

krnlpnck commented 3 years ago

Hello,

I have the same issue, for > 0.9.98 it's giving me some limelight 15 issue which is weird because until I update yesterday with the latest 1.0 version it worked with some 0.9.9x version.

I have LG OLED55A13LA Firmware version: 03.20.30 webOS version: 6.2.0

0.9.6 is working.

Thank you!

mariotaku commented 3 years ago

@krnlpnck Great that you did such investigation. So it means the problem starts with v0.9.98 right?

krnlpnck commented 3 years ago

Hello, Actually, all of the versions except 0.9.6 are not working anymore, I've tested all releases From 0.9.98 to the latest current version 1.1.0 give me Failed to open video decoder From 0.9.90 to 0.9.98 give me the error: Failed to start connection: Limelight returned 11

The weird thing is that until I updated with webos-dev-manager to the latest one I've remembered that some version 0.9.9x (not the old 0.9.6) worked fine, now when I've reinstalled all, they won't work anymore.

Another thing is that 2 days ago I've updated the firmware to 03.20.30, I guess I had the 03.20.16

And one more thing, but it's not related with this issue, is that when I open any game or mstsc.exe which it's not running through Steam app, it will not resize to fullscreen, I've attached a picture with mstsc.exe running Netflix (just for example), it's not fullscreen, there are that black margins on top and bottom.

Screenshot 2021-10-20 at 22 53 19

Thank you very much for this great port!

mariotaku commented 3 years ago

@krnlpnck When stream your desktop, your resolution will not be changed. You have to do it manually. For decoder incompatibility after v0.9.6 I will do some investigation.

mariotaku commented 3 years ago

Could you try if v1.1.2 works?

krnlpnck commented 3 years ago

Unfortunately it's not working, same error Failed to open video decoder

krnlpnck commented 3 years ago

Is there any way I can enable debug mode so I can give you more help? Or you can release a debug version here and I will install it

mariotaku commented 3 years ago

Is there any way I can enable debug mode so I can give you more help? Or you can release a debug version here and I will install it

Debug log can be found in /tmp/ actually, starting with com.limelight.webos. Could you check the this and see if you can read the log? https://github.com/mariotaku/moonlight-tv/wiki/Troubleshooting

JM33 commented 3 years ago

I tried v1.1.2 and still get the same error, failed to open video decoder.

I tried getting the log from the webOS TV CLI using the command on the troubleshooting page you linked, and it can't find the file:

C:\webOS_TV_SDK\CLI\bin>ares-novacom -r "ls -l /var/log/reports/librdx" --device lg_tv ls: /var/log/reports/librdx: No such file or directory ares-novacom ERR! Error: Command 'ls -l /var/log/reports/librdx' exited with code=1 (signal: undefined)

I got the tv connected to the CLI properly and I feel like I'm close, but I need a little help to get the error log for you.

mariotaku commented 3 years ago

What about ares-novacom -r "cat /tmp/com.limelight.webos.log" --device lg_tv ?

JM33 commented 3 years ago

That worked here is the log:

C:\webOS_TV_SDK\CLI\bin>ares-novacom -r "cat /tmp/com.limelight.webos.log" --device lg_tv ``` 000000.505 [APP][WARN] Unable to load audio module: /media/developer/apps/usr/palm/applications/com.limelight.webos/lib/libmoonlight-ndlaud.so: undefined symbol: NDL_DirectAudioClose 000000.516 [APP][INFO] Decoder module: webOS SMP (smp requested) 000000.516 [APP][INFO] Audio module: ALSA (auto requested) 000001.138 [Input][INFO] Input manager init, 170 game controller mappings loaded 000001.153 [UI][INFO] Display size changed to 1920 x 1080 000001.298 [Discovery][INFO] Start mDNS discovery 000024.651 [Session][INFO] Launch app 12878144... 000024.823 [Discovery][INFO] Stop mDNS discovery 000027.536 [Session][INFO] Video 1920 x 1080, 120 net_fps, 40000 kbps 000027.536 [Session][INFO] Audio 2 channels 000027.541 [Limelight][INFO] RTSP port: 48010 000027.541 [Limelight][INFO] Initializing platform... 000027.541 [Limelight][INFO] done 000027.541 [Limelight][INFO] Resolving host name... 000027.541 [Limelight][INFO] done 000027.541 [Limelight][INFO] Initializing audio stream... 000027.542 [Limelight][INFO] done 000027.542 [Limelight][INFO] Starting RTSP handshake... 000027.778 [Limelight][INFO] Audio port: 48000 000027.936 [Limelight][INFO] Video port: 47998 000028.949 [Limelight][INFO] Control port: 47999 000029.461 [Limelight][INFO] done 000029.461 [Limelight][INFO] Initializing control stream... 000029.461 [Limelight][INFO] done 000029.461 [Limelight][INFO] Initializing video stream... 000029.462 [Limelight][INFO] done 000029.462 [Limelight][INFO] Initializing input stream... 000029.462 [Limelight][INFO] done 000029.462 [Limelight][INFO] Starting control stream... 000029.466 [Limelight][INFO] done 000029.466 [Limelight][INFO] Starting video stream... 000029.653 [SMP][WARN] LoadCallback unhandled 0x0d 000029.653 [SMP][WARN] LoadCallback unhandled 0x0e 000029.653 [SMP][WARN] LoadCallback unhandled 0x05 000029.724 [SMP][WARN] LoadCallback unhandled 0x25 000029.769 [SMP][WARN] LoadCallback unhandled 0x11 000029.770 [Limelight][INFO] done 000029.770 [Limelight][INFO] Starting audio stream... 000029.795 [SMP][WARN] LoadCallback unhandled 0x2711 000029.804 [Limelight][INFO] Received first video packet after 0 ms 000029.890 [Limelight][INFO] done 000029.890 [Limelight][INFO] Starting input stream... 000029.890 [Limelight][INFO] Received first audio packet after 0 ms 000029.890 [Limelight][INFO] Initial audio resync period: 1105 milliseconds 000029.890 [Limelight][INFO] done 000029.909 [SMP][WARN] LoadCallback unhandled 0x2c 000037.633 [Limelight][INFO] Stopping input stream... 000037.634 [Limelight][INFO] done 000037.634 [Limelight][INFO] Stopping audio stream... 000037.636 [Limelight][INFO] ENet wait interrupted 000037.637 [Limelight][INFO] Control stream connection failed: -1 000037.712 [Limelight][INFO] done 000037.712 [Limelight][INFO] Stopping video stream... 000037.758 [SMP][WARN] LoadCallback unhandled 0x2712 000037.765 [SMP][WARN] LoadCallback unhandled 0x17 000037.772 [Limelight][INFO] done 000037.772 [Limelight][INFO] Stopping control stream... 000037.797 [Limelight][INFO] ENet peer acknowledged disconnection 000037.797 [Limelight][INFO] done 000037.797 [Limelight][INFO] Cleaning up input stream... 000037.797 [Limelight][INFO] done 000037.797 [Limelight][INFO] Cleaning up video stream... 000037.797 [Limelight][INFO] done 000037.797 [Limelight][INFO] Cleaning up control stream... 000037.797 [Limelight][INFO] done 000037.797 [Limelight][INFO] Cleaning up audio stream... 000037.811 [Limelight][INFO] done 000037.811 [Limelight][INFO] Cleaning up platform... 000037.811 [Limelight][INFO] done 000037.811 [Session][INFO] Sending app quit request ... 000043.107 [Discovery][INFO] Start mDNS discovery 000050.198 [Discovery][INFO] Stop mDNS discovery 000000.255 [APP][INFO] Decoder module: webOS NDL (auto requested) 000000.255 [APP][INFO] Audio module: decoder implementation (auto requested) 000000.962 [Input][INFO] Input manager init, 170 game controller mappings loaded 000000.980 [UI][INFO] Display size changed to 1920 x 1080 000001.135 [Discovery][INFO] Start mDNS discovery 000003.594 [Session][INFO] Launch app 12878144... 000004.363 [Discovery][INFO] Stop mDNS discovery 000006.583 [Session][INFO] Video 1920 x 1080, 120 net_fps, 40000 kbps 000006.583 [Session][INFO] Audio 2 channels 000006.584 [Limelight][INFO] RTSP port: 48010 000006.584 [Limelight][INFO] Initializing platform... 000006.584 [Limelight][INFO] done 000006.584 [Limelight][INFO] Resolving host name... 000006.584 [Limelight][INFO] done 000006.584 [Limelight][INFO] Initializing audio stream... 000006.585 [Limelight][INFO] done 000006.585 [Limelight][INFO] Starting RTSP handshake... 000007.629 [Limelight][INFO] Audio port: 48000 000007.634 [Limelight][INFO] Video port: 47998 000007.640 [Limelight][INFO] Control port: 47999 000008.190 [Limelight][INFO] done 000008.190 [Limelight][INFO] Initializing control stream... 000008.190 [Limelight][INFO] done 000008.190 [Limelight][INFO] Initializing video stream... 000008.190 [Limelight][INFO] done 000008.190 [Limelight][INFO] Initializing input stream... 000008.190 [Limelight][INFO] done 000008.190 [Limelight][INFO] Starting control stream... 000008.193 [Limelight][INFO] done 000008.193 [Limelight][INFO] Starting video stream... 000008.230 [NDL][ERROR] NDL_DirectMediaLoad failed: player is not loaded. 000008.231 [Limelight][INFO] Video stream start failed: 4113 000008.231 [Session][ERROR] Connection failed at stage 9 (video stream establishment), errorCode = 4113 (Unknown error 4113) 000008.231 [Limelight][INFO] Stopping control stream... 000008.684 [Limelight][INFO] ENet peer acknowledged disconnection 000008.684 [Limelight][INFO] done 000008.684 [Limelight][INFO] Cleaning up input stream... 000008.684 [Limelight][INFO] done 000008.684 [Limelight][INFO] Cleaning up video stream... 000008.684 [Limelight][INFO] done 000008.684 [Limelight][INFO] Cleaning up control stream... 000008.684 [Limelight][INFO] done 000008.684 [Limelight][INFO] Cleaning up audio stream... 000008.731 [Limelight][INFO] done 000008.731 [Limelight][INFO] Cleaning up platform... 000008.731 [Limelight][INFO] done 000008.731 [Session][ERROR] Failed to start connection: Limelight returned 4113 000008.747 [Event][WARN] Nobody handles event 119 000010.846 [Discovery][INFO] Start mDNS discovery 000010.846 [Discovery][INFO] Stop mDNS discovery 000178.830 [Session][INFO] Launch app 12878144... 000183.856 [Session][ERROR] Failed to launch session: gamestream returned -1, gs_error=Timeout was reached 000183.863 [Event][WARN] Nobody handles event 119 000190.340 [Session][INFO] Launch app 12878144... 000195.365 [Session][ERROR] Failed to launch session: gamestream returned -1, gs_error=Timeout was reached 000195.367 [Event][WARN] Nobody handles event 119 000228.251 [Session][INFO] Launch app 12878144... 000233.273 [Session][ERROR] Failed to launch session: gamestream returned -1, gs_error=Timeout was reached 000233.274 [Event][WARN] Nobody handles event 119 000000.255 [APP][INFO] Decoder module: webOS NDL (auto requested) 000000.255 [APP][INFO] Audio module: decoder implementation (auto requested) 000000.791 [Input][INFO] Input manager init, 170 game controller mappings loaded 000000.809 [UI][INFO] Display size changed to 1920 x 1080 000000.895 [Discovery][INFO] Start mDNS discovery 000000.285 [APP][INFO] Decoder module: webOS NDL (auto requested) 000000.285 [APP][INFO] Audio module: decoder implementation (auto requested) 000000.922 [Input][INFO] Input manager init, 170 game controller mappings loaded 000000.944 [UI][INFO] Display size changed to 1920 x 1080 000001.112 [Discovery][INFO] Start mDNS discovery 000193.969 [Input][INFO] Controller #0 (Xbox Wireless Controller) connected, sdl_id: 0 000201.073 [Session][INFO] Launch app 12878144... 000201.792 [Discovery][INFO] Stop mDNS discovery 000203.993 [Session][INFO] Video 1920 x 1080, 120 net_fps, 40000 kbps 000203.993 [Session][INFO] Audio 2 channels 000203.994 [Limelight][INFO] RTSP port: 48010 000203.994 [Limelight][INFO] Initializing platform... 000203.994 [Limelight][INFO] done 000203.994 [Limelight][INFO] Resolving host name... 000203.994 [Limelight][INFO] done 000203.994 [Limelight][INFO] Initializing audio stream... 000203.995 [Limelight][INFO] done 000203.995 [Limelight][INFO] Starting RTSP handshake... 000205.043 [Limelight][INFO] Audio port: 48000 000205.048 [Limelight][INFO] Video port: 47998 000205.058 [Limelight][INFO] Control port: 47999 000205.697 [Limelight][INFO] done 000205.698 [Limelight][INFO] Initializing control stream... 000205.698 [Limelight][INFO] done 000205.698 [Limelight][INFO] Initializing video stream... 000205.698 [Limelight][INFO] done 000205.698 [Limelight][INFO] Initializing input stream... 000205.698 [Limelight][INFO] done 000205.698 [Limelight][INFO] Starting control stream... 000205.702 [Limelight][INFO] done 000205.702 [Limelight][INFO] Starting video stream... 000205.729 [NDL][ERROR] NDL_DirectMediaLoad failed: player is not loaded. 000205.729 [Limelight][INFO] Video stream start failed: 4113 000205.729 [Session][ERROR] Connection failed at stage 9 (video stream establishment), errorCode = 4113 (Unknown error 4113) 000205.729 [Limelight][INFO] Stopping control stream... 000206.095 [Limelight][INFO] ENet peer acknowledged disconnection 000206.095 [Limelight][INFO] done 000206.095 [Limelight][INFO] Cleaning up input stream... 000206.095 [Limelight][INFO] done 000206.095 [Limelight][INFO] Cleaning up video stream... 000206.095 [Limelight][INFO] done 000206.095 [Limelight][INFO] Cleaning up control stream... 000206.095 [Limelight][INFO] done 000206.095 [Limelight][INFO] Cleaning up audio stream... 000206.145 [Limelight][INFO] done 000206.145 [Limelight][INFO] Cleaning up platform... 000206.145 [Limelight][INFO] done 000206.145 [Session][ERROR] Failed to start connection: Limelight returned 4113 000206.160 [Event][WARN] Nobody handles event 119 000207.494 [Discovery][INFO] Start mDNS discovery 000211.795 [Discovery][INFO] Stop mDNS discovery 000000.305 [APP][WARN] Unable to load audio module: /media/developer/apps/usr/palm/applications/com.limelight.webos/lib/libmoonlight-ndlaud.so: undefined symbol: NDL_DirectAudioClose 000000.313 [APP][INFO] Decoder module: webOS SMP (smp requested) 000000.313 [APP][INFO] Audio module: ALSA (auto requested) 000001.054 [Input][INFO] Input manager init, 170 game controller mappings loaded 000001.071 [UI][INFO] Display size changed to 1920 x 1080 000001.147 [Discovery][INFO] Start mDNS discovery 000001.148 [Input][INFO] Controller #0 (Xbox Wireless Controller) connected, sdl_id: 0 000018.075 [Session][INFO] Launch app 12878144... 000018.338 [Discovery][INFO] Stop mDNS discovery 000023.095 [Session][ERROR] Failed to launch session: gamestream returned -1, gs_error=Timeout was reached 000023.102 [Event][WARN] Nobody handles event 119 000023.963 [Discovery][INFO] Start mDNS discovery 000047.089 [Discovery][INFO] Stop mDNS discovery 000051.445 [Discovery][INFO] Start mDNS discovery 000062.286 [Input][INFO] Controller #0 disconnected, sdl_id: 0 000716.166 [Input][INFO] Controller #0 (Xbox Wireless Controller) connected, sdl_id: 1 000742.495 [Input][INFO] Controller #0 disconnected, sdl_id: 1 000000.385 [APP][WARN] Unable to load audio module: /media/developer/apps/usr/palm/applications/com.limelight.webos/lib/libmoonlight-ndlaud.so: undefined symbol: NDL_DirectAudioClose 000000.394 [APP][INFO] Decoder module: webOS SMP (smp requested) 000000.394 [APP][INFO] Audio module: ALSA (auto requested) 000000.945 [Input][INFO] Input manager init, 170 game controller mappings loaded 000000.965 [UI][INFO] Display size changed to 1920 x 1080 000001.132 [Discovery][INFO] Start mDNS discovery 000020.350 [Discovery][INFO] Stop mDNS discovery 000000.318 [APP][INFO] Decoder module: webOS NDL (auto requested) 000000.318 [APP][INFO] Audio module: decoder implementation (auto requested) 000000.900 [Input][INFO] Input manager init, 170 game controller mappings loaded 000000.918 [UI][INFO] Display size changed to 1920 x 1080 000001.007 [Discovery][INFO] Start mDNS discovery 000004.532 [Session][INFO] Launch app 12878144... 000005.255 [Discovery][INFO] Stop mDNS discovery 000007.515 [Session][INFO] Video 1920 x 1080, 120 net_fps, 40000 kbps 000007.515 [Session][INFO] Audio 2 channels 000007.516 [Limelight][INFO] RTSP port: 48010 000007.517 [Limelight][INFO] Initializing platform... 000007.517 [Limelight][INFO] done 000007.517 [Limelight][INFO] Resolving host name... 000007.517 [Limelight][INFO] done 000007.517 [Limelight][INFO] Initializing audio stream... 000007.518 [Limelight][INFO] done 000007.518 [Limelight][INFO] Starting RTSP handshake... 000008.571 [Limelight][INFO] Audio port: 48000 000008.577 [Limelight][INFO] Video port: 47998 000008.584 [Limelight][INFO] Control port: 47999 000009.167 [Limelight][INFO] done 000009.167 [Limelight][INFO] Initializing control stream... 000009.167 [Limelight][INFO] done 000009.167 [Limelight][INFO] Initializing video stream... 000009.168 [Limelight][INFO] done 000009.168 [Limelight][INFO] Initializing input stream... 000009.168 [Limelight][INFO] done 000009.168 [Limelight][INFO] Starting control stream... 000009.171 [Limelight][INFO] done 000009.171 [Limelight][INFO] Starting video stream... 000009.199 [NDL][ERROR] NDL_DirectMediaLoad failed: player is not loaded. 000009.199 [Limelight][INFO] Video stream start failed: 4113 000009.199 [Session][ERROR] Connection failed at stage 9 (video stream establishment), errorCode = 4113 (Unknown error 4113) 000009.199 [Limelight][INFO] Stopping control stream... 000009.677 [Limelight][INFO] ENet peer acknowledged disconnection 000009.677 [Limelight][INFO] done 000009.677 [Limelight][INFO] Cleaning up input stream... 000009.677 [Limelight][INFO] done 000009.677 [Limelight][INFO] Cleaning up video stream... 000009.677 [Limelight][INFO] done 000009.677 [Limelight][INFO] Cleaning up control stream... 000009.677 [Limelight][INFO] done 000009.677 [Limelight][INFO] Cleaning up audio stream... 000009.726 [Limelight][INFO] done 000009.726 [Limelight][INFO] Cleaning up platform... 000009.726 [Limelight][INFO] done 000009.726 [Session][ERROR] Failed to start connection: Limelight returned 4113 000009.745 [Event][WARN] Nobody handles event 119 000000.353 [APP][INFO] Decoder module: webOS NDL (auto requested) 000000.353 [APP][INFO] Audio module: decoder implementation (auto requested) 000000.998 [Input][INFO] Input manager init, 170 game controller mappings loaded 000001.016 [UI][INFO] Display size changed to 1920 x 1080 000001.152 [Discovery][INFO] Start mDNS discovery 000044.221 [Discovery][INFO] Stop mDNS discovery 000000.321 [APP][INFO] Decoder module: webOS NDL (auto requested) 000000.321 [APP][INFO] Audio module: SDL Audio (sdl requested) 000000.981 [Input][INFO] Input manager init, 170 game controller mappings loaded 000000.999 [UI][INFO] Display size changed to 1920 x 1080 000001.071 [Discovery][INFO] Start mDNS discovery 000016.369 [Session][INFO] Launch app 12878144... 000016.899 [Discovery][INFO] Stop mDNS discovery 000021.413 [Session][ERROR] Failed to launch session: gamestream returned -1, gs_error=Timeout was reached 000021.422 [Event][WARN] Nobody handles event 119 000022.808 [Discovery][INFO] Start mDNS discovery 000028.719 [Session][INFO] Launch app 12878144... 000029.265 [Discovery][INFO] Stop mDNS discovery 000033.731 [Session][ERROR] Failed to launch session: gamestream returned -1, gs_error=Timeout was reached 000033.735 [Event][WARN] Nobody handles event 119 000036.178 [Discovery][INFO] Start mDNS discovery 000046.995 [Discovery][INFO] Stop mDNS discovery 000000.277 [APP][INFO] Decoder module: webOS NDL (auto requested) 000000.277 [APP][INFO] Audio module: SDL Audio (sdl requested) 000000.864 [Input][INFO] Input manager init, 170 game controller mappings loaded 000000.881 [UI][INFO] Display size changed to 1920 x 1080 000000.988 [Discovery][INFO] Start mDNS discovery 000003.176 [Session][INFO] Launch app 12878144... 000003.849 [Discovery][INFO] Stop mDNS discovery 000008.188 [Session][ERROR] Failed to launch session: gamestream returned -1, gs_error=Timeout was reached 000008.196 [Event][WARN] Nobody handles event 119 000009.403 [Discovery][INFO] Start mDNS discovery 000058.886 [Discovery][INFO] Stop mDNS discovery 000000.282 [APP][WARN] Unable to load audio module: /media/developer/apps/usr/palm/applications/com.limelight.webos/lib/libmoonl ```
mariotaku commented 3 years ago

Now this is very likely that this system version doesn't support NDL properly. I'll have to wait till someone can debug on their device, or when I have access to one unit.

krnlpnck commented 3 years ago

I want to make an update, it's not working also with 0.9.6, actually what it's happening is the 0.9.6 can automatically detect the SMP Decoder, is set it manually to NDL, and it's give error 11, I just saw right now Screenshot 2021-10-26 at 23 01 34

Also the latest 1.1.13 version has the same issue.

So, any idea how we can debug/fix this issue? it's happening because of the new firmware

Thank you

mariotaku commented 3 years ago

@krnlpnck which means SMP works while NDL does not, right? Could you do the same like above to collect the logs? ares-novacom -r "cat /tmp/com.limelight.webos.log" --device name_of_your_tv

krnlpnck commented 3 years ago

Not sure how I can do that, because with webos-dev-manager the terminal it's not working, i did not find a good guide how to set it up

mariotaku commented 3 years ago

@krnlpnck I see. I'll add such feature to dev manager soon :)

krnlpnck commented 3 years ago

I've managed to ssh with prisoner and private key after getting it with the SDK from a Windows pc

C:\webOS_TV_SDK\CLI\bin>ares-novacom -r "cat /tmp/com.limelight.webos.log" --device tv ``` 000000.000 [APP][INFO] Start Moonlight. Version 1.1.3 000000.532 [APP][WARN] Unable to load audio module: /media/developer/apps/usr/palm/applications/com.limelight.webos/lib/libmoonlight-ndlaud.so: undefined symbol: NDL_DirectAudioClose 000000.541 [APP][INFO] Decoder module: webOS SMP (smp requested) 000000.541 [APP][INFO] Audio module: ALSA (auto requested) 000001.123 [Input][INFO] Input manager init, 171 game controller mappings loaded 000001.144 [UI][INFO] Display size changed to 1920 x 1080 000001.333 [Discovery][INFO] Start mDNS discovery 000003.879 [Session][INFO] Launch app 1088017781... 000004.414 [Discovery][INFO] Stop mDNS discovery 000008.106 [Session][INFO] Video 1920 x 1080, 60 net_fps, 60000 kbps 000008.106 [Session][INFO] Audio 2 channels 000008.106 [Limelight][INFO] RTSP port: 48010 000008.106 [Limelight][INFO] Initializing platform... 000008.106 [Limelight][INFO] done 000008.106 [Limelight][INFO] Resolving host name... 000008.107 [Limelight][INFO] done 000008.107 [Limelight][INFO] Initializing audio stream... 000008.108 [Limelight][INFO] done 000008.108 [Limelight][INFO] Starting RTSP handshake... 000008.160 [Limelight][INFO] Audio port: 48000 000008.169 [Limelight][INFO] Video port: 47998 000008.188 [Limelight][INFO] Control port: 47999 000008.847 [Limelight][INFO] done 000008.847 [Limelight][INFO] Initializing control stream... 000008.847 [Limelight][INFO] done 000008.847 [Limelight][INFO] Initializing video stream... 000008.848 [Limelight][INFO] done 000008.848 [Limelight][INFO] Initializing input stream... 000008.848 [Limelight][INFO] done 000008.848 [Limelight][INFO] Starting control stream... 000008.851 [Limelight][INFO] done 000008.851 [Limelight][INFO] Starting video stream... 000009.045 [SMP][WARN] LoadCallback unhandled 0x0d 000009.045 [SMP][WARN] LoadCallback unhandled 0x0e 000009.046 [SMP][WARN] LoadCallback unhandled 0x05 000009.122 [SMP][WARN] LoadCallback unhandled 0x25 000009.230 [SMP][WARN] LoadCallback unhandled 0x11 000009.231 [Limelight][INFO] done 000009.232 [Limelight][INFO] Starting audio stream... 000009.242 [SMP][WARN] LoadCallback unhandled 0x2711 000009.265 [Limelight][INFO] Received first video packet after 0 ms 000009.325 [Limelight][INFO] done 000009.325 [Limelight][INFO] Starting input stream... 000009.325 [Limelight][INFO] Received first audio packet after 0 ms 000009.325 [Limelight][INFO] Initial audio resync period: 1160 milliseconds 000009.325 [Limelight][INFO] done 000009.430 [SMP][WARN] LoadCallback unhandled 0x2c 000014.567 [SMP][WARN] LoadCallback unhandled 0x2c 000021.436 [Limelight][INFO] Stopping input stream... 000021.437 [Limelight][INFO] ENet wait interrupted 000021.437 [Limelight][INFO] Control stream connection failed: -1 000021.440 [Limelight][INFO] done 000021.440 [Limelight][INFO] Stopping audio stream... 000021.556 [Limelight][INFO] done 000021.556 [Limelight][INFO] Stopping video stream... 000021.608 [SMP][WARN] LoadCallback unhandled 0x2712 000021.615 [SMP][WARN] LoadCallback unhandled 0x17 000021.634 [Limelight][INFO] done 000021.634 [Limelight][INFO] Stopping control stream... 000021.683 [Limelight][INFO] ENet peer acknowledged disconnection 000021.683 [Limelight][INFO] done 000021.683 [Limelight][INFO] Cleaning up input stream... 000021.683 [Limelight][INFO] done 000021.683 [Limelight][INFO] Cleaning up video stream... 000021.683 [Limelight][INFO] done 000021.683 [Limelight][INFO] Cleaning up control stream... 000021.683 [Limelight][INFO] done 000021.683 [Limelight][INFO] Cleaning up audio stream... 000021.692 [Limelight][INFO] done 000021.692 [Limelight][INFO] Cleaning up platform... 000021.692 [Limelight][INFO] done 000021.980 [Discovery][INFO] Start mDNS discovery 000021.981 [Discovery][INFO] Stop mDNS discovery 000026.772 [Session][INFO] Launch app 1088017781... 000027.968 [Session][INFO] Video 1920 x 1080, 60 net_fps, 60000 kbps 000027.968 [Session][INFO] Audio 2 channels 000027.968 [Limelight][INFO] RTSP port: 48010 000027.968 [Limelight][INFO] Initializing platform... 000027.968 [Limelight][INFO] done 000027.968 [Limelight][INFO] Resolving host name... 000027.968 [Limelight][INFO] done 000027.968 [Limelight][INFO] Initializing audio stream... 000027.969 [Limelight][INFO] done 000027.969 [Limelight][INFO] Starting RTSP handshake... 000028.012 [Limelight][INFO] Audio port: 48000 000028.021 [Limelight][INFO] Video port: 47998 000028.029 [Limelight][INFO] Control port: 47999 000028.586 [Limelight][INFO] done 000028.586 [Limelight][INFO] Initializing control stream... 000028.586 [Limelight][INFO] done 000028.586 [Limelight][INFO] Initializing video stream... 000028.587 [Limelight][INFO] done 000028.587 [Limelight][INFO] Initializing input stream... 000028.587 [Limelight][INFO] done 000028.587 [Limelight][INFO] Starting control stream... 000028.590 [Limelight][INFO] done 000028.590 [Limelight][INFO] Starting video stream... 000028.719 [SMP][WARN] LoadCallback unhandled 0x0d 000028.719 [SMP][WARN] LoadCallback unhandled 0x0e 000028.720 [SMP][WARN] LoadCallback unhandled 0x05 000028.746 [SMP][WARN] LoadCallback unhandled 0x25 000028.756 [SMP][WARN] LoadCallback unhandled 0x11 000028.758 [Limelight][INFO] done 000028.758 [Limelight][INFO] Starting audio stream... 000028.776 [SMP][WARN] LoadCallback unhandled 0x2711 000028.786 [Limelight][INFO] Received first video packet after 0 ms 000028.796 [Limelight][INFO] done 000028.796 [Limelight][INFO] Starting input stream... 000028.796 [Limelight][INFO] done 000028.797 [Limelight][INFO] Received first audio packet after 0 ms 000028.797 [Limelight][INFO] Initial audio resync period: 780 milliseconds 000028.834 [SMP][WARN] LoadCallback unhandled 0x2c 000090.174 [SMP][WARN] LoadCallback unhandled 0x2c 001730.391 [SMP][WARN] LoadCallback unhandled 0x2c 001730.427 [SMP][WARN] LoadCallback unhandled 0x2c 001730.484 [SMP][WARN] LoadCallback unhandled 0x2c 001778.469 [Limelight][INFO] Control stream received unexpected disconnect event 001778.470 [Session][ERROR] Connection terminated, errorCode = 0xffffffff 001778.470 [Limelight][INFO] Stopping input stream... 001778.470 [Limelight][INFO] done 001778.470 [Limelight][INFO] Stopping audio stream... 001778.476 [Limelight][INFO] done 001778.476 [Limelight][INFO] Stopping video stream... 001778.482 [Limelight][INFO] Failed to send ENet control packet 001778.482 [Limelight][INFO] Loss Stats: Transaction failed: 11 001778.497 [SMP][WARN] LoadCallback unhandled 0x1c 001778.565 [SMP][WARN] LoadCallback unhandled 0x2712 001778.602 [SMP][WARN] LoadCallback unhandled 0x17 001778.611 [Limelight][INFO] done 001778.612 [Limelight][INFO] Stopping control stream... 001778.612 [Limelight][INFO] ENet peer is already disconnected 001778.612 [Limelight][INFO] done 001778.612 [Limelight][INFO] Cleaning up input stream... 001778.612 [Limelight][INFO] done 001778.612 [Limelight][INFO] Cleaning up video stream... 001778.612 [Limelight][INFO] done 001778.612 [Limelight][INFO] Cleaning up control stream... 001778.612 [Limelight][INFO] done 001778.612 [Limelight][INFO] Cleaning up audio stream... 001778.613 [Limelight][INFO] done 001778.614 [Limelight][INFO] Cleaning up platform... 001778.614 [Limelight][INFO] done 004076.862 [APP][INFO] Quitted gracefully :) ```
MrPerezident commented 3 years ago

Also to add to this thread NDL streaming is also broken on webos 5.3.0 now, after an update to firmware version 4.30.10 on the LG CX OLED 65inch

Says "failed to open video decoder"

thehhmdb commented 3 years ago

I also have the same issue after updating to the latest firmware on the LG CX

mariotaku commented 3 years ago

Thank you! You're providing very useful information. Although it's not easy to get a cheap webOS 6 unit, but I may have access to an webOS 5 one. That may help me to solve this issue.

mariotaku commented 3 years ago

Could anyone of you get v1.1.3 version, start streaming with NDL decoder (of course it will fail), and collect logs for me?

thehhmdb commented 3 years ago

@mariotaku do you have any instructions to collect the logs? Device Manager for webOS is in a strange state for me where the terminal says: "Connection error..."

The info tab works and shows the information like firmware version etc.

The apps tab says "Unable to load apps" but it does allow me to install apps. e.g. I can install the latest Moonlight

mariotaku commented 3 years ago

Oh sorry that I forgot to update my progress. A new version of dev manager will be available soon.

mariotaku commented 3 years ago

@thehhmdb When you update to dev manager v1.5.1, you can open Files page, navigate to /tmp/ by clicking the disk button on the bottom left corner, and then find com.limelight.webos.log directly. Then you can double click to open with your preferred app on PC.

thehhmdb commented 3 years ago

@mariotaku thanks for the instructions, here's the log:

logs 000000.000 [APP][INFO] Start Moonlight. Version 1.1.3 000000.002 [Settings][INFO] Can't open configuration file: /media/developer/apps/usr/palm/applications/com.limelight.webos/conf/moonlight.conf 000000.319 [APP][INFO] Decoder module: webOS NDL (auto requested) 000000.319 [APP][INFO] Audio module: decoder implementation (auto requested) 000001.293 [Input][INFO] Input manager init, 163 game controller mappings loaded 000001.329 [UI][INFO] Display size changed to 1920 x 1080 000001.416 [Discovery][INFO] Start mDNS discovery 000001.418 [Input][INFO] Controller #0 (Generic X-Box pad) connected, sdl_id: 0 000001.418 [Input][INFO] Controller #1 (Generic X-Box pad) connected, sdl_id: 1 000033.512 [Discovery][INFO] Stop mDNS discovery 000041.820 [Discovery][INFO] Start mDNS discovery 000045.897 [Session][INFO] Launch app 10776864... 000045.998 [Discovery][INFO] Stop mDNS discovery 000050.107 [Session][INFO] Video 3840 x 2160, 120 net_fps, 50000 kbps 000050.107 [Session][INFO] Audio 2 channels 000050.109 [Limelight][INFO] RTSP port: 48010 000050.109 [Limelight][INFO] Initializing platform... 000050.109 [Limelight][INFO] done 000050.109 [Limelight][INFO] Resolving host name... 000050.109 [Limelight][INFO] done 000050.109 [Limelight][INFO] Initializing audio stream... 000050.110 [Limelight][INFO] done 000050.110 [Limelight][INFO] Starting RTSP handshake... 000050.133 [Limelight][INFO] Audio port: 48000 000050.136 [Limelight][INFO] Video port: 47998 000050.139 [Limelight][INFO] Control port: 47999 000050.748 [Limelight][INFO] done 000050.748 [Limelight][INFO] Initializing control stream... 000050.748 [Limelight][INFO] done 000050.748 [Limelight][INFO] Initializing video stream... 000050.749 [Limelight][INFO] done 000050.749 [Limelight][INFO] Initializing input stream... 000050.749 [Limelight][INFO] done 000050.749 [Limelight][INFO] Starting control stream... 000050.752 [Limelight][INFO] done 000050.752 [Limelight][INFO] Starting video stream... 000050.782 [NDL][ERROR] NDL_DirectMediaLoad failed: player is not loaded. 000050.782 [Limelight][INFO] Video stream start failed: 4113 000050.782 [Session][ERROR] Connection failed at stage 9 (video stream establishment), errorCode = 4113 (Unknown error 4113) 000050.782 [Limelight][INFO] Stopping control stream... 000050.803 [Limelight][INFO] ENet peer acknowledged disconnection 000050.803 [Limelight][INFO] done 000050.803 [Limelight][INFO] Cleaning up input stream... 000050.803 [Limelight][INFO] done 000050.803 [Limelight][INFO] Cleaning up video stream... 000050.803 [Limelight][INFO] done 000050.803 [Limelight][INFO] Cleaning up control stream... 000050.803 [Limelight][INFO] done 000050.803 [Limelight][INFO] Cleaning up audio stream... 000050.836 [Limelight][INFO] done 000050.836 [Limelight][INFO] Cleaning up platform... 000050.836 [Limelight][INFO] done 000050.836 [Session][ERROR] Failed to start connection: Limelight returned 4113 000050.852 [Event][WARN] Nobody handles event 119 000053.881 [Discovery][INFO] Start mDNS discovery 000114.526 [Discovery][INFO] Stop mDNS discovery 000126.134 [Discovery][INFO] Start mDNS discovery 000305.481 [APP][INFO] Quitted gracefully :) 000000.000 [APP][INFO] Start Moonlight. Version 1.1.3 000000.000 [Settings][INFO] Can't open configuration file: /media/developer/apps/usr/palm/applications/com.limelight.webos/conf/moonlight.conf 000000.282 [APP][INFO] Decoder module: webOS NDL (auto requested) 000000.282 [APP][INFO] Audio module: decoder implementation (auto requested) 000001.125 [Input][INFO] Input manager init, 163 game controller mappings loaded 000001.155 [UI][INFO] Display size changed to 1920 x 1080 000001.207 [Discovery][INFO] Start mDNS discovery 000001.208 [Input][INFO] Controller #0 (Generic X-Box pad) connected, sdl_id: 0 000001.208 [Input][INFO] Controller #1 (Generic X-Box pad) connected, sdl_id: 1 000015.550 [Discovery][INFO] Stop mDNS discovery 000017.432 [Discovery][INFO] Start mDNS discovery 000021.550 [Discovery][INFO] Stop mDNS discovery 000028.522 [Discovery][INFO] Start mDNS discovery 000032.597 [Discovery][INFO] Stop mDNS discovery 000032.725 [APP][INFO] Quitted gracefully :) 000000.000 [APP][INFO] Start Moonlight. Version 1.1.3 000000.241 [APP][INFO] Decoder module: webOS NDL (auto requested) 000000.241 [APP][INFO] Audio module: decoder implementation (auto requested) 000001.098 [Input][INFO] Input manager init, 195 game controller mappings loaded 000001.130 [UI][INFO] Display size changed to 1920 x 1080 000001.190 [Discovery][INFO] Start mDNS discovery 000001.190 [Input][INFO] Controller #0 (Generic X-Box pad) connected, sdl_id: 0 000001.191 [Input][INFO] Controller #1 (Generic X-Box pad) connected, sdl_id: 1 000147.724 [APP][INFO] Quitted gracefully :) 000000.000 [APP][INFO] Start Moonlight. Version 1.1.3 000000.238 [APP][INFO] Decoder module: webOS NDL (auto requested) 000000.239 [APP][INFO] Audio module: decoder implementation (auto requested) 000001.113 [Input][INFO] Input manager init, 195 game controller mappings loaded 000001.144 [UI][INFO] Display size changed to 1920 x 1080 000001.199 [Discovery][INFO] Start mDNS discovery 000001.200 [Input][INFO] Controller #0 (Generic X-Box pad) connected, sdl_id: 0 000001.200 [Input][INFO] Controller #1 (Generic X-Box pad) connected, sdl_id: 1 000020.517 [Session][INFO] Launch app 10776864... 000021.370 [Discovery][INFO] Stop mDNS discovery 000024.747 [Session][INFO] Video 3840 x 2160, 120 net_fps, 50000 kbps 000024.747 [Session][INFO] Audio 2 channels 000024.747 [Limelight][INFO] RTSP port: 48010 000024.747 [Limelight][INFO] Initializing platform... 000024.747 [Limelight][INFO] done 000024.747 [Limelight][INFO] Resolving host name... 000024.747 [Limelight][INFO] done 000024.747 [Limelight][INFO] Initializing audio stream... 000024.748 [Limelight][INFO] done 000024.748 [Limelight][INFO] Starting RTSP handshake... 000024.767 [Limelight][INFO] Audio port: 48000 000024.772 [Limelight][INFO] Video port: 47998 000024.774 [Limelight][INFO] Control port: 47999 000025.284 [Limelight][INFO] done 000025.284 [Limelight][INFO] Initializing control stream... 000025.284 [Limelight][INFO] done 000025.284 [Limelight][INFO] Initializing video stream... 000025.285 [Limelight][INFO] done 000025.285 [Limelight][INFO] Initializing input stream... 000025.285 [Limelight][INFO] done 000025.285 [Limelight][INFO] Starting control stream... 000025.287 [Limelight][INFO] done 000025.287 [Limelight][INFO] Starting video stream... 000025.313 [NDL][ERROR] NDL_DirectMediaLoad failed: player is not loaded. 000025.313 [Limelight][INFO] Video stream start failed: 4113 000025.313 [Session][ERROR] Connection failed at stage 9 (video stream establishment), errorCode = 4113 (Unknown error 4113) 000025.313 [Limelight][INFO] Stopping control stream... 000025.338 [Limelight][INFO] ENet peer acknowledged disconnection 000025.338 [Limelight][INFO] done 000025.338 [Limelight][INFO] Cleaning up input stream... 000025.338 [Limelight][INFO] done 000025.338 [Limelight][INFO] Cleaning up video stream... 000025.338 [Limelight][INFO] done 000025.338 [Limelight][INFO] Cleaning up control stream... 000025.338 [Limelight][INFO] done 000025.338 [Limelight][INFO] Cleaning up audio stream... 000025.370 [Limelight][INFO] done 000025.370 [Limelight][INFO] Cleaning up platform... 000025.370 [Limelight][INFO] done 000025.370 [Session][ERROR] Failed to start connection: Limelight returned 4113 000025.377 [Event][WARN] Nobody handles event 119 000027.611 [Discovery][INFO] Start mDNS discovery 000031.217 [APP][INFO] Quitted gracefully :)
mariotaku commented 3 years ago

@thehhmdb It's interesting that you requested 4K120. Did you tried lower resolution/frame rates?

krnlpnck commented 3 years ago
logs ```000000.002 [APP][INFO] Start Moonlight. Version 1.1.3 000000.340 [APP][WARN] Unable to load audio module: /media/developer/apps/usr/palm/applications/com.limelight.webos/lib/libmoonlight-ndlaud.so: undefined symbol: NDL_DirectAudioClose 000000.348 [APP][INFO] Decoder module: webOS SMP (smp requested) 000000.348 [APP][INFO] Audio module: ALSA (auto requested) 000000.447 [SDL.INPUT][ERROR] [MaybeAddDevice] open path fail 000000.466 [SDL.INPUT][ERROR] [MaybeAddDevice] open path fail 000000.479 [SDL.INPUT][ERROR] Fail mapping game controller db with 0 000000.479 [SDL.INPUT][ERROR] Fail mapping game controller db with 1 000000.902 [Input][INFO] Input manager init, 171 game controller mappings loaded 000000.918 [UI][INFO] Display size changed to 1920 x 1080 000001.082 [SDL.INPUT][ERROR] Fail mapping game controller db with 0 000001.083 [Input][WARN] Unrecognized game controller Smart Remote RCU Input. GUID: 06000000999900009999000001000000 000001.083 [SDL.INPUT][ERROR] Fail mapping game controller db with 1 000001.083 [Input][WARN] Unrecognized game controller LGE Network Input. GUID: 06000000999900009999000001000000 000001.085 [Discovery][INFO] Start mDNS discovery 000002.713 [Discovery][INFO] Stop mDNS discovery 000009.228 [APP][INFO] Quitted gracefully :) 000000.006 [APP][INFO] Start Moonlight. Version 1.1.3 000000.551 [APP][INFO] Decoder module: webOS NDL (ndl requested) 000000.551 [APP][INFO] Audio module: decoder implementation (auto requested) 000000.686 [SDL.INPUT][ERROR] [MaybeAddDevice] open path fail 000000.722 [SDL.INPUT][ERROR] [MaybeAddDevice] open path fail 000000.735 [SDL.INPUT][ERROR] Fail mapping game controller db with 0 000000.735 [SDL.INPUT][ERROR] Fail mapping game controller db with 1 000001.187 [Input][INFO] Input manager init, 171 game controller mappings loaded 000001.205 [UI][INFO] Display size changed to 1920 x 1080 000001.321 [SDL.INPUT][ERROR] Fail mapping game controller db with 0 000001.321 [Input][WARN] Unrecognized game controller Smart Remote RCU Input. GUID: 06000000999900009999000001000000 000001.322 [SDL.INPUT][ERROR] Fail mapping game controller db with 1 000001.322 [Input][WARN] Unrecognized game controller LGE Network Input. GUID: 06000000999900009999000001000000 000001.325 [Discovery][INFO] Start mDNS discovery 000003.520 [Session][INFO] Launch app 1088017781... 000004.327 [Discovery][INFO] Stop mDNS discovery 000007.894 [Session][INFO] Video 1920 x 1080, 60 net_fps, 50000 kbps 000007.894 [Session][INFO] Audio 2 channels 000007.897 [Limelight][INFO] RTSP port: 48010 000007.897 [Limelight][INFO] Initializing platform... 000007.897 [Limelight][INFO] done 000007.897 [Limelight][INFO] Resolving host name... 000007.897 [Limelight][INFO] done 000007.897 [Limelight][INFO] Initializing audio stream... 000007.898 [Limelight][INFO] done 000007.898 [Limelight][INFO] Starting RTSP handshake... 000009.026 [Limelight][INFO] Audio port: 48000 000009.035 [Limelight][INFO] Video port: 47998 000009.044 [Limelight][INFO] Control port: 47999 000009.675 [Limelight][INFO] done 000009.675 [Limelight][INFO] Initializing control stream... 000009.679 [Limelight][INFO] done 000009.679 [Limelight][INFO] Initializing video stream... 000009.679 [Limelight][INFO] done 000009.679 [Limelight][INFO] Initializing input stream... 000009.679 [Limelight][INFO] done 000009.679 [Limelight][INFO] Starting control stream... 000009.684 [Limelight][INFO] done 000009.684 [Limelight][INFO] Starting video stream... 000009.720 [NDL][ERROR] NDL_DirectMediaLoad failed: player is not loaded. 000009.720 [Limelight][INFO] Video stream start failed: 4113 000009.720 [Session][ERROR] Connection failed at stage 9 (video stream establishment), errorCode = 4113 (Unknown error 4113) 000009.720 [Limelight][INFO] Stopping control stream... 000010.083 [Limelight][INFO] ENet peer acknowledged disconnection 000010.083 [Limelight][INFO] done 000010.083 [Limelight][INFO] Cleaning up input stream... 000010.084 [Limelight][INFO] done 000010.084 [Limelight][INFO] Cleaning up video stream... 000010.084 [Limelight][INFO] done 000010.084 [Limelight][INFO] Cleaning up control stream... 000010.084 [Limelight][INFO] done 000010.084 [Limelight][INFO] Cleaning up audio stream... 000010.131 [Limelight][INFO] done 000010.131 [Limelight][INFO] Cleaning up platform... 000010.131 [Limelight][INFO] done 000010.131 [Session][ERROR] Failed to start connection: Limelight returned 4113 000010.136 [Event][WARN] Nobody handles event 119 000012.444 [Discovery][INFO] Start mDNS discovery ```
thehhmdb commented 3 years ago

@thehhmdb It's interesting that you requested 4K120. Did you tried lower resolution/frame rates?

yes, it does the same at 1080p 60fps too, here's the log: 000000.005 [APP][INFO] Start Moonlight. Version 1.1.3 000000.262 [APP][INFO] Decoder module: webOS NDL (auto requested) 000000.262 [APP][INFO] Audio module: decoder implementation (auto requested) 000002.035 [Input][INFO] Input manager init, 195 game controller mappings loaded 000002.065 [UI][INFO] Display size changed to 1920 x 1080 000002.192 [Discovery][INFO] 000002.192 [Input][INFO] Controller #0 (Generic X-Box pad) connected, sdl_id: 0 Start mDNS discovery 000002.193 [Input][INFO] Controller #1 (Generic X-Box pad) connected, sdl_id: 1 000006.849 [Discovery][INFO] Stop mDNS discovery 000013.923 [Discovery][INFO] Start mDNS discovery 000016.680 [Session][INFO] Launch app 10776864... 000016.996 [Discovery][INFO] Stop mDNS discovery 000020.893 [Session][INFO] Video 1920 x 1080, 60 net_fps, 20000 kbps 000020.893 [Session][INFO] Audio 2 channels 000020.893 [Limelight][INFO] RTSP port: 48010 000020.893 [Limelight][INFO] Initializing platform... 000020.893 [Limelight][INFO] done 000020.893 [Limelight][INFO] Resolving host name... 000020.893 [Limelight][INFO] done 000020.893 [Limelight][INFO] Initializing audio stream... 000020.894 [Limelight][INFO] done 000020.894 [Limelight][INFO] Starting RTSP handshake... 000020.895 [Limelight][INFO] connect() failed: 111 000021.415 [Limelight][INFO] Audio port: 48000 000021.419 [Limelight][INFO] Video port: 47998 000021.421 [Limelight][INFO] Control port: 47999 000022.011 [Limelight][INFO] done 000022.011 [Limelight][INFO] Initializing control stream... 000022.011 [Limelight][INFO] done 000022.011 [Limelight][INFO] Initializing video stream... 000022.012 [Limelight][INFO] done 000022.012 [Limelight][INFO] Initializing input stream... 000022.012 [Limelight][INFO] done 000022.012 [Limelight][INFO] Starting control stream... 000022.013 [Limelight][INFO] done 000022.014 [Limelight][INFO] Starting video stream... 000022.037 [NDL][ERROR] NDL_DirectMediaLoad failed: player is not loaded. 000022.037 [Limelight][INFO] Video stream start failed: 4113 000022.037 [Session][ERROR] Connection failed at stage 9 (video stream establishment), errorCode = 4113 (Unknown error 4113) 000022.037 [Limelight][INFO] Stopping control stream... 000022.459 [Limelight][INFO] ENet peer acknowledged disconnection 000022.459 [Limelight][INFO] done 000022.459 [Limelight][INFO] Cleaning up input stream... 000022.459 [Limelight][INFO] done 000022.459 [Limelight][INFO] Cleaning up video stream... 000022.459 [Limelight][INFO] done 000022.459 [Limelight][INFO] Cleaning up control stream... 000022.459 [Limelight][INFO] done 000022.459 [Limelight][INFO] Cleaning up audio stream... 000022.468 [Limelight][INFO] done 000022.468 [Limelight][INFO] Cleaning up platform... 000022.468 [Limelight][INFO] done 000022.468 [Session][ERROR] Failed to start connection: Limelight returned 4113 000022.482 [Event][WARN] Nobody handles event 119 000025.341 [Discovery][INFO] Start mDNS discovery 000027.433 [Discovery][INFO] Stop mDNS discovery
mariotaku commented 3 years ago

Thank you. The information you've provided are very useful. I'll have access to an webOS TV later. Then I can manage to solve this.

JM33 commented 2 years ago

I have also ran the v1.1.3 and here is the log

moonlight.log ``` 000000.002 [APP][INFO] Start Moonlight. Version 1.1.3 000000.267 [APP][WARN] Unable to load audio module: /media/developer/apps/usr/palm/applications/com.limelight.webos/lib/libmoonlight-ndlaud.so: undefined symbol: NDL_DirectAudioClose 000000.282 [APP][INFO] Decoder module: webOS SMP (smp requested) 000000.282 [APP][INFO] Audio module: ALSA (auto requested) 000000.913 [Input][INFO] Input manager init, 171 game controller mappings loaded 000000.939 [UI][INFO] Display size changed to 1920 x 1080 000001.044 [Discovery][INFO] Start mDNS discovery 000012.540 [Discovery][INFO] Stop mDNS discovery 000027.715 [APP][INFO] Quitted gracefully :) 000000.000 [APP][INFO] Start Moonlight. Version 1.1.3 000000.309 [APP][INFO] Decoder module: webOS NDL (ndl requested) 000000.309 [APP][INFO] Audio module: decoder implementation (auto requested) 000000.948 [Input][INFO] Input manager init, 171 game controller mappings loaded 000000.965 [UI][INFO] Display size changed to 1920 x 1080 000001.065 [Discovery][INFO] Start mDNS discovery 000004.242 [Session][INFO] Launch app 12878144... 000005.124 [Discovery][INFO] Stop mDNS discovery 000008.452 [Session][INFO] Video 1920 x 1080, 120 net_fps, 40000 kbps 000008.452 [Session][INFO] Audio 2 channels 000008.453 [Limelight][INFO] RTSP port: 48010 000008.453 [Limelight][INFO] Initializing platform... 000008.453 [Limelight][INFO] done 000008.453 [Limelight][INFO] Resolving host name... 000008.453 [Limelight][INFO] done 000008.453 [Limelight][INFO] Initializing audio stream... 000008.454 [Limelight][INFO] done 000008.454 [Limelight][INFO] Starting RTSP handshake... 000008.620 [Limelight][INFO] Audio port: 48000 000008.625 [Limelight][INFO] Video port: 47998 000008.641 [Limelight][INFO] Control port: 47999 000009.319 [Limelight][INFO] done 000009.319 [Limelight][INFO] Initializing control stream... 000009.319 [Limelight][INFO] done 000009.319 [Limelight][INFO] Initializing video stream... 000009.319 [Limelight][INFO] done 000009.319 [Limelight][INFO] Initializing input stream... 000009.319 [Limelight][INFO] done 000009.319 [Limelight][INFO] Starting control stream... 000009.336 [Limelight][INFO] done 000009.336 [Limelight][INFO] Starting video stream... 000009.361 [NDL][ERROR] NDL_DirectMediaLoad failed: player is not loaded. 000009.361 [Limelight][INFO] Video stream start failed: 4113 000009.361 [Session][ERROR] Connection failed at stage 9 (video stream establishment), errorCode = 4113 (Unknown error 4113) 000009.361 [Limelight][INFO] Stopping control stream... 000009.692 [Limelight][INFO] ENet peer acknowledged disconnection 000009.692 [Limelight][INFO] done 000009.692 [Limelight][INFO] Cleaning up input stream... 000009.692 [Limelight][INFO] done 000009.692 [Limelight][INFO] Cleaning up video stream... 000009.692 [Limelight][INFO] done 000009.692 [Limelight][INFO] Cleaning up control stream... 000009.692 [Limelight][INFO] done 000009.692 [Limelight][INFO] Cleaning up audio stream... 000009.723 [Limelight][INFO] done 000009.723 [Limelight][INFO] Cleaning up platform... 000009.723 [Limelight][INFO] done 000009.723 [Session][ERROR] Failed to start connection: Limelight returned 4113 000009.733 [Event][WARN] Nobody handles event 119 000013.649 [Discovery][INFO] Start mDNS discovery 000022.375 [Session][INFO] Launch app 12878144... 000023.174 [Discovery][INFO] Stop mDNS discovery 000026.590 [Session][INFO] Video 1920 x 1080, 120 net_fps, 40000 kbps 000026.590 [Session][INFO] Audio 2 channels 000026.590 [Limelight][INFO] RTSP port: 48010 000026.590 [Limelight][INFO] Initializing platform... 000026.590 [Limelight][INFO] done 000026.590 [Limelight][INFO] Resolving host name... 000026.590 [Limelight][INFO] done 000026.590 [Limelight][INFO] Initializing audio stream... 000026.591 [Limelight][INFO] done 000026.591 [Limelight][INFO] Starting RTSP handshake... 000026.637 [Limelight][INFO] Audio port: 48000 000026.644 [Limelight][INFO] Video port: 47998 000026.651 [Limelight][INFO] Control port: 47999 000027.168 [Limelight][INFO] done 000027.168 [Limelight][INFO] Initializing control stream... 000027.168 [Limelight][INFO] done 000027.168 [Limelight][INFO] Initializing video stream... 000027.169 [Limelight][INFO] done 000027.169 [Limelight][INFO] Initializing input stream... 000027.169 [Limelight][INFO] done 000027.169 [Limelight][INFO] Starting control stream... 000027.172 [Limelight][INFO] done 000027.172 [Limelight][INFO] Starting video stream... 000027.202 [NDL][ERROR] NDL_DirectMediaLoad failed: player is not loaded. 000027.202 [Limelight][INFO] Video stream start failed: 4113 000027.202 [Session][ERROR] Connection failed at stage 9 (video stream establishment), errorCode = 4113 (Unknown error 4113) 000027.202 [Limelight][INFO] Stopping control stream... 000027.679 [Limelight][INFO] ENet peer acknowledged disconnection 000027.679 [Limelight][INFO] done 000027.679 [Limelight][INFO] Cleaning up input stream... 000027.679 [Limelight][INFO] done 000027.679 [Limelight][INFO] Cleaning up video stream... 000027.679 [Limelight][INFO] done 000027.679 [Limelight][INFO] Cleaning up control stream... 000027.679 [Limelight][INFO] done 000027.679 [Limelight][INFO] Cleaning up audio stream... 000027.689 [Limelight][INFO] done 000027.689 [Limelight][INFO] Cleaning up platform... 000027.689 [Limelight][INFO] done 000027.689 [Session][ERROR] Failed to start connection: Limelight returned 4113 000027.698 [Event][WARN] Nobody handles event 119 000028.959 [Discovery][INFO] Start mDNS discovery 000000.002 [APP][INFO] Start Moonlight. Version 1.1.3 000000.267 [APP][WARN] Unable to load audio module: /media/developer/apps/usr/palm/applications/com.limelight.webos/lib/libmoonlight-ndlaud.so: undefined symbol: NDL_DirectAudioClose 000000.282 [APP][INFO] Decoder module: webOS SMP (smp requested) 000000.282 [APP][INFO] Audio module: ALSA (auto requested) 000000.913 [Input][INFO] Input manager init, 171 game controller mappings loaded 000000.939 [UI][INFO] Display size changed to 1920 x 1080 000001.044 [Discovery][INFO] Start mDNS discovery 000012.540 [Discovery][INFO] Stop mDNS discovery 000027.715 [APP][INFO] Quitted gracefully :) 000000.000 [APP][INFO] Start Moonlight. Version 1.1.3 000000.309 [APP][INFO] Decoder module: webOS NDL (ndl requested) 000000.309 [APP][INFO] Audio module: decoder implementation (auto requested) 000000.948 [Input][INFO] Input manager init, 171 game controller mappings loaded 000000.965 [UI][INFO] Display size changed to 1920 x 1080 000001.065 [Discovery][INFO] Start mDNS discovery 000004.242 [Session][INFO] Launch app 12878144... 000005.124 [Discovery][INFO] Stop mDNS discovery 000008.452 [Session][INFO] Video 1920 x 1080, 120 net_fps, 40000 kbps 000008.452 [Session][INFO] Audio 2 channels 000008.453 [Limelight][INFO] RTSP port: 48010 000008.453 [Limelight][INFO] Initializing platform... 000008.453 [Limelight][INFO] done 000008.453 [Limelight][INFO] Resolving host name... 000008.453 [Limelight][INFO] done 000008.453 [Limelight][INFO] Initializing audio stream... 000008.454 [Limelight][INFO] done 000008.454 [Limelight][INFO] Starting RTSP handshake... 000008.620 [Limelight][INFO] Audio port: 48000 000008.625 [Limelight][INFO] Video port: 47998 000008.641 [Limelight][INFO] Control port: 47999 000009.319 [Limelight][INFO] done 000009.319 [Limelight][INFO] Initializing control stream... 000009.319 [Limelight][INFO] done 000009.319 [Limelight][INFO] Initializing video stream... 000009.319 [Limelight][INFO] done 000009.319 [Limelight][INFO] Initializing input stream... 000009.319 [Limelight][INFO] done 000009.319 [Limelight][INFO] Starting control stream... 000009.336 [Limelight][INFO] done 000009.336 [Limelight][INFO] Starting video stream... 000009.361 [NDL][ERROR] NDL_DirectMediaLoad failed: player is not loaded. 000009.361 [Limelight][INFO] Video stream start failed: 4113 000009.361 [Session][ERROR] Connection failed at stage 9 (video stream establishment), errorCode = 4113 (Unknown error 4113) 000009.361 [Limelight][INFO] Stopping control stream... 000009.692 [Limelight][INFO] ENet peer acknowledged disconnection 000009.692 [Limelight][INFO] done 000009.692 [Limelight][INFO] Cleaning up input stream... 000009.692 [Limelight][INFO] done 000009.692 [Limelight][INFO] Cleaning up video stream... 000009.692 [Limelight][INFO] done 000009.692 [Limelight][INFO] Cleaning up control stream... 000009.692 [Limelight][INFO] done 000009.692 [Limelight][INFO] Cleaning up audio stream... 000009.723 [Limelight][INFO] done 000009.723 [Limelight][INFO] Cleaning up platform... 000009.723 [Limelight][INFO] done 000009.723 [Session][ERROR] Failed to start connection: Limelight returned 4113 000009.733 [Event][WARN] Nobody handles event 119 000013.649 [Discovery][INFO] Start mDNS discovery 000022.375 [Session][INFO] Launch app 12878144... 000023.174 [Discovery][INFO] Stop mDNS discovery 000026.590 [Session][INFO] Video 1920 x 1080, 120 net_fps, 40000 kbps 000026.590 [Session][INFO] Audio 2 channels 000026.590 [Limelight][INFO] RTSP port: 48010 000026.590 [Limelight][INFO] Initializing platform... 000026.590 [Limelight][INFO] done 000026.590 [Limelight][INFO] Resolving host name... 000026.590 [Limelight][INFO] done 000026.590 [Limelight][INFO] Initializing audio stream... 000026.591 [Limelight][INFO] done 000026.591 [Limelight][INFO] Starting RTSP handshake... 000026.637 [Limelight][INFO] Audio port: 48000 000026.644 [Limelight][INFO] Video port: 47998 000026.651 [Limelight][INFO] Control port: 47999 000027.168 [Limelight][INFO] done 000027.168 [Limelight][INFO] Initializing control stream... 000027.168 [Limelight][INFO] done 000027.168 [Limelight][INFO] Initializing video stream... 000027.169 [Limelight][INFO] done 000027.169 [Limelight][INFO] Initializing input stream... 000027.169 [Limelight][INFO] done 000027.169 [Limelight][INFO] Starting control stream... 000027.172 [Limelight][INFO] done 000027.172 [Limelight][INFO] Starting video stream... 000027.202 [NDL][ERROR] NDL_DirectMediaLoad failed: player is not loaded. 000027.202 [Limelight][INFO] Video stream start failed: 4113 000027.202 [Session][ERROR] Connection failed at stage 9 (video stream establishment), errorCode = 4113 (Unknown error 4113) 000027.202 [Limelight][INFO] Stopping control stream... 000027.679 [Limelight][INFO] ENet peer acknowledged disconnection 000027.679 [Limelight][INFO] done 000027.679 [Limelight][INFO] Cleaning up input stream... 000027.679 [Limelight][INFO] done 000027.679 [Limelight][INFO] Cleaning up video stream... 000027.679 [Limelight][INFO] done 000027.679 [Limelight][INFO] Cleaning up control stream... 000027.679 [Limelight][INFO] done 000027.679 [Limelight][INFO] Cleaning up audio stream... 000027.689 [Limelight][INFO] done 000027.689 [Limelight][INFO] Cleaning up platform... 000027.689 [Limelight][INFO] done 000027.689 [Session][ERROR] Failed to start connection: Limelight returned 4113 000027.698 [Event][WARN] Nobody handles event 119 000028.959 [Discovery][INFO] Start mDNS discovery ```
mariotaku commented 2 years ago

I have some good news to share. After some debugging with members in moonlight discord server, we seems to be found the reason and made a fix. I'll verify and release an update.

mariotaku commented 2 years ago

Please try version 1.1.4 :D

JM33 commented 2 years ago

1.1.4 is working for me with NDL (also on automatic, which selects NDL). Thank you very much for your help.

mariotaku commented 2 years ago

Fantastic! I'll close after some further verification.

MrPerezident commented 2 years ago

While 1.1.4 does fix the problem for me, does anyone else have a problem with this new version taking way longer to open?

mariotaku commented 2 years ago

While 1.1.4 does fix the problem for me, does anyone else have a problem with this new version taking way longer to open?

Did you updated from some older version?

MrPerezident commented 2 years ago

I tried removing it and adding again with the webOS dev manager app but it didn't fix it. It definitely cleared the data out because I had to re-pair my pc. should I disable and re-enable dev mode to clear everything out? and yes it was from older version 1.1.3.

JM33 commented 2 years ago

I noticed the longer startup too. I did not have the option to update through the dev-manager directly, I downloaded and installed the file. Updated from v1.1.3 also.

MrPerezident commented 2 years ago

Update: I completely disabled then uninstalled dev mode reinstalled re enabled etc. and still much slower start-up with fresh install.

MrPerezident commented 2 years ago

Update 2 lol: It's only slow when on automatic or manually choosing NDL. smp restores fast startup.

And clarification: i'm talking about how long the moonlight app takes to load, not a stream.

mariotaku commented 2 years ago

@MrPerezident Thanks. I think this means NDL is still having some strange issues. I'll follow up and close until the launch time is acceptable. How long does it take to start by the way? Over 10 seconds?

MrPerezident commented 2 years ago

Takes 22.6 seconds to open on my TV. way up from like a couple seconds on SDL. Is the discord server better to report things? Just wondering what's more convenient for you.

mariotaku commented 2 years ago

GitHub should be better for issues while discord is better for general and realtime discussions.

krnlpnck commented 2 years ago

Indeed, the 1.14 it's taking around 22 seconds to load, but it doesn't matter because NDL works now, THANK YOU VERY MUCH!

MrPerezident commented 2 years ago

can confirm here the delay is fixed with todays new 1.1.5 version. nice work!

thehhmdb commented 2 years ago

I've tried the 1.1.5 version and can connect again. Thanks!!!