Code Monkey home page Code Monkey logo

piccap's Introduction

PicCap - Hyperion Sender App | Ambilight for LG WebOS TVs

What's this?

PicCap?

PicCap is an frontend app, which you can install on your TV, to make TV content capturing as easy as possible. It ships and controls the seperated hyperion-webos background native service, which uses capture interfaces on your TV based on reverse engineering, proccesses the output and sends as result a low quality image to a receiver like Hyperion's flatbuffer server.
On newer TVs there is no official way for capturing DRM-protected content like from Netflix or Amazon. This restriction doesn't take place for content comming from an HDMI input.
So currently as a workaround you can play your media using your PC, FireTV-Stick or Chromecast and still enjoy your LEDs.

Hyperion?

hyperion.ng basicly is a server service, which transforms incomming image data to an LED output. The idea is to have an ambilight like it's known from Philipps TVs. It is used in DIY-environments, like builded up in this tutorial.
You can also run Hyperion.ng webOS loader or it's fork HyperHDR webOS loader directly on your webOS TV, so you don't need any further hardware, expect of your LED driver. Both apps can be found in Homebrew Channels app repository.

piccap_preview.mp4

This footage is captured on a webOS5-TV using vtCapture as library.

How to install

What do you need?

  • Root access to your TV
  • webOS 3.4 or above
  • Latest version of Homebrew Channel installed, as we take use of its elevate-service script
  • Brain with some basic knowledge - We haven't encountered any bricks, but standard no warranty clause applies

Easy way

Open Homebrew Channel and install PicCap directly from there.

Manual way

First you will have to build it from scratch, or download pre-compiled IPK from releases.

# Copy IPK to TV 
scp /home/[USER]/downloads/org.webosbrew.piccap_[version]_all.ipk root@[TVIP]:/tmp/org.webosbrew.piccap_[version]_all.ipk

# On TV install IPK
luna-send -i -f luna://com.webos.appInstallService/dev/install '{"id":"org.webosbrew.piccap","ipkUrl":"/tmp/org.webosbrew.piccap_[version]_all.ipk","subscribe":true}'

How to use

First start

Wait a few secounds to let the service elevate root permissions through Homebrew Channel-Service. Check status message in bottom right corner, to see when it's done.

Settings

  • If you use hyperion.ng or HyperHDR loader, you will have to fill 127.0.0.1 as IP address.
  • Change priority if you have other capture or effect sources for your Hyperion or HyperHDR instance.

Backends

We use different libraries to capture TVs content. These are used by hyperion-webos and described here.

Advanced settings

Some TV models are comptabile with a specific backend, but require a slightly different routine to work reliably. You can find an explaination for these so called quirks here.

Development

Dependencies

To build PicCap and hyperion-webos you will need:

You will also need clang-format-14 if you want to contribute.

How to build

We have tried to make build proccess as easy as possible. After building all files can be found in ./build.

# Setup buildroot-nc4 (needed for hyperion-webos)
cd /desired/path
wget -O toolchain.tar.gz $TOOLCHAIN_URL_FROM_RELEASES
tar -xvzf toolchain.tar.gz
rm toolchain.tar.gz
arm-webos-linux-gnueabi_sdk-buildroot/relocate-sdk.sh
export CMAKE_TOOLCHAIN_FILE=/desired/path/arm-webos-linux-gnueabi_sdk-buildroot/share/buildroot/toolchainfile.cmake

# Clone project and submodules
git clone --recursive https://github.com/TBSniller/piccap.git
cd ./piccap

# Install node dependencies
npm install

# Build
npm run-script build-all        # Build PicCap & hyperion-webos + deps
npm run-script build-frontend   # Build PicCap only
npm run-script build-backend    # Build hyperion-webos + deps only

# Package IPK-file for TV installation
npm run-script package

Other

Known issues

Expect bugs - This app is still in early development
No issues are known so far, if you find one, feel free to raise an issue!

Please see hyperion-webos#known-issues for issues regarding the backend service. - This only is the frontend application and has nothing to do with capture related things!
Version tracker is available in hyperion-webos#16.

Credits

This project would never ever exists without help from @Mariotaku and @Informatic. Both programmed important things at the beginning of this whole ambilight project. @tuxuser also made some important changes in the mid of this project.
Share them some love if you can, they teached and showed me alot!

You should also check out the other contributors. Some nice enhancements wouldn't be there without them :)

Check out OpenLGs-Discord server, if you have some questions. You will find a very helpful community. <3

Screenshots

Main
Settings
Advanced settings
Logs
About

piccap's People

Contributors

informatic avatar tbsniller avatar tuxuser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

piccap's Issues

What do you think regarding use of PicCap on long run?

Actually, this is not an issue, but I don't know where else would ask. My apologize if this is not proper place, and please be free to close it immediately.

Model: LG OLED55C11LB
WebOS version: 6.2.0-35 (kisscurl-kavir)
System version: 3.21.20

Rooted with https://rootmy.tv/ and installed PicCap app from Homebrew Channel. Current version of PicCap on my TV is v0.4.1

App is very good, everything is working like a charm and I am very happy that I have single "capture device" for all apps, HDMI inputs, etc. BIG THANKS for that!

However, when I login to TV via SSH and look to processes via top command, I can see that hyperion-webos process is using ~115% of CPU most of the time. Of course, top is showing more than 100% because of multi core processor I think, but global remote monitoring of MobaXterm is also showing noticeable higher usage than usual, ~40% for whole CPU with all their cores.

image

On the other hand, if I turn off PicCap service, hyperion-webos process is normally not listed in top any more, and global CPU usage is about 5-9%, with certain short spikes up to 35-40%. Please note, for both cases, I'm talking about TV "IDLE" state, i.e. when TV is on home launcher, not playing any video stream, etc.

I suppose this maybe could be tweaked little bit and we could got less CPU usage, but I also know that this cannot be too much and that such a type of service must use more CPU resources than other services. My question is actually for community: What do you think, is it risky to use this on long run? I mean, I'm using this combo as daily driver since April this year: Hyperion on the other PC (home server) + PicCap on TV. Every time when I turn on TV, PicCap is auto started, I have ambilight and I'm happy 😁. But on the other hand, my TV CPU is working on 40-50% all the time. Could this shorten it's life?

Thanks.

Can't get Root Status

Hey, i've just rooted my LG UH950V on rootmy.tv. It seems ok, installed homebrew app, and then i have installed youtube adfree, and piccap. Youtube works ok, but piccap cant get root access. Its just loading. The only function is working is the reboot button.
In homebrew settings it says that root is ok, turned on ssh and cant access it.
I tried reinstalled piccap but not worked. After that i made a factory restet on the tv, rooted it again, installed piccap again, and nothing changed.
I turned of that fast boot stuff in tv settings before the rooting, and checked that dev tools app is not installed.
Is there something i did wrong???
Im totally noob in that root and command line things, so please be very accurate when you give me "orders" or need something.
Thank you for reading, and the help :)

Captured picture looks dim in hyperion.ng

The captured picture looks dim somehow and this is reflected in dim ambilight. Could this be related to HDR an/ or Dolby Vision? Is it possible to make the image brighter?

Does it really need root?

Hey @TBSniller ,

does it really need to be run with a rooted TV? Would it also work with the developer mode enabled and always extending the time before it runs out? (After 50h)

piccap won't start capture

Hi

I've got a 2021 LG TV that's rooted and I've managed to install the Homebrew channel aswell as piccap. I've done the elevated privileges as per the readme and told to it to use the new libraries but it always fails to start the capture.

I've run the following in order to try and debug the issue:

/media/developer/apps/usr/palm/services/org.webosbrew.piccap.service/hyperion-webos_libvtcapture -a xxx.xxx.xxx.xxx

and get the following output:

Init graphical capture..
HAL_GAL_Init done! Exit: 0
HAL_GAL_CreateSurface done! SurfaceID: 250
HAL_GAL_CaptureFrameBuffer done! 0
HAL_GAL: gfx open ok result: 14
Halgal done!
Init video capture..
Driver created!
vtCapture_init done!
Caller_ID: org.webosbrew.piccap.capUsage: hyperion-webos -a ADDRESS [OPTION]... Client ID: 6355432 
vtCapture_preprocess failed: 1
Quitting...
-- Quit called! --
[1]+  Stopped (signal)           /media/developer/apps/usr/palm/services/org.webosbrew.piccap.service/hyperion-webos_libvtcapture -a xxx.xxx.xxx.xxx

Any ideas what's going wrong or how I can find out more information?

Thanks

Piccap autstart does not work

Hi, first of all: thanks everyone who contributed to this project. :-)

I have an issues with autostart on my TV:

    "board_type": "O18_DVB",
    "hardware_id": "HE_DTV_W18O_AFABABAA",
    "product_id": "OLED65C8LLA",
    "core_os_release": "4.4.0-9",
    "webos_manufacturing_version": "05.40.09",

using piccap version 2.3

When I turn on the TV, background lit up, but stays on white color. I need to go into Piccap and stop & start service to have connection to the hyperion server. then it works fine. Any Idea why it does not work automatically?

libvt/libdile_vt webos 6.0-6.2

Hi i would provide errors from this libs on my webos tv
oled55c1rla
webos 6.2-32
22.01.2022 current piccap version 0.2.3

libdile

/media/developer/apps/usr/palm/services/org.webosbrew.piccap.service/hyperion-webos -S -x 128 -y 72 -a 192.168.1.75 -b libdile_vt
     0.000s [INFO main                ] Starting up...
     0.022s [INFO capture_preinit     ] Preinit called. Copying config..
     0.022s [INFO capture_init        ] Init called
     0.022s [INFO capture_start       ] Capture start called.
     0.025s [WARN capture_start       ] DILE_VT_CreateEx failed, attempting DILE_VT_Create...
     0.026s [WARN capture_start       ] Failed to get DILE_VT context!
     0.026s [ ERR capture_main        ] Error! capture_start. Code: -1
     0.026s [ ERR main                ] ERROR: Capture main init failed!

libvt

/media/developer/apps/usr/palm/services/org.webosbrew.piccap.service/hyperion-webos -S -x 128 -y 72 -a 192.168.1.75 -b libvt
     0.000s [INFO main                ] Starting up...
     0.026s [INFO capture_preinit     ] Preinit called. Copying config..
     0.030s [INFO egl_init            ] [EGL] Display, major = 1, minor = 4
     0.034s [INFO egl_init            ] [EGL] Surface size: 128x72
     0.034s [INFO egl_init            ] [EGL] init complete
     0.035s [INFO capture_init        ] [VT] VT_CreateVideoWindow
     0.035s [INFO capture_init        ] [VT] window_id=0
     0.035s [INFO capture_init        ] [VT] VT_AcquireVideoWindowResource
     0.052s [INFO capture_init        ] [VT] resource_id=1985336
     0.053s [INFO capture_init        ] [VT] VT_CreateContext
     0.149s [INFO capture_init        ] [VT] context_id=2044128
     0.151s [INFO capture_init        ] [VT] VT_SetTextureResolution
     0.151s [INFO capture_init        ] [VT] VT_SetTextureSourceRegion
     0.152s [INFO capture_init        ] [VT] VT_SetTextureSourceLocation
     0.152s [INFO capture_init        ] [VT] VT_RegisterEventHandler
     0.153s [INFO connection_loop     ] Connecting hyperion-client..
     0.156s [INFO connection_loop     ] hyperion-client connected!
     0.157s [ ERR capture_frame       ] VT_GenerateTexture failed
     0.174s [ ERR capture_frame       ] VT_GenerateTexture failed
     0.190s [ ERR capture_frame       ] VT_GenerateTexture failed
     0.207s [ ERR capture_frame       ] VT_GenerateTexture failed
     0.224s [ ERR capture_frame       ] VT_GenerateTexture failed
     0.240s [ ERR capture_frame       ] VT_GenerateTexture failed
...

libvtcapture works well even with autostart
libvtcapture not working until reboot if libdile_vt called by hyperion-webos

No loading status y dosn't start

Hi

Version software: 05.60.30
Tv: 55UH770V
Version WebOs: 3.4.0-5710

In homebrew channel (0.5.1) appears "Root status OK"

1º I install piccap, select autostart and restart tv.
2º Install HyperHDR, select autostar and restart tv
3º Install Backends, select all steps with "success" result
4º Launch Piccap

When launch piccap I see that de status is constantly appears "loading". I push to start and appears the message:

Failed:
{"returnValue":false,"errorCode":-1,"errorText":"Denied method call "start" for category "/""}

It also happens that when I push the save button, it stays status "saving" all time

Thanks

list of acceptable resolutions

Hi - me again.

After the previous issue where the default capture resolution is set to 360 x 180 which doesn't work for my TV - is there a way to determine acceptable capture resolutions?

Cannot capture HDMI sources

I have an AppleTV plugged into my LG TV.
PicCap captures the UI of the TV just fine (like, menus and the such), but no HDMI sources at all.
Just installed today, so on the latest release.
webOS version (not TV version) is 4.4.2-10
I assume a part of the issue is it says Video: Not capturing in the UI no matter which option I pick.

Do I need to pick a special combination of quirks or something?

The TV info command result is

root@LGwebOSTV:~# grep -h -E '"(hardware_id|core_os_release|product_id|webos_manufacturing_version|board_type)"' /var/run/nyx/*
    "board_type": "O18_ATSC",
    "hardware_id": "HE_DTV_W18O_AFABATAA",
    "product_id": "OLED65C8PUA",
    "core_os_release": "4.4.2-10",
    "webos_manufacturing_version": "05.50.10",

Piccap doesn't work via GUI, SSH works very well

Report here on my progress regarding Ambilight with LG-TV Piccap and Hyperion.
LG OLED 65B7D year 2017 with WebOs 3.9
Webosbrew with Piccap 1.0. Everything installed according to the instructions and the permission file for the Homebrew Channel set to: {"public": ["org.webosbrew.hbchannel.service / *"], "ares.webos.cli": ["org.webosbrew.hbchannel. service / * "]}
Piccap GUI does not work / does not start and is also not saved. Start manually via ssh command : "/media/developer/apps/usr/palm/services/org.webosbrew.piccap.service/hyperion-webos_libvt -a 192.168.x.x" works great/ perfectly with Hyperion NG, and in consoles stands the following:
[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] context_id=1217344
[VT] VT_SetTextureResolution
[VT] VT_SetTextureSourceRegion
[VT] VT_SetTextureSourceLocation
[VT] VT_RegisterEventHandler
Start connection loop.
Hyperion gets the data from Piccap and everything is OK. Something does not work when called via GUI, although all libraries are available.
If I enter "find / | grep libvt" in ssh, this comes out:
/etc/pmlog.d/libvt.conf
/etc/pmlog.d/libvtv.conf
/media/developer/apps/usr/palm/services/org.webosbrew.piccap.service/hyperion-webos_libvt
/media/developer/apps/usr/palm/services/org.webosbrew.piccap.service/hyperion-webos_libvtcapture
/media/developer/apps/usr/palm/services/org.webosbrew.piccap.service/setlibvtcaptureperms.sh
/mnt/lg/appstore/developer/apps/usr/palm/services/org.webosbrew.piccap.service/hyperion-webos_libvt
/mnt/lg/appstore/developer/apps/usr/palm/services/org.webosbrew.piccap.service/hyperion-webos_libvtcapture
/mnt/lg/appstore/developer/apps/usr/palm/services/org.webosbrew.piccap.service/setlibvtcaptureperms.sh
/usr/lib/libvt.so.1
/usr/lib/libvt.so.1.0.0
/usr/lib/libvtv.so.1
/usr/lib/libvtv.so.1.0.0
/usr/lib/opkg/info/libvt1.control
/usr/lib/opkg/info/libvt1.list
/usr/lib/opkg/info/libvt1.postinst
/usr/lib/opkg/info/libvtv1.control
/usr/lib/opkg/info/libvtv1.list
/usr/lib/opkg/info/libvtv1.postinst
/old_root/etc/pmlog.d/libvt.conf
/old_root/etc/pmlog.d/libvtv.conf
/old_root/usr/lib/libvt.so.1
/old_root/usr/lib/libvt.so.1.0.0
/old_root/usr/lib/libvtv.so.1
/old_root/usr/lib/libvtv.so.1.0.0
/old_root/usr/lib/opkg/info/libvt1.control
/old_root/usr/lib/opkg/info/libvt1.list
/old_root/usr/lib/opkg/info/libvt1.postinst
/old_root/usr/lib/opkg/info/libvtv1.control
/old_root/usr/lib/opkg/info/libvtv1.list
/ld_root/usr/lib/opkg/info/libvtv1.postinst
If I enter "find / | grep libgm" in ssh this comes out:
/usr/lib/libgm.so.1
/usr/lib/libgm.so.1.0.0
/usr/lib/libgmodule-2.0.so.0
/usr/lib/libgmodule-2.0.so.0.4000.0
/usr/lib/libgmp.so.3
/usr/lib/libgmp.so.3.4.1
/usr/lib/opkg/info/libgmp3.control
/usr/lib/opkg/info/libgmp3.list
/usr/lib/opkg/info/libgmp3.postinst
/old_root/usr/lib/libgm.so.1
/old_root/usr/lib/libgm.so.1.0.0
/old_root/usr/lib/libgmodule-2.0.so.0
/old_root/usr/lib/libgmodule-2.0.so.0.4000.0
/old_root/usr/lib/libgmp.so.3
/old_root/usr/lib/libgmp.so.3.4.1
/old_root/usr/lib/opkg/info/libgmp3.control
/old_root/usr/lib/opkg/info/libgmp3.list
/old_root/usr/lib/opkg/info/libgmp3.postinst.
What else should I try to be able to start the whole Piccap app via GUI ?
Greetings satgit62

Piccap says its capturing "true" and Hyperion is receiving a connection to flatbuffers but nothing.

Model: LGCX77PUA
Firmware: 03.21.18
WebOS: 5.21-290906

root@LGwebOSTV:~# /media/developer/apps/usr/palm/services/org.webosbrew.piccap.service/hyperion-webos_libvt -a "hyp-ip"
[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=-4011
[VT] VT_CreateContext
[VT] VT_CreateContext Failed

root@LGwebOSTV:/media/developer/apps/usr/palm/services/org.webosbrew.piccap.service# ./hyperion-webos_libvtcapture
./hyperion-webos_libvtcapture: error while loading shared libraries: libhalgal.so.1: cannot open shared object file: No such file or directory

root@LGwebOSTV:/media/developer/apps/usr/palm/services/org.webosbrew.piccap.service# whereis libhalgal.so.1
libhalgal.so: /usr/lib/libhalgal.so /usr/lib/libhalgal.so.0 /usr/lib/libhalgal.so.2

Stop working after some time

Thanks for this great project, it's much easier than the HDMI splitter/capture flow and works with the native app in the TV.

The issue I got is: after running some time it just stops working somehow. The UI still shows Capture running: true, but all LED are dark and the "Remote control" UI in Hyperion shows nothing for "Source selection" (normally it shows a webos flatbuffer server there). I need to click "Start" again in the PicCap UI to make it work again. I guess the app process somehow crashes? Is there any logs I can check?

WebOS firmware version: 05.00.15

No HDMI sources are grabbed.

Hi i've got an LG OLED65C17LB with latest firmware. Due to crashd exploit i was able to root it.
I installed homebrew, hyperion ng and piccap. When i launch hyperion and piccap both show that root status is ok.

while capturing live video in hyperion i can see the gui and built in tv apps but as soon as i switch to an hdmi source (fire tv stick) it only shows a blank black screen.

do i have to change any settings to get this working?

Thanks!

Broken picture in hyperion

Hi. In hyperion sending broken picture
My TV is LG 65NANO916 2021

This is piccap setting {"backend":"libvtcapture","address":"192.168.10.39","port":19400,"width":360,"height":180,"fps":0,"autostart":true,"nogui":false,"novideo":false}

Снимок экрана 2022-01-29 в 15 05 19

Autostart PicCap

Hey, i have the problem that Piccap doesn't start automaticly anymore by switching on the tv.
I have to start the PicCap App by hand, then it turns on.
Quick Start+ is allready disabled.
I checked root, but everthing seems ok so far.
Maybe someone has an idea what could be the reason?

TV: OLED55BX9LB
Piccap: v2.3
Setting: libtvcapture + libhalgl / video capture on / grphic capture on

Thank you vor your help!

Not getting live video on hyperion

Good day!
Thanks for your good work! Tell me, please, I can not set up the transfer of images to hyperion. I have PicCap installed on webos 4.9.0, software version 05.00.15, libdile_vt library, resolution 192x108, framerate 0. PicCap starts, writes that the picture is being transmitted. I open Hyperion (installed on BananaPi M2 Zero or on a PC, the situation is the same). In Remote Control, a Flatbuffers server with the correct IP address of the TV is determined. But when you turn on live video, there is only one static blurry first frame. And nothing changes. Tell me what could be a problem?
Some addition: all it works over ethernet, no wifi.

Webos 3.4 M16_DVB piccap 0.2.3 and 0.3.0 (Build#55) not running

Hey, i have installed piccam like a year ago on a different TV, it work like a charm, but can't make work this one.
"board_type": "M16_DVB",
"hardware_id": "HE_DTV_W16M_AFADABAA",
"product_id": "55UH950V-ZA",
"core_os_release": "3.4.0-6107",
i have tried it with the version from homebrew chanel (0.2.3) but it gives me the following:

luna-send -n 1 -f luna://org.webosbrew.piccap.service/isRunning '{}'
{
"returnValue": true,
"isRunning": true
}

with the latest 0.3.0 build#55 get the following:

luna-send -n 1 -f luna://org.webosbrew.piccap.service/isRoot '{}'
{
"errorCode": -1,
"returnValue": false,
"errorText": "Unknown method "isRoot" for category "/""
}

What else should i try? Thank You :)

webOS version and piccap

Hi
first of all thank you for this awesome piece of software. i have been hoping for something like this ever since i first put up my LEDs on the TV
quick question regarding webOS: Will this work with any firmware version (i.e. the latest) or just specific versions (i.e. require a downgrade)? still somewhat reluctant to root my OLED C9 :)
thanks

FPS issue

Hi @TBSniller - I noticed a message on the UI that limiting FPS doesn't seem to work properly.

The usage text suggests that not setting the FPS argument results in an unlimited FPS cap but my Hyperion receives 15 FPS in this scenario.

Trying to set the FPS to 60 results in a small bump to 17 FPS.

Is the issue that the CPU in the TV is unable to process the Flat Buffers packets faster than 15 Hz? Is this functionality just not ready? Or is there likely something wrong with my Hyperion?

Thanks

Piccap app won't Start the service automatically

Hi @TBSniller , when i turn off the Tv and turn it back on, the Piccap app won't Start the service automatically.
I always have to open piccap and start it manually.

By the way, thx for this amazing program and the effort you provide for us.

webOS TV 4.4.0 LGwebOSTV

/ # grep -h -E '"(hardware_id|core_os_release|product_id|webos_manufacturing_ver
sion|board_type)"' /var/run/nyx/*
"board_type": "M16P_DVB",
"hardware_id": "HE_DTV_W18H_AFADABAA",
"product_id": "OLED65B87LC",
"core_os_release": "4.4.0-9",
"webos_manufacturing_version": "05.40.09",
/ #

Service not starting after update

Hi there,

i updated piccap before i updated to the latest hombrew version. after that piccap was running but i then accidentially pressed reset and now the service isn´t starting again. i think there is some stuff from the old version which is the problem. here the log as picture:

1665516399165

thank you very much in advance and thank you for the great product :)

Does not work with netflix / prime video

Hello,

I have new tv (2020+) and using libvtcapture. Everything works fine with external sources, youtube, plex etc. but netflix and prime video images are not captured correctly, actual image is blank (i can see UI parts are being streamed to hyperion correctly though). I assume this is due to DRM; Is there any workaround for that ?

BTW. many thanks for all involved in this awesome project!

piccap cant get root status after update

I had a running system and it was so boring that I tried to update homebrew channel from 0.5.0 to 0.5.1 and piccap from 0.2.3 to 0.4.2 (argh)
now piccap cant get root status and service cant be started. hbchannel exec failed!
I removed piccap and homebrew channel and rooted tv again. I never made an tv firmware update.
its still the same. homebrew channel says root status: ok.
ssh is working, so I think piccap have a big problem with my tv. I dont know how to solve the problem.

the problem is old, i read here about a same thing, but it should be fixed in 0.4.1.

I removed piccap 0.4.2 and installed 0.2.3 - all working fine!
I updated to 0.4.1 - same fault: calling Piccap-Service to get root-status

Board type | M19_DVB
Hardware ID | HE_DTV_W19H_AFADABAA
Product ID | OLED65B97LA
webOS TV version | 05.20.06
Software Version | 4.9.5-6

20221024_153815_HDR
20221024_144214_HDR
20221024_145413_HDR

UI cannot be navigated via regular remote

Using a TV with a regular (not so-called "Magic remote") - the piccap application is not possible to use.

  • Boxes or buttons are not highlightable / choosable
  • No cursor for choosing elements appears either

Any help on what I am doing wrong is appreciated
cheers

No signal at hyperion, despite capture running: true

Hi, managed to root the TV, install PicCap, ensured I got root status (the blurb at the top of the screen has now disappeared), changed the file as per the documentation, pointed the app to my hyperion set up, and have status: capture running: true.

but no image actually GETS to hyperion :( Any ideas? Thanks

root@LGwebOSTV:~# /media/developer/apps/usr/palm/services/org.webosbrew.piccap.service/hyperion-webos_libvt -a 192.168.0
.236
[EGL] Display, major = 1, minor = 4
[EGL] Surface size: 192x108
[EGL] init complete
[VT] VT_CreateVideoWindow
[VT] window_id=0
[VT] VT_AcquireVideoWindowResource
[VT] VT_AcquireVideoWindowResource Failed

SK8100
05.30.10
webos 4.3.0-9604

PicCap UI not working on 3.4

Hi,

Carrying on from some of the Discord chat over the weekend - now that hyperion-webos is fixed for 3.4.0 / the M16_DVB board.

While the UI loads, root status never loads, nor is the UI able to save or load configuration, or start/stop the service.

image

The only functioning button is the "Reboot TV" button.

"board_type": "M16_DVB",
"hardware_id": "HE_DTV_W16N_AFADABAA",
"product_id": "49UH750V-ZA",
"core_os_release": "3.4.0-5908",
"webos_manufacturing_version": "05.60.25"

WebOS homebrew 0.4.0 installed, root reported as "ok" in homebrew.

capture running false

i have Hyperion configured to run on my home server (192.168.1.12:19400) and i have the webos client pointed to that but it shows capture running false

i'm not sure what im doing wrong to get it to activate

LG OLED65B6V low FPS

Hello,

I just rooted my OLED B6 (2016) and installed the app. I get the stream in hyperion, but very low FPS (I would say about ~5 fps).

I used the following command :

luna-send -n 1 -f luna://org.webosbrew.piccap.service/setSettings '{"returnValue": true, "backend": "libdile_vt", "port": 19400, "width": 192, "height": 108, "captureUI": false, "ip": "192.168.1.149", "fps": 30, "backmsg": "Settings got successfully!", "captureVideo": true, "autostart": true}'

Tried to use lib_vt, not working.

My TV :

"board_type": "K2L_DVB",
"hardware_id": "HE_DTV_W16K_AFADABAA",
"product_id": "OLED65B6V-Z",
"core_os_release": "3.4.0-5709",
"webos_manufacturing_version": "05.60.25",

Could someone help ? Thank you !

Service crashes sometimes & not restarting

Hi.

First of all a HUGE THANKS to the developers of this project, love it!

I installed piccap and it is working fine for some time (sometime 2 hours), then the service crashes and won't restart.
Logging in through ssh and running "libvtcapture -a IP" restarts the service, but then I have to keep the ssh session open..

I have webos 5.3.0-19 running.

Are there any logs for the service?
How is the service called?
Where is the service registered for autostart?
I couldn't find anything in "/etc/systemd/services/"

Piccap settings

Hi there,

how to correctly setup the height and width in piccap?

External configuration webinterface

As already pointed out on discord I would like the idea to have a external webinterface. So that you would be able to configure PicCap with a browser from a desktop or a smartphone instead of using the app on the TV.

It could be implemented like that: standalone app for example in Google Go (native) which serves a http server + webinterface. When the user uses the save functionality a json configuration file is written to a predefined location on the TV where the new PicCap service can pick it up and work with it.
This would be the MVP in my eyes. After that it could be extended for more features like multiple configurations (if needed), screen live view or whatever is needed.

Picture distortion being received from PicCap

I feel that there is some vsyncing issue with the image. When piccap runs on the homescreen on webOS the image is fine, but then the image distorts when opening a video app or going to hdmi input. Any idea how this can be fixed?
image

Installed just fine but settings are not saved!

Thanks for your effort! Had to test piccap directly on my C9. TV is rooted and piccab installed just fine according to your manual. Wget ist working and makes downloading the app to TV much easier btw.

When started on TV the app would not save settings and did not start. I looked at dmesg but this did not really help. Are any logs written? Anything I could test for you?

Uninstalled it for now and went back to hardware-solution with HDMI-splitter/-grabber!

Capturing stopped when goes back from screen saving

Hi,

First, thank you for your amazing work.

I'm having trouble with the screen saver.
When the screen saver starts, it closes both Hyperion and PicCap, that's OK.
But when it goes back to the screen:

  • Hyperion restart well
  • PicCap doesn't send data any more

I have to stop/start the service to make it send data again.
BTW: When Hyperion restarts, I can see the light effect pattern, so it is connected to lights.


    "board_type": "M16P_DVB",
    "hardware_id": "HE_DTV_W18H_AFADABAA",
    "product_id": "OLED55B8PLA",
    "core_os_release": "4.4.0-12",
    "webos_manufacturing_version": "05.40.26",

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.