[mythtv-users] Web App finding and configuring HDHR tuners?

Scott Theisen scott.the.elm at gmail.com
Wed Jul 31 22:48:39 UTC 2024


On 7/16/24 14:55, James Abernathy wrote:
> I have always been required to use a bridge on my PC when running 
> Mythtv backend in a VM. The reason is so that the VM is on the same 
> subnet as everything else including the HDHR tuners.
>
> I'm assuming this is because the setup of HDHR in the Mythtv web app 
> is using hdhomerun_config discover to find any tuners.
>

MythTV uses libhdhomerun directly, using 
hdhomerun_discover2_find_devices_broadcast() to find the devices. 
https://github.com/Silicondust/libhdhomerun/blob/master/hdhomerun_discover.h#L42

> hdhomerun_config discover only finds tuners on the same subnet as the 
> current system.

This is what I would expect based on the the documentation of 
hdhomerun_discover2_find_devices_broadcast().

> However I have found that if you include the actual IP of the HDHR 
> tuner after the hdhomerun_config discover command it will find it.  
> Since I have my AP/router auto-assign fixed IPs to my HDHR tuners I 
> could set this permanently if that was an option.
>

MythTV uses hdhomerun_device_create_from_str() (except for an old device 
finding method) which can accept either a device ID or an IP address, so 
it should be possible.
https://github.com/Silicondust/libhdhomerun/blob/master/hdhomerun_device.h#L53

Except for 
https://github.com/MythTV/mythtv/blob/d532d9950b967b3f5a4103b0de51111563ef0ca9/mythtv/libs/libmythtv/videosource.cpp#L1536 
, it appears all uses directly use capturecard.videodevice from the 
database, which, for me, is the device ID.

I don't know if it is currently possible to specify a static IP address 
for an HDHR, but it could be done; however, I don't know what changes it 
would require.

Regards,

Scott



More information about the mythtv-users mailing list