[mythtv-users] Interpreting capturecard for HDHomeRun

Ross Boylan rossboylan at stanfordalumni.org
Sun Mar 15 20:38:05 UTC 2020


Along the way to writing a program to update channels for the repack, I've
run into the issue of figuring out the relation between entries in the
capturecard table and spots on my HDHomeRun tuner.  Highlights:
select cardid, parentid, videodevice, cardtype from capturecard;
 +--------+----------+-------------+-----------+
| cardid | parentid | videodevice | cardtype  |
+--------+----------+-------------+-----------+
|      1 |        0 | 10424297    | HDHOMERUN |
|      2 |        1 | 10424297    | HDHOMERUN |
|      3 |        0 | 10424297    | HDHOMERUN |
|      4 |        3 | 10424297    | HDHOMERUN |
+--------+----------+-------------+-----------+

My HDHR device has 2 tuners, know at /tuner0 and /tuner1 when using
hdhomerun_config.
I created double entries for capture cards so that I could record, e.g.,
4.1 and 4.2 at the same time.
These "extra" entries appear to be identified by having a non-zero parentid.

I am looking for a mapping from cardid to /tuner0 or /tuner1.

One could construct a rule that would give such a mapping but a) the rule
is rather ad hoc and b) it would conclude that cardids 1 and 2 are tuner0.
But perhaps sometimes they are tuner0 and sometimes 1.

Any suggestions on how to proceed?

Background: I want to find a free tuner on which I can do a channelscan
with hdhomerun_config.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20200315/a16f3704/attachment.htm>


More information about the mythtv-users mailing list