margro / TVServerXBMC

Kodi/XBMC pvr backend plugin for MediaPortal's TVServer
http://www.scintilla.utwente.nl/~marcelg/xbmc/tvserverxbmc.html
20 stars 18 forks source link

Streaming Profiles & Hardware Transcoding #19

Open MrGrymReaper opened 5 years ago

MrGrymReaper commented 5 years ago

With your plugin there's no mention of whether there's support for hardware accelerated transcoding support. Also there's no sign of a method for providing streaming profiles for handling transcoding where it is required.

So I was wondering whether it's possible to implement a system similar to the "StreamingProfiles.xml" file used by MPExtended. For your plugin which is used to implement a server streaming function used by the Kodi PVR client.

Since the client for Kodi may not be locally on the same system and/or have a different configuration setup, as well as hardware specification compared to the plugin host. Which then introduces the possibility to require transcoding of the streaming media. Non hardware accelerated transcoding tends to put a lot of load on the host server's CPU which can lead to issues with the quality or performance of the transcoded media. Modern GPUs or Intel CPUs with recent enough (Intel QuickSync) can hardware accelerate the transcoding operations, with lots of dedicated threaded cores. This as a result causes an decrease in general CPU load, increase in performance and a potential improvement in the transcoding result's quality.

Implementing such a system would allow for the customisation (and/or optimisation) of the transcoding to the situation of the host's hardware configuration.

margro commented 5 years ago

Not supported. The TVServerKodi plugin does not do any streaming. The Kodi plugin either accesses the timeshift buffer files directly or uses the RTSP streaming feature from the TVServer itself.

I have no plans to implement functionality like this now or in the future. It would be better to use the existing MPExtended functionality instead, which will probably result in a new MediaPortal PVR addon that depends on MPExtended instead of the TVServerKodi plugin. If you are able to code, feel free to add it.