TBSniller / piccap

PicCap - Hyperion Sender App | Ambilight for LG WebOS TVs
MIT License
294 stars 28 forks source link

Content that is Cast to TV is not captured #79

Open botagas opened 6 months ago

botagas commented 6 months ago

Hello,

I have been trying to find someone who has faced anything similar, searched all over to find at least a mention, but sadly - nothing. What I am currently trying to overcome is the fact that streaming from phone/PC via AirPlay on my LG C2 doesn't work with capturing.

My current setup is a Hyperion instance running on Debian 11 in my server. The TV is rooted, has PicCap installed and successfully captures content when watching YouTube, watching movies / series via Jellyfin or watching content on Kodi or Browser. I can also use a macbook to connect to the TV as a separate display via AirPlay. That works - the lights react to what happens on the screen. Same goes for my Windows PC.

When I checked the Live Video from the capture, content that is streamed via AirPlay is not visible - the capture sees a black screen. The player UI itself is visible, but the video content is black. That happens with a simple YouTube video stream from phone/computer. It works fine when I just use the YouTube app instead of streaming it from an external device via AirPlay.

Am I missing something or misunderstanding something? Is this a limitation of what the TV is able to capture?

TL;DR: Streamed content via AirPlay appears a a black video in the capture.

Dammouz commented 6 months ago

Hello, So you confirm that capture sample in Hyperion (ILed Instances => Led Ouput => Led Layout tab => Live Video) shows also black sreen. And when the video is inside an app window, and you move this window, is it only the content that is black ? If so, it is due to the DRM. AirPlay, like Chrome & Firefox, blocks some content to be captured. For example, on Windows, It is black for Netflix & Disnay+ when viewing it through web browser. This is not related to Hyperion nor PicCap. But it is to "protect" the media against copying.

botagas commented 3 months ago

Hello, So you confirm that capture sample in Hyperion (ILed Instances => Led Ouput => Led Layout tab => Live Video) shows also black sreen. And when the video is inside an app window, and you move this window, is it only the content that is black ? If so, it is due to the DRM. AirPlay, like Chrome & Firefox, blocks some content to be captured. For example, on Windows, It is black for Netflix & Disnay+ when viewing it through web browser. This is not related to Hyperion nor PicCap. But it is to "protect" the media against copying.

Sorry for the insanely late reply as I have cast aside this due to limited time. As it is currently, ANY content that's cast over AirPlay is displayed as black in capture sample (Live Video). However, if you use Screen Mirroring (Mac to TV), the video feed is fine.

Even streaming a YouTube video from iPhone/Macbook outputs a black live video. However, if I used Screen Mirroring instead, it doesn't matter if the content is DRM-protected or not, I still get a perfectly fine Live Video feed. However, it isn't very convenient that I have to use Screen Mirroring any time I want to use the ambient lightning for content that I want to stream to the TV.