Jellyfin Forum
Live TV - handling DRM streams - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Live TV - handling DRM streams (/t-live-tv-handling-drm-streams)



Live TV - handling DRM streams - ilm - 2023-08-17

I was wondering if there was any development done for supporting DRM streams of (national) IPTV channels. As an alternative to the official apps themselves, which are all free btw and just require an account (in Belgium this is VTM go, VRT max, and Goplay). It would be great to have all channels in one place with a nice tv guide that Jellyfin provides. Kodi already has plugins for the mentioned services. E.g., https://kodi.wiki/view/Add-on:VTM_GO + https://kodi.wiki/view/Add-on:IPTV_Manager

So third-party authentication is possible, and code even exists (needs widevine lib), I just don't know if it is at all possible (and if it makes sense) to port it to Jellyfin because of the DRM. I did import the m3u playlist generated by IPTV manager of Kodi. This imported fine and I can already see the logos of the channels in Jellyfin as well as the tv guide. Of course this is the easy part...

Don't know much about DRM except that the chain is supposed to be unbroken upto the display?

Options:
1. For jellyfin, the DRM stream will be typically pulled in at the server side, and then needs to be forwarded to the client.
  a. If the server doesn't touch the stream then I suppose the client needs to have the widevine library (in my case LG webos; great to have jellyfin on there btw!)
  b. In the ideal world jellyfin just strpis the DRM before forwarding so it will just work for any client.
2. Jellyfin just forwards the stream url to the client which needs to handle it (think I saw a thread on this).

I know this will be likely to be hard with the DRM mess, but just wondering and brainstorming.


RE: Live TV - handling DRM streams - TheDreadPirate - 2023-08-17

If, when you log in, they provide some sort of api key could you then insert that key in a m3u file for the stream? Then add that to Jellyfin?

I'd imagine it isn't that simple and they probably wouldn't make it that simple.


RE: Live TV - handling DRM streams - ilm - 2023-08-19

It would be great if the m3u format supports that. I believe the kodi addon stores a login token or something (could be OAuth?).

If the client, in my case webos, supports the (encrypted) stream format then it should not be too hard to just pass that stream along, but, yeah, it is probably more complicated than that.

I see there are some limitations for webos regarding DRM type and streaming protocol combinations:
https://webostv.developer.lge.com/develop/guides/drm-content-playback
https://webostv.developer.lge.com/develop/specifications/streaming-protocol-drm

but there is also a more fully featured javascript player with support for webos:
https://github.com/shaka-project/shaka-player

Hopefully at least one of them supports the formats I would need. Perhaps I should check-in with the people that developed the jellyfin webos app to see what's possible.

I was thinking that, even if it would all be technical possible, that such functionality might not be accepted by the LG store or that the services will block everything outside the official apps. On the other hand, I think kodi has a netflix plugin which does not seem to be a problem.