<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 7, 2015 at 12:20 PM, worik <span dir="ltr"><<a href="mailto:worik.stanton@gmail.com" target="_blank">worik.stanton@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 07/09/15 11:03, Tony Sauri wrote:<br>
>> Some body on this list very helpfully suggested a way to query the<br>
>> > database to determine which tuner recorded a particular recording. To my<br>
>> > embarrassment  I cannot find the message.<br>
>> ><br>
>> > Can anybody help?  I have two tuners, one of which I suspect is a lot<br>
>> > better than the other.  I need to discern which is recording what.<br>
<br>
</span>[snip]<br>
<span class="">>> ><br>
> I would do something like this:<br>
><br>
>  cat /var/log/mythtv/mythbackend.log | grep HandleRecordingStatusChange<br>
><br>
<br>
</span>Thank you.  Obvious!  A really good start.<br>
<br>
I have "cardid 1, sourceid 1" and "cardid 2, sourceid 1" and "cardid 4,<br>
sourceid 1".<br>
<br>
cat /var/log/mythtv/mythbackend.log | grep<br>
HandleRecordingStatusChange|perl -e 'while(<>){s/^.+(cardid \d.+)/$1/;<br>
print }'|sort|uniq -c<br>
    117 cardid 1, sourceid 1<br>
     23 cardid 2, sourceid 1<br>
     44 cardid 4, sourceid 1<br>
<br>
<br>
Odd, as I have two tuners:<br>
<br>
$ ls /dev/dvb/<br>
adapter0  adapter1<br>
<br>
<br>
The backend status on MythWEB reports for encoder status:<br>
<br>
Encoder 1 [ DVB : /dev/dvb/adapter0/frontend0 ] is local on backend and<br>
is recording '3 News' on TV3. This recording is scheduled to end at<br>
12:30 PM.<br>
Encoder 2 [ DVB : /dev/dvb/adapter0/frontend0 ] is local on backend and<br>
is not recording.<br>
Encoder 4 [ DVB : /dev/dvb/adapter1/frontend0 ] is local on backend and<br>
is not recording.<br>
<br>
Does this indicates that adapter0 has two tuners and adapter1 has 1?<br>
<br>
And how do I match these with the information from lsusb?<br>
<br>
$ lsusb|grep 2040<br>
Bus 001 Device 005: ID 2040:c000 Hauppauge Windham<br>
Bus 001 Device 004: ID 2040:7070 Hauppauge Nova-T Stick 3<br>
<br>
cheers<br>
<span class="HOEnZb"><font color="#888888">Worik<br></font></span></blockquote><div><br></div><div>Most physical tuners can ve set up to be more than one virtual tiner, I am not sure if this is what you are seeing.</div></div></div></div>