Jump to content

Recommended Posts

deathbybandaid
Posted

I'm developing a python script that emulates being an HDHomerun for use with both Plex and Emby.

I've put together an SSDP service that seems to send and receive properly, but the data I'm sending seems to not be detected by Plex or Emby for autodetect.

 

What kind of SSDP data is Emby expecting to see?

 

Additionally, my script supports M3U, and I see that Emby has the ability to autodetect M3U tuners as well? What kind of SSDP data is Emby expecting to see for this?

 

 

Thanks in advance!

wouterdebie
Posted

I'd be very interested in this as well. Adding this to be able to follow this thread.

  • 4 months later...
wouterdebie
Posted

Necromancing this thread.. 

Any of the Emby devs that can tell us how Emby does tuner discovery? Is Emby using SSDP or some other mechanism?

Posted
21 minutes ago, wouterdebie said:

Necromancing this thread.. 

Any of the Emby devs that can tell us how Emby does tuner discovery? Is Emby using SSDP or some other mechanism?

We discover hdhomerun devices by sending a udp broadcast on port 65001. 

wouterdebie
Posted (edited)

Great! And discovering m3u tuners?

Edited by wouterdebie
rbjtech
Posted (edited)

Guys if you need to see how emby is discovering services on it's local network - just install wireshark, filter by emby as the source and watch the broadcasts .. :) 

Edited by rbjtech
wouterdebie
Posted
18 hours ago, rbjtech said:

Guys if you need to see how emby is discovering services on it's local network - just install wireshark, filter by emby as the source and watch the broadcasts .. :) 

Sure, but asking the dev's is easier, no? Next to that, I don't have a tuner that responds, so wireshark isn't going to tell me what the response should look like, or what Emby expects..

Posted
18 hours ago, wouterdebie said:

discovering m3u tuners?

There is no discovery of that. You enter the url into the setup screen.

wouterdebie
Posted

I'm looking at some Jellyfin code (hoping that Emby still does the same thing) and is it true that Emby just listens to 255.255.255.255:65001, checks if the 2nd byte is "3" and uses the sending IP address as the tuner IP? And completely ignores any of the HDHR packet?

Posted

Probably  yes, I'd have to check to confirm, but this is all designed by silicondust so their developer docs would be the best possible source of information. They may have code for it in libhdhomerun.

wouterdebie
Posted

I checked the docs from sillicondust and their lib is very specific, but then I found the Jellyfin code that does something pretty crude and different. The hdhr packet protocol specifies a base url and a discovery url, but Jellyfin completely ignores any of that.

Posted
On 4/20/2021 at 8:39 PM, wouterdebie said:

is it true that Emby just listens to 255.255.255.255:65001, checks if the 2nd byte is "3" and uses the sending IP address as the tuner IP? And completely ignores any of the HDHR packet?

Yes this is correct. What we need to do is read the data and get certain values from it, which we're not currently doing.

wouterdebie
Posted

Thanks for confirming. Since my application isn't running on 80/TCP, it will never be discovered.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...