-
Notifications
You must be signed in to change notification settings - Fork 32
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
Doesn't work for webos 4.9 ... #23
Comments
First try changing resolution by adding these options: Then you can try downloading latest development CI build here: https://github.com/webosbrew/hyperion-webos/actions/runs/1612798406 Seems like this TV may work with |
Such results:
root@LGwebOSTV:/usr/lib# ls -l | grep libdile_vt |
|
Can you please check if this command creates a proper capture image, with valid Video and UI layers? (eg. simple check would be to open YouTube, start any video and pause it - paused video is still displayed on a capture) luna-send -n 1 -f 'luna://com.webos.service.tv.capture/executeOneShot' '{"path":"/tmp/capture.png","method":"DISPLAY","format":"PNG"}' This can later be extracted using |
this is the output i got: -root@LGwebOSTV:~# LD_LIBRARY_PATH=. ./hyperion-webos -b libvt -a 192.168.178.107 -x 384 -y 216 -root@LGwebOSTV:~# LD_LIBRARY_PATH=. ./hyperion-webos -b libdile_vt -a 192.168.178.108 -x 384 -y 216 for those i needed to correct some permissions, because otherwise i just got a permission denied as root@LGwebOSTV in /tmp -luna-send -n 1 -f 'luna://com.webos.service.tv.capture/executeOneShot' '{"path":"/tmp/capture.png","method":"DISPLAY","format":"PNG"}' i tried using the #6 service rewrite from piccap: TBSniller/piccap#18 unfortunatly i dont now how to uninstall piccap to try it again from scratch. i think i messed some things up here. |
Used this build: https://github.com/webosbrew/hyperion-webos/actions/runs/1640930323 The result is like this: root@LGwebOSTV:/tmp# LD_LIBRARY_PATH=. ./hyperion-webos -b libdile_vt -a 192.168.1.97 -x 384 -y 216 This is good? root@LGwebOSTV:/tmp# luna-send -n 1 -f 'luna://com.webos.service.tv.capture/executeOneShot' '{"path":"/tmp/capture.png","method":"DISPLAY","format":"PNG"}' The image .png was captured correctly! |
That build is very early WIP branch for logging refactor, and shouldn't really change anything, from the one I posted above. Let us merge everything together and we'll come back to you - is that ok? We'll likely need to reverse a little bit how your TV does screenshot capture, and that'll need some time. |
Thank you, I hope for you! |
So seems like the issue here is that on K5LP platform |
Seems like that TV also uses pixelFormat 4 (YUV422sp) we don't support yet, so needs adjusting for that. But the outlook is very positive, we'll likely have a working support for these models this week. |
Great news, thanks! |
Managed to implement YUV422sp, but seems like that device doesn't want to update the captured texture after initial context dile_vt creation. We are still investigating this. Changing capture region on every frame causes refreshes, however it also peaks at around 11fps. Basically useless. |
I want to test it. Used this build: https://github.com/webosbrew/hyperion-webos/actions/runs/1679191069 root@LGwebOSTV:/tmp# LD_LIBRARY_PATH=. ./hyperion-webos -b libvt -a 192.168.1.97 -x 384 -y 216 This error has not occurred before. |
You can add BTW that version does not contain "region changing" hack I mentioned, but you still can try that anyways. |
root@LGwebOSTV:/tmp# LD_LIBRARY_PATH=. ./hyperion-webos -b libvt -a 192.168.1.97 --no-service -x 384 -y 216 root@LGwebOSTV:/tmp# LD_LIBRARY_PATH=. ./hyperion-webos -b libdile_vt -a 192.168.1.97 --no-service -x 384 -y 216 On the hyperion server there is only one frame in live video...
Perhaps I missed it. Where can I read about this? |
It was the matter of adding these absolutely disgusting lines at the end of if (framecount % 2 == 0) {
region.width = region.width + 1;
} else {
region.width = region.width - 1;
}
DILE_VT_SetVideoFrameOutputDeviceOutputRegion(vth, DILE_VT_DISPLAY_OUTPUT, ®ion); |
It turns out that things are bad... And where is the build with the change capture region? I will test it. |
No need to yet, I spent whole evening yesterday testing out with one of the people on Discord. I'll post here whenever I find something out. |
Just got a report that |
I tested it and it works! It remains only for the LEDs to light up, but this is already in the hyperion settings. Thanks a lot! |
It'd be great if (some of) you filled out a comment in that issue, whenever you have some free time :) |
Hi @Sanek78 ! How did you fix the "one frame" problem? I have the same on my setup. Thank you ! |
Hi @mrhackcz! Updated to firmware 05.20.08, got root (RootMyTV v2). Everything is working now. |
I just upgraded from 05.10.25 to 05.20.08 and everything works. Using libdile_vt
Tested with both DRM (netflix) and non-DRM (youtube) content |
When I use Libdile_vt I get a capture image that will never change. |
It works for me with both Old TV (libvt+libgm) and libdile_vt. |
@Sanek78 @janchrillesen haven't you test 05.20.15 firmware? LG shipped it and I'm afraid it may be unrootable yet. |
No I didn't update it, why did you update it? in any case there is a good
chance that it will be patched now. we will have to wait for a new version
of Rootmytv
Le mar. 15 mars 2022 à 19:15, George Melikov ***@***.***> a
écrit :
… @Sanek78 <https://github.com/Sanek78> @janchrillesen
<https://github.com/janchrillesen> haven't you test 05.20.15 firmware? LG
shipped it and I'm afraid it may be unrootable yet.
—
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN73VY7O32IJBSDEIPVTNB3VADHS7ANCNFSM5KXY7RPQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
@Stef67000 I'm on older version now, which has problems with image capture. |
With latest releases, we now support webOS 3.4 and above. |
Super project, thanks! But it doesn't work for me. Here is the log:
root@LGwebOSTV:/media/developer/apps/usr/palm/services/org.webosbrew.piccap.service# /media/developer/apps/usr/palm/services/org.webosbrew.piccap.service/hyperion-webos_libvt -a 192.168.1.97
[EGL] Display, major = 1, minor = 4
[EGL] Surface size: 192x108
[EGL] init complete
[VT] VT_CreateVideoWindow
[VT] window_id=0
[VT] VT_AcquireVideoWindowResource
[VT] resource_id=85
[VT] VT_CreateContext
[VT] VT_CreateContext Failed
"board_type": "K5LP_DVB",
"hardware_id": "HE_DTV_W19P_AFADABAA",
"product_id": "60UM7100PLB",
"core_os_release": "4.9.0-53904",
"webos_manufacturing_version": "05.00.15",
Can I fix it somehow?
The text was updated successfully, but these errors were encountered: