Live TV is not sending anything
ccvh opened this issue · 3 comments
I‘ve set up an Hyperion on Pi, LEDs driven by wled and I’m using PicCap for TVs input capture. On HDMI / Apps (excluding DRM protected) everything works like a charm.
When switching to live TV the led‘s just turn off (no preview in Hyperion as well). Toasts (like „PicCap is running“) appear and trigger the correct leds to light up.
Live TV comes via cable / not encrypted (Germany, Vodafone Cable)
Current TV / Version:
"board_type": "LM21U_DVB",
"hardware_id": "HE_DTV_W21U_AFADATAA",
"product_id": "55NANO869PA",
"core_os_release": "6.2.0-31",
"webos_manufacturing_version
I disabled auto-start in the piccap application, and then used ssh root@your.ip default password alpine to place a file in the folder /var/lib/webosbrew/init.d called piccap with the contents
#!/bin/bash
/media/developer/apps/usr/palm/services/org.webosbrew.piccap.service/hyperion-webos -S --no-service --verbose --config=/media/developer/apps/usr/palm/services/org.webosbrew.piccap.service/config.jsonthen chmod +x piccap so it can be executed
This is basically just a different form of the auto-start script included with piccap.
The last, and most important step, is to set the flatbuffer server timeout on your hyperion server to something like 300 seconds.
For some reason, the libvtcapture fails at first, and starts working properly around 30-45 seconds after launch. Works with quick start+ enabled
Here is my successful boot stacktrace for reference
[TCON] MApi_XC_Get_Tcon_Type 6521: u8tcontype = 2
0.178s [INFO capture_init ] HAL_GAL_Init done! Exit: 0
0.183s [INFO capture_init ] HAL_GAL_CreateSurface done! SurfaceID: 0
0.251s [INFO capture_init ] HAL_GAL_CaptureFrameBuffer done! 0
0.252s [INFO capture_init ] HAL_GAL: gfx open ok result: 22
0.252s [INFO capture_init ] Halgal done!
0.252s [INFO capture_init ] Init video capture..
0.273s [INFO capture_init ] Driver created!
0.273s [INFO vtcapture_initialize] Starting vtcapture initialization.
0.337s [INFO vtcapture_initialize] vtCapture_init done! Caller_ID: hyperion-webos_service Client ID: 3111232
0.337s [INFO vtcapture_initialize] Skipping successfull vtCapture_init to prevent start after first try.
0.339s [INFO vtcapture_initialize] vtCapture_postprocess done!
0.341s [INFO vtcapture_initialize] vtCapture_finalize done!
0.341s [INFO capture_init ] vtcapture not ready yet!
0.341s [INFO capture_init ] Malloc hal+vt vars..
0.344s [INFO capture_init ] Malloc hal+vt vars finished.
0.344s [ DBG capture_main ] Starting capture..
0.344s [INFO capture_start ] Starting capture thread..
0.344s [ DBG capture_main ] Capture main init completed. Creating connection thread...
0.345s [ DBG connection_loop ] Starting connection loop
0.345s [INFO connection_loop ] Connecting hyperion-client..
0.353s [INFO connection_loop ] hyperion-client connected!
18.955s [INFO send_picture ] Try to init vtcapture again..
18.955s [INFO vtcapture_initialize] Starting vtcapture initialization.
19.014s [INFO vtcapture_initialize] vtCapture_init done! Caller_ID: hyperion-webos_service Client ID: 3111232
19.021s [INFO vtcapture_initialize] vtCapture_preprocess done!
19.021s [INFO vtcapture_initialize] vtCapture_planeInfo done! stride: 320 Region: x: 0, y: 0, w: 320, h: 180 Active Region: x: 0, y: 0 w: 320 h: 180
19.022s [INFO vtcapture_initialize] vtCapture_process done!
19.122s [INFO vtcapture_initialize] vtCapture_currentCaptureBuffInfo done after 1 tries! addr0: 0x6ff0c000 addr1: 0x6ff04000 size0: 57600 size1: 28800
19.123s [INFO vtcapture_initialize] vtcapture initialization finished.
19.123s [INFO send_picture ] Init possible. Terminating current capture..
19.123s [INFO capture_terminate ] Called termination of vtcapture
19.124s [INFO capture_terminate ] Video capture enabled - Also stopping..
19.124s [INFO capture_stop_vt ] Stopping VT capture...
19.654s [INFO capture_stop_vt ] vtCapture_stop done!
19.654s [INFO capture_terminate ] GUI capture enabled - Also stopping..
19.654s [INFO capture_stop_hal ] Stopping HAL capture...
[Utopia][GOP API]: MApi_GOP_GWIN_Delete32FB:3904 FBId = 129
19.659s [INFO capture_stop_hal ] HAL_GAL_DestroySurface done. Result: 0
19.660s [INFO capture_terminate ] vtCapture_postprocess done!
19.662s [INFO capture_terminate ] vtCapture_finalize done!
19.681s [INFO capture_terminate ] Driver released!
19.682s [INFO capture_terminate ] Finished capture termination!
19.682s [INFO send_picture ] Init possible. Cleanup current capture..
19.682s [INFO capture_cleanup ] Capture cleanup...
19.682s [INFO capture_cleanup ] Capture was running, freeing vars...
19.682s [INFO capture_cleanup ] Freeing video vars...
19.682s [INFO capture_cleanup ] Freeing gui vars...
19.682s [INFO capture_cleanup ] gfx close ok result: 0
19.683s [INFO capture_cleanup ] Finished capture cleanup..
19.683s [INFO send_picture ] Init possible. Init capture..
19.683s [INFO capture_init ] Initialization of capture devices..
19.683s [INFO capture_init ] Graphical capture enabled. Begin init..
19.684s [INFO capture_init ] HAL_GAL_Init done! Exit: 0
19.688s [INFO capture_init ] HAL_GAL_CreateSurface done! SurfaceID: 0
19.744s [INFO capture_init ] HAL_GAL_CaptureFrameBuffer done! 0
19.745s [INFO capture_init ] HAL_GAL: gfx open ok result: 22
19.747s [INFO capture_init ] Halgal done!
19.747s [INFO capture_init ] Init video capture..
19.765s [INFO capture_init ] Driver created!
19.765s [INFO vtcapture_initialize] Starting vtcapture initialization.
19.823s [INFO vtcapture_initialize] vtCapture_init done! Caller_ID: hyperion-webos_service Client ID: 1847625120
19.826s [INFO vtcapture_initialize] vtCapture_preprocess done!
19.826s [INFO vtcapture_initialize] vtCapture_planeInfo done! stride: 320 Region: x: 0, y: 0, w: 320, h: 180 Active Region: x: 0, y: 0 w: 320 h: 180
19.826s [INFO vtcapture_initialize] vtCapture_process done!
19.927s [INFO vtcapture_initialize] vtCapture_currentCaptureBuffInfo done after 1 tries! addr0: 0x7092d000 addr1: 0x70925000 size0: 57600 size1: 28800
19.927s [INFO vtcapture_initialize] vtcapture initialization finished.
19.927s [INFO capture_init ] vtcapture initialized!
19.927s [INFO capture_init ] Malloc hal+vt vars..
19.931s [INFO capture_init ] Malloc hal+vt vars finished.
19.931s [INFO send_picture ] Init possible. Starting capture again..
19.933s [INFO capture_start ] Starting capture thread..
2982 (hyperion-webos) PBNJSON src/pbnjson_c/jobject.c:1016 :: Attempt to get array size of non-array 0x74e16218
2982 (hyperion-webos) PBNJSON src/pbnjson_c/jobject.c:1016 :: Attempt to get array size of non-array 0x74e16218
notice the line that says vtCapture_currentCaptureBuffInfo done after 1 tries
We have done some huge enhancements in latest version. Can you please check it out and reopen this issue, if it still applies?