Project

General

Profile

Feature #4461

HDHome Run emulation

Added by Shane Kuzmanic over 2 years ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Start date:
2018-10-01
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)

Description

Could HDHomerun emulation be added please, Plex will connected to a HDHomerun device and there is a project in play https://github.com/jkaberg/tvhProxy that basically converts hdhomerun requests and converts these requests to tvheadend requests and then responds to plex as a homerun. Given that tvheaded already supports hdhomerun devices as clients i though the developer could integrate this as a built in feature.

This would allow full integration with PLEX making tvheadend the backend of choice i feel.


Subtasks

Feature #5236: HDHomerun Emulation for PLEX integrationRejected

Actions

History

#1

Updated by Andreas Fornberg over 2 years ago

I don't understand.
TVheadend already supports HDHomeRun.
Just connect Plex to TVheadend server and it should work fine.

#2

Updated by Alex Scott over 2 years ago

Andreas Fornberg wrote:

I don't understand.
TVheadend already supports HDHomeRun.
Just connect Plex to TVheadend server and it should work fine.

I'm just about to try the tvhProxy script, which I believe emulates a HDHomerun to plex whilst connecting to TvH? I think the OP is requesting this proxy / API calls are integrated into TvHeahend to allow Plex users to use any tuner supported by Plex as opposed to the slightly limited initial hardware. And also requiring a third party tool ( TvHProxy)

Alex

#3

Updated by Shane Kuzmanic over 2 years ago

Yes this is correct if TVHeaded has an option to turn on HDHOMERUN emulation then plex would see it as a device this would allow all tuners, IPTV, CAMS, SAT and all to be passed into plex as live tv which would be a great ability. The TvHproxy is limited in that i will only do one channel at a time where as if this was built into TVHeadend it could allow multiple streams at ones from many devices.

Plex also will grab XMLTV for an EPG from a URL so if TVHeadend could offer this that would be great too, i know you can create a XMLTV file but if this could be via a URL then plex can just grab it from there too.

Hope that explains it all well but i think you follow what im asking now.

Any more questions please ask and thanks!!!

#4

Updated by Shane Kuzmanic over 2 years ago

This is another emulator project that does slimier i believe https://github.com/TheJF/antennas so there is a lot of demand for this type of functionality.

Shane

#5

Updated by Andreas Fornberg over 2 years ago

Shane Kuzmanic wrote:

Yes this is correct if TVHeaded has an option to turn on HDHOMERUN emulation then plex would see it as a device this would allow all tuners, IPTV, CAMS, SAT and all to be passed into plex as live tv which would be a great ability. The TvHproxy is limited in that i will only do one channel at a time where as if this was built into TVHeadend it could allow multiple st/home/leatherface/Compile/xbmc/tools/depends/target/reams at ones from many devices.

Plex also will grab XMLTV for an EPG from a URL so if TVHeadend could offer this that would be great too, i know you can create a XMLTV file but if this could be via a URL then plex can just grab it from there too.

Hope that explains it all well but i think you follow what im asking now.

Any more questions please ask and thanks!!!

I still don't get it i use HDHomeRun device with 4 tuners and i can use all tuners with Kodi any software or device i am using.

#7

Updated by Shane Kuzmanic over 2 years ago

Plex will connect to a HDHomeRun device to play live tv and to record live tv. I dont have a HDHomeRun but i do have TVHeadend with multiple tuners. If TVHeadend can emulate a HDHomeRun device then plex will find it and use its tuners.

the TVHProxy project sits on a machine and advertises as a HDHomeRun device and then simply converts the requests to TVHeadend requests and then returns them as HDHomerun requests. Its a simple conversion process and could be built into TVHeadend.

#8

Updated by Andreas Fornberg over 2 years ago

TVheadend already supports HDHomeRun and find all 4 tuners for me.
There is no need for emulation or anything like that it works like a normal DVB card.
If PLEX connects to TVheadend it should not be a problem to fins HDHomeRun tuners.

#9

Updated by Mark Clarkstone over 2 years ago

Andreas Fornberg wrote:

TVheadend already supports HDHomeRun and find all 4 tuners for me.
There is no need for emulation or anything like that it works like a normal DVB card.
If PLEX connects to TVheadend it should not be a problem to fins HDHomeRun tuners.

I believe he's asking if Tvheadend can pretend to be a HDHomerun device so that it can be easily detected by PLEX. :p

#10

Updated by Andreas Fornberg over 2 years ago

Hmm ok but that whouls be done with a proper addon for PLEX if it doesn't work.
But i can't see why it wouldn't already today with already existing TVheadend bundle.

https://github.com/pgaubatz/TvplexendChannel.bundle

#12

Updated by Matej Munih over 2 years ago

Mark Clarkstone wrote:

Andreas Fornberg wrote:

TVheadend already supports HDHomeRun and find all 4 tuners for me.
There is no need for emulation or anything like that it works like a normal DVB card.
If PLEX connects to TVheadend it should not be a problem to fins HDHomeRun tuners.

I believe he's asking if Tvheadend can pretend to be a HDHomerun device so that it can be easily detected by PLEX. :p

Yes, this is what Andreas is asking and I am interested too! Would this trick work with Eyetv also? I mean: will Eyetv recognize tvheadend as an hdhomerun device?

#13

Updated by Mono Polimorph over 2 years ago

Shane Kuzmanic wrote:

Could HDHomerun emulation be added please,

Hi,

The only one true HDHomeRUN emulator is this: http://github.com/dsaupf/HDHRProxyIPTV

This really emulates one HDHR with full HDHR API. All others only translate the HTTP API of the recent HDHomeRUNs. So, they are unuseful for impersonate a true HDHR tuner.

I'm using this pice of emulator running in Linux with Wine (yes, it's only for Windows). It works with any SAT>IP server with HTTP interface (RTSP is the default interface for SAT>IP). In my environment the server is minisatip and the client is WMC.

I recommend this emulator. ;)

#14

Updated by Shane Kuzmanic over 2 years ago

Andreas Fornberg wrote:

Hmm ok but that whouls be done with a proper addon for PLEX if it doesn't work.
But i can't see why it wouldn't already today with already existing TVheadend bundle.

https://github.com/pgaubatz/TvplexendChannel.bundle

Because the TVHeadend bundle is for viewing TVHeadend, If the new Plex DRV saw this as a HDHomerun plex can set recordings, pause live tv watch recordings etc all from the main plex front end not though channels.

#15

Updated by Andreas Fornberg over 2 years ago

Ok men shouldn't this request go to the writer of that plugin to support recordings etc instead.
TVheadend also supports SAT-IP that is a standard for network tuners.

#16

Updated by Andreas Fornberg over 2 years ago

When i look here it seems to support TVheadend recordings

https://github.com/pgaubatz/TvplexendAgent.bundle

#17

Updated by Shane Kuzmanic over 2 years ago

This is different again, its easy to SMB share out TVHeadends recordings folder and mount from plex, but this feature request will allow plex to use TVHeadend as a tuner source.

#18

Updated by Mono Polimorph over 2 years ago

Shane Kuzmanic wrote:

This is different again...

Yes, one functionality is the NETWORK TUNER, and another different is a NETWORK PVR BACKEND.

For the Network Tuner, only two "standard" protocols exist: SAT>IP and HDHR (this is propietary, but good known).

For a Network PVR Backend, a lot exists: MythTV is one of the most ancient. And TVHE is one of the best.

So, if you need to "tune" signals, then use SAT>IP or HDHR. And if you need to schedule recordings in the network, then use MythTV or TVHE.

#19

Updated by Matej Munih over 2 years ago

Mono Polimorph wrote:

Shane Kuzmanic wrote:

This is different again...

Yes, one functionality is the NETWORK TUNER, and another different is a NETWORK PVR BACKEND.

For the Network Tuner, only two "standard" protocols exist: SAT>IP and HDHR (this is propietary, but good known).

For a Network PVR Backend, a lot exists: MythTV is one of the most ancient. And TVHE is one of the best.

So, if you need to "tune" signals, then use SAT>IP or HDHR. And if you need to schedule recordings in the network, then use MythTV or TVHE.

It would be great having the possibility to get tvheadend recognized as a NETWORK TUNER like HDHR!! :)

#20

Updated by Jaroslav Kysela over 2 years ago

I won't work on this, but if someone come with a complete patch / code, I'll include it.

#21

Updated by Shane Kuzmanic over 2 years ago

Thanks, i think to many comments have muddied the simplicity of the original request here.

Its simply to add network tuner support to Plex via HDHomerun emulation. I know there are plex bundles etc and other ways to do some parts but network tuner emulation would supply a far richer experience in plex.

I hope someone with the ability can supply this to the project.

Thanks

Shane

#22

Updated by Andreas Fornberg over 2 years ago

Look for SAT-IP that is a standard for network tuners.

#23

Updated by Mono Polimorph over 2 years ago

Shane Kuzmanic wrote:

Thanks, i think to many comments have muddied the simplicity of the original request here.

Hi, Implementing HDHR server support isn't "simple"!!
The discovery part is trivial. And the transport plane are plain UDP (RTP as option). However, for the control plane plane you need some development (one library exists). You can check the referenced project to see the complexity.

Andreas Fornberg wrote:

Look for SAT-IP that is a standard for network tuners.

Yes. However, HDHR has (good) BDA drivers, and SAT>IP doesn't!

#24

Updated by Joel Kåberg over 2 years ago

Hey, author of tvhProxy here.

tvhProxy is just that, an proxy. It proxy requests between Plex DVR (https://www.plex.tv/features/live-tv-dvr/) and Tvheadend by emulating an offically supported (by Plex) HDHR device.

I believe tvhProxy still works (?), however I was in touch with Elan (CTO @ Plex) a while back who told me that an official API is underway which will let tuners act as an source for Plex DVR (I don't know if the API spec is finalized yet).

So my 2 cent is to sit tight, and wait for the API before moving forward.

#25

Updated by Shane Kuzmanic over 2 years ago

Thanks Joel thats great news.

#26

Updated by Mono Polimorph over 2 years ago

Joel Kåberg wrote:

Hey, author of tvhProxy here.

tvhProxy is just that, an proxy. It proxy requests between Plex DVR (https://www.plex.tv/features/live-tv-dvr/) and Tvheadend by emulating an offically supported (by Plex) HDHR device.

I believe tvhProxy still works (?), however I was in touch with Elan (CTO @ Plex) a while back who told me that an official API is underway which will let tuners act as an source for Plex DVR (I don't know if the API spec is finalized yet).

So my 2 cent is to sit tight, and wait for the API before moving forward.

Hi Joel,

Thank you for your news! Great!

However, please, for not confusing the people: The HDHomeRuns has two APIs. The "new" HTTP API, only supported by new products. And the "old" API, supported by all models and more powerfull. Futhermore the "tvhProxy" implements only the HTTP API. This it's relevant because a lot of HDHR clients (for example TVH or the BDA drivers) only support the "old" API.

Regards.

#27

Updated by B jzy about 2 years ago

Andreas Fornberg wrote:

And you can grab EPG with

http://localhost:9981/xmltv # short alias for http://localhost:9981/xmltv/channels
http://localhost:9981/xmltv/channelname/*channelname*
http://localhost:9981/xmltv/channelnumber/*channelnumber*
http://localhost:9981/xmltv/tagname/*tagname*

Change localhost to your IP to TVheadend.

Thank you very much for this detail. I have had trouble finding documentation about it. It looks like it was implemented a couple years ago. Now my only issue is it does not supply the <category> info in the XMLTV output: https://tvheadend.org/issues/2527#note-8.

#29

Updated by Retro Fan about 2 years ago

Mono Polimorph wrote:

Shane Kuzmanic wrote:

Could HDHomerun emulation be added please,

Hi,

The only one true HDHomeRUN emulator is this: http://github.com/dsaupf/HDHRProxyIPTV

This really emulates one HDHR with full HDHR API. All others only translate the HTTP API of the recent HDHomeRUNs. So, they are unuseful for impersonate a true HDHR tuner.

I'm using this piece of emulator running in Linux with Wine (yes, it's only for Windows). It works with any SAT>IP server with HTTP interface (RTSP is the default interface for SAT>IP). In my environment the server is minisatip and the client is WMC.

I recommend this emulator. ;)

Hi, could you please tell how to setup this tool HDHRProxyIPTV with minisatip?
Do I also need to install official HDHomeRun drivers first?

#30

Updated by Retro Fan about 2 years ago

Do I need a real HDHomeRun or can I use any device that can run minisatip and HDHRProxyIPTV?

#31

Updated by Retro Fan about 2 years ago

Never mind, no need for real HDHomeRun and indeed drivers must be installed.

#32

Updated by Shane Kuzmanic about 1 year ago

Joel Kåberg wrote:

Hey, author of tvhProxy here.

tvhProxy is just that, an proxy. It proxy requests between Plex DVR (https://www.plex.tv/features/live-tv-dvr/) and Tvheadend by emulating an offically supported (by Plex) HDHR device.

I believe tvhProxy still works (?), however I was in touch with Elan (CTO @ Plex) a while back who told me that an official API is underway which will let tuners act as an source for Plex DVR (I don't know if the API spec is finalized yet).

So my 2 cent is to sit tight, and wait for the API before moving forward.

Hi Joel any update oc this? Still waiting as having this emulation built into Tvheadend would be great.

#33

Updated by Mono Polimorph about 1 year ago

Shane Kuzmanic wrote:

Hi Joel any update oc this? Still waiting as having this emulation built into Tvheadend would be great.

Hi,

No one working on it.

However, if Jaroslav agree with implement it, then I can help doing some coding after he provides the point #1 described in https://tvheadend.org/issues/5236#note-3

Sorry, but without this "template" I can't do anything.

#34

Updated by Andreas Fornberg 12 months ago

Still what's wrong with this Plex addon that does exactly what you are seeking for.
Not en emulation but full support for TVheadend like any other Frontend like Kodi with pvr.hts etc.

https://forums.plex.tv/t/rel-livetvh-live-tv-streaming-with-tvheadend/191607

#35

Updated by Oliver S 11 months ago

hey guys!

first up – thanks alot for TVHeadend! it's a superb solution for recording and i'm using it since a few years - loving it.

i've read alot about howto('s) integrate TVH into the PLEX universe via proxies and plug-ins and other stuff. i tried quite a few solutions and at the end of the day, they simply don't cut it. all of them have severe shortcomings in one or the other way. but the biggest point of no joy is, they are far from reliable - and that makes them simply a no solution.

the PLEX makers changed their minds about a few features shortly, so relying on any way of pimping up PLEX isn't going to last forever. maybe it's because of stability or other reasons, probably they will cut into the plug-ins support as well - so i wouldn't go with a solution which maybe works today, but not tomorrow.
the quoted plug-in one post above from Andreas has still some limitations and as users report also still has bugs which make it no candidate for me. and the history of development makes me to believe, that the author hasn't got enough time left for making it perfect (i do appreciate any efforts and can understand any time constraints he might have).

one of the great advantages of TVH is to be able to cumulate all receiving sources into one solution. now consuming this recorded content is the other big part of the game and this is really where PLEX shines, besides it's management features of the content. the great client support on so much devices makes it simply speaking a better consuming solution (also for recorded content from TV) as any other known client to me (and even i like a great iOS TVH client, this one can't forward or jump more than one time while playing back) and they have other shortcomings.

so maybe it's kinda hard to understand for non PLEX users, but once you got drawn into it, you see and like their approach to how you consume your content and it's way of organizing it. we PLEX users would simply love to use our clients available to us, to consume live TV from sources provided by our TVH servers. and as bad as it is right now, PLEX can only use a handful of TV cards right now and has no way of descrambling streams, so using the PLEX server as TV content provider directly is therefore not really of any interest.

the solution could be, to empower TVH to provide an HDHomeRun emulation - it would let other devices see it as a real HDHomeRun tuner in the network.
then PLEX would connect to it and could use it any way it wants to. that would be the most compatible way (and save with future revisions of PLEX development) and no one would need any special "tricks" to get one thing running, while breaking another - or having to do kinda voodoo to setup/change things on several places (for example you need to create tags inside TVH channels to define which codecs they use to make it compatible - sorry but this is cumbersome, error prone and quite a bit of manual work; probably for a lot of users simply not to handle well).

and let's think out of the box: wouldn't it be great to empower TVHeadend with
a) such a (hardware)protocol-emulation for it's own
b) making it the number one solution for PLEXers around the world to consume their TV content from already possessed/installed receiving hardware
c) bring TVH again into the talk of a lot of people for being simply great

i could and would love to help with testing (no coder here) and providing feedback to make it real thing.

greets,
oliver

#36

Updated by Jaroslav Kysela 11 months ago

I think that the paid version of plex supports SAT>IP (look to google) - so go ahead and test it using the tvh as the SAT>IP server.

#37

Updated by Oliver S 11 months ago

Jaroslav Kysela wrote:

I think that the paid version of plex supports SAT>IP (look to google) - so go ahead and test it using the tvh as the SAT>IP server.

you're right – and i tried that in the past. forget it. it's only listed as unofficial and that's it exactly.
for fun you can go here and read a bit of users experiences (german).
https://forums.plex.tv/t/sat-ip-server-einbinden/208696

as long as it isn't officially supported (and to it's defined standard) there's only the HDHomeRun compatible way of getting it going.

and btw. back then when trying to get it running with the plug-ins and or proxies, i had one case where i could scan for the channels, and it found most of them, but all scrambled ones it didn't accept – wth i thought. somehow it knew, which were scrambled and which not. so this is one more proof, that this route isn't going to be reliable nor even acceptable.

but thanks anyway.

#38

Updated by Andreas Fornberg 11 months ago

Again have you guys tested this addon that seems to do the job?

https://forums.plex.tv/t/rel-livetvh-live-tv-streaming-with-tvheadend/191607

#39

Updated by Oliver S 11 months ago

Andreas Fornberg wrote:

Again have you guys tested this addon that seems to do the job?

https://forums.plex.tv/t/rel-livetvh-live-tv-streaming-with-tvheadend/191607

sorry andreas,

but have you read up about the preparations, limitations and problems of this plug-in and of the users?
plug-in gets updates (but the last one is of july, 25). that indicates the developers simply hasn't got enough time (which is ok with me) to keep up with it and it's bugs and/or users problems.

i tried that one in an earlier version, but wont play again with it.
plug-ins in PLEX aren't a save bet, mostly are slow and – let's be honest – is a hack.
not to forget about users which host their PLEX-server on NAS (or similar) devices – they might be unable to alter these packages – so no joy for them.

HDHomeRun is supported full out-of-the-box, will be supported by PLEX devs in the future and is compatible with lots of others devices.
so in short you get: best tuning speeds, best compatibility and it's future proof.

it would not only make us PLEX users happy, but alot of others too. and that is in the best interest of the TVHeadend project, or not?

#40

Updated by Jaroslav Kysela 11 months ago

it would not only make us PLEX users happy, but alot of others too. and that is in the best interest of the TVHeadend project, or not?

As the current main developer, I added many features which I do not personally use. As the open source developer, I strongly dislike some vendor specific APIs, so I am fan of SAT>IP. My interest to add HDHomeRun server code is really low (I don't need it for my home DVR system). I am using tvh/enigma2 (main) and tvh/kodi (kids) combos for MPEG-TS.

If plex supports SAT>IP network tuners (and as customer, you can try to push them to improve / make this support stable), I can fix potential bugs on the tvh server side. Basically, SAT>IP is widely used in Europe, HDHomeRuns are used mostly in US (Plex is originated from US? so that's probably the reason why they don't push the SAT>IP more).

But if someone other creates the HDHomeRun server code, I will include it as I noted before. And no, it's not too difficult. Perhaps a good project for a student.

#41

Updated by Tim Bremer 11 months ago

Oliver S wrote:

it would not only make us PLEX users happy, but alot of others too. and that is in the best interest of the TVHeadend project, or not?

Generally, the backend provides standardized interfaces, which is used by the frontend developer to realize the required functionality. Something which is NOT the job of the backend developer.
In this special case it is even more grave that Plex "evolved into a commercial software business" with "65 employees" (wikipedia)
So, it's up to Plex to realize this function!

Furthermore, as Jaroslav pointed out in a friendlier way, the whole HDHomeRun stuff is a virtually unnecessary product: Instead of using a standardized protocol (Satip), they did their own thing, implementing a proprietary protocol.

#42

Updated by Shane Kuzmanic 11 months ago

Jaroslav Kysela wrote:

it would not only make us PLEX users happy, but alot of others too. and that is in the best interest of the TVHeadend project, or not?

As the current main developer, I added many features which I do not personally use. As the open source developer, I strongly dislike some vendor specific APIs, so I am fan of SAT>IP. My interest to add HDHomeRun server code is really low (I don't need it for my home DVR system). I am using tvh/enigma2 (main) and tvh/kodi (kids) combos for MPEG-TS.

If plex supports SAT>IP network tuners (and as customer, you can try to push them to improve / make this support stable), I can fix potential bugs on the tvh server side. Basically, SAT>IP is widely used in Europe, HDHomeRuns are used mostly in US (Plex is originated from US? so that's probably the reason why they don't push the SAT>IP more).

But if someone other creates the HDHomeRun server code, I will include it as I noted before. And no, it's not too difficult. Perhaps a good project for a student.

This guy seems to have done it as a stand alone app to re-stream EPG and Video from IP TV providers to plex and it works OK, i dont think he gives out the source though. https://xteve.de/

Also available in: Atom PDF