Mailing List Archive

How to find the input used in a recording?
One of my tuner is bad and it produces 0 byte recordings whenever that
tuner is used. I am not sure which one it is. How do I find out from the
recorded program information? I mean, when I look up previously recorded
programs, I do not get input information. Is that kept in the database,
if so how do I get it?

Regards
Ramesh
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: How to find the input used in a recording? [ In reply to ]
On 23/10/2020 12.32, Ram Ramesh wrote:
> One of my tuner is bad and it produces 0 byte recordings whenever that tuner is used. I am not sure which one it is. How do I find out from the recorded program information? I mean, when I look up previously recorded programs, I do not get input information. Is that kept in the database, if so how do I get it?

When the recording is selected (not playing) in "watch recordings" hit 'i' twice. You may need to scroll down.

> Regards
> Ramesh

--
Eyal Lebedinsky (eyal@eyal.emu.id.au)
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: How to find the input used in a recording? [ In reply to ]
On Thu, 22 Oct 2020 20:32:05 -0500, you wrote:

>One of my tuner is bad and it produces 0 byte recordings whenever that
>tuner is used. I am not sure which one it is. How do I find out from the
>recorded program information? I mean, when I look up previously recorded
>programs, I do not get input information. Is that kept in the database,
>if so how do I get it?

On a recording, push the I key twice and scroll down if necessary to
find the "Recording Input:" field. In the database, this is the
recorded.inputname field. It does rely on you having set up the names
for the tuners in mythtv-setup so that you can differentiate them.
From SQL a query like this should work:

select chanid,starttime,title,inputname from recorded where filesize=0
order by starttime desc limit 10;

You can also look in mythbackend.log. I do this grep command daily to
check for damaged recordings:

grep -a "overall_score=\"0" /var/log/mythtv/mythbackend.log

However, the log lines that relies on may only be there if you have
the "-v record" option set on your mythbackend command line. I always
have that option set. Here is the sort of message that grep will
find:

Oct 17 04:51:47 mypvr mythbackend: mythbackend[3235]: I TVRecEvent
tv_rec.cpp:826 (FinishedRecording) TVRec[92]:
FinishedRecording(10007_2020-10-16T15:51:26Z) damaged
recq:<RecordingQuality overall_score="0"
key="10007_2020-10-16T15:51:26Z" continuity_error_count="0"
packet_count="116465">#012 <Gap start="2020-10-16T15:20:00Z"
end="2020-10-16T15:51:27Z" duration="1887" />#012 <Gap
start="2020-10-16T15:51:47Z" end="2020-10-16T16:10:00Z"
duration="1092" />#012</RecordingQuality>

The tuner number is available as the [92] in TVRec[92] in that
message. I believe all messages referring to a tuner will have the
tuner number in that format.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: How to find the input used in a recording? [ In reply to ]
On Thu, Oct 22, 2020 at 8:33 PM Ram Ramesh <rramesh2400@gmail.com> wrote:

> One of my tuner is bad and it produces 0 byte recordings whenever that
> tuner is used. I am not sure which one it is. How do I find out from the
> recorded program information? I mean, when I look up previously recorded
> programs, I do not get input information. Is that kept in the database,
> if so how do I get it?
>
> Regards
> Ramesh
>

If you hit "Info" 2x while on it, you should get what you need. Also,
Menu->RecordingOptions->ShowRecordingDetails->OK/Enter will display it.
Re: How to find the input used in a recording? [ In reply to ]
On Fri, 23 Oct 2020 at 15:24, Greg Oliver <oliver.greg@gmail.com> wrote:

> On Thu, Oct 22, 2020 at 8:33 PM Ram Ramesh <rramesh2400@gmail.com> wrote:
>
>> One of my tuner is bad and it produces 0 byte recordings whenever that
>> tuner is used. I am not sure which one it is. How do I find out from the
>> recorded program information? I mean, when I look up previously recorded
>> programs, I do not get input information. Is that kept in the database,
>> if so how do I get it?
>>
>> Regards
>> Ramesh
>>
>
>
> Just out of interest, if you don't know which tuner it is how do you know
it's always the same tuner?
Re: How to find the input used in a recording? [ In reply to ]
On 10/23/20 9:28 AM, David Watkins wrote:
>
>
> On Fri, 23 Oct 2020 at 15:24, Greg Oliver <oliver.greg@gmail.com
> <mailto:oliver.greg@gmail.com>> wrote:
>
> On Thu, Oct 22, 2020 at 8:33 PM Ram Ramesh <rramesh2400@gmail.com
> <mailto:rramesh2400@gmail.com>> wrote:
>
> One of my tuner is bad and it produces 0 byte recordings
> whenever that
> tuner is used. I am not sure which one it is. How do I find
> out from the
> recorded program information? I mean, when I look up
> previously recorded
> programs, I do not get input information. Is that kept in the
> database,
> if so how do I get it?
>
> Regards
> Ramesh
>
>
>
> Just out of interest, if you don't know which tuner it is how do you
> know it's always the same tuner?
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
I have two HDHRs for a total of 6 tuners. I seem to get hit with 0-byte
whenever I see multiple program are to be recorded at the same time.
That too precisely one file is broken and not many. So, I have a hunch
that it is just one tuner and when it is selected, I get broken
recording.  I do not have a proof, just a hunch. In any case, I need
proof and I that is why I want to know the input used in the broken
recording.

I think my tuner firmwares  are old and I need to update to the latest
to see if the trouble goes away. However, I do not want to disturb the
waters too much, and so, would like to know which one to update first.
While experimenting with firmwares, I want to keep the other working so
that I do not break everything in one shot due to errors in update.

Regards
Ramesh

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: How to find the input used in a recording? [ In reply to ]
On 10/22/20 9:46 PM, Stephen Worthington wrote:
> On Thu, 22 Oct 2020 20:32:05 -0500, you wrote:
>
>> One of my tuner is bad and it produces 0 byte recordings whenever that
>> tuner is used. I am not sure which one it is. How do I find out from the
>> recorded program information? I mean, when I look up previously recorded
>> programs, I do not get input information. Is that kept in the database,
>> if so how do I get it?
> On a recording, push the I key twice and scroll down if necessary to
> find the "Recording Input:" field. In the database, this is the
> recorded.inputname field. It does rely on you having set up the names
> for the tuners in mythtv-setup so that you can differentiate them.
> From SQL a query like this should work:
>
> select chanid,starttime,title,inputname from recorded where filesize=0
> order by starttime desc limit 10;
>
> You can also look in mythbackend.log. I do this grep command daily to
> check for damaged recordings:
>
> grep -a "overall_score=\"0" /var/log/mythtv/mythbackend.log
>
> However, the log lines that relies on may only be there if you have
> the "-v record" option set on your mythbackend command line. I always
> have that option set. Here is the sort of message that grep will
> find:
>
> Oct 17 04:51:47 mypvr mythbackend: mythbackend[3235]: I TVRecEvent
> tv_rec.cpp:826 (FinishedRecording) TVRec[92]:
> FinishedRecording(10007_2020-10-16T15:51:26Z) damaged
> recq:<RecordingQuality overall_score="0"
> key="10007_2020-10-16T15:51:26Z" continuity_error_count="0"
> packet_count="116465">#012 <Gap start="2020-10-16T15:20:00Z"
> end="2020-10-16T15:51:27Z" duration="1887" />#012 <Gap
> start="2020-10-16T15:51:47Z" end="2020-10-16T16:10:00Z"
> duration="1092" />#012</RecordingQuality>
>
> The tuner number is available as the [92] in TVRec[92] in that
> message. I believe all messages referring to a tuner will have the
> tuner number in that format.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
I added -v record to mythtv-backend service and restarted the service.
Interestingly I had some hits from your grep command eventhough I did
not have -v record switch when the error message was generated. Here is
what I got
> Oct 19 16:00:00 zym mythbackend: mythbackend[2673]: I
> HDHRStreamHandler tv_rec.cpp:826 (FinishedRecording) TVRec[18]:
> FinishedRecording(1041_2020-10-19T20:57:04Z) damaged
> recq:<RecordingQuality overall_score="0"
> key="1041_2020-10-19T20:57:04Z" continuity_error_count="0"
> packet_count="1388107">#012    <Gap start="2020-10-19T20:30:00Z"
> end="2020-10-19T20:57:04Z" duration="1624" />#012</RecordingQuality>

> Oct 19 16:22:29 zym mythbackend: mythbackend[2673]: I TVRecEvent
> tv_rec.cpp:826 (FinishedRecording) TVRec[18]:
> FinishedRecording(1041_2020-10-19T21:00:00Z) damaged
> recq:<RecordingQuality overall_score="0"
> key="1041_2020-10-19T21:00:00Z" continuity_error_count="0"
> packet_count="9976787">#012    <Gap start="2020-10-19T21:22:27Z"
> end="2020-10-20T00:15:00Z" duration="10352" />#012</RecordingQuality>

This does not match the 0byte recording as the incident time does not
match. My 0byte recording program starts at 17:30
(NBC nightly news).

Ramesh

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: How to find the input used in a recording? [ In reply to ]
On 10/23/20 2:53 PM, Ram Ramesh wrote:
...
> ... Interestingly I had some hits from your grep command even though I did not
> have -v record switch when the error message was generated. Here is what I got:

>> Oct 19 16:00:00 zym mythbackend: mythbackend[2673]: I HDHRStreamHandler tv_rec.cpp:826 (FinishedRecording) TVRec[18]:
>> FinishedRecording(1041_2020-10-19T20:57:04Z) damaged recq:<RecordingQuality overall_score="0" key="1041_2020-10-19T20:57:04Z"
>> continuity_error_count="0" packet_count="1388107">#012    <Gap start="2020-10-19T20:30:00Z" end="2020-10-19T20:57:04Z" duration="1624"
>> />#012</RecordingQuality>
...

Answering the "Interesting" comment only:

The log message is considered VB_GENERAL *if* the recording is thought to be
damaged. That's based on the value of the MinimumRecordingQuality setting.

With -v record (VB_RECORD,), then undamaged recordings will create the log
message, but will say "good" where the above says "damaged" (assuming any
recording quality data was collected.)

The setting isn't changeable via the GUI and defaults to 95%.

https://code.mythtv.org/cgit/mythtv/tree/mythtv/libs/libmythtv/tv_rec.cpp#n825

--
Bill
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: How to find the input used in a recording? [ In reply to ]
On Fri, 23 Oct 2020 15:25:59 -0500, you wrote:

>On 10/23/20 2:53 PM, Ram Ramesh wrote:
>...
>> ... Interestingly I had some hits from your grep command even though I did not
>> have -v record switch when the error message was generated. Here is what I got:
>
>>> Oct 19 16:00:00 zym mythbackend: mythbackend[2673]: I HDHRStreamHandler tv_rec.cpp:826 (FinishedRecording) TVRec[18]:
>>> FinishedRecording(1041_2020-10-19T20:57:04Z) damaged recq:<RecordingQuality overall_score="0" key="1041_2020-10-19T20:57:04Z"
>>> continuity_error_count="0" packet_count="1388107">#012??? <Gap start="2020-10-19T20:30:00Z" end="2020-10-19T20:57:04Z" duration="1624"
>>> />#012</RecordingQuality>
>...
>
>Answering the "Interesting" comment only:
>
>The log message is considered VB_GENERAL *if* the recording is thought to be
>damaged. That's based on the value of the MinimumRecordingQuality setting.
>
>With -v record (VB_RECORD,), then undamaged recordings will create the log
>message, but will say "good" where the above says "damaged" (assuming any
>recording quality data was collected.)
>
>The setting isn't changeable via the GUI and defaults to 95%.
>
>https://code.mythtv.org/cgit/mythtv/tree/mythtv/libs/libmythtv/tv_rec.cpp#n825

Thanks, it is useful to know exactly how that works.

I have found that certain sorts of damage that do not result in the
decision that the recording is to be marked as damaged are still a
problem, so I have -v record on so that there will be messages about
the damage, and I can manually schedule re-recording where possible.
One common sort of such damage I do get is where a recording has a
delay in starting, so that I lose a minute or so at the beginning of a
recording. That happens when I have a lot of recordings starting
around the same time, and I am suspecting a bug of some sort as when
it happens, the frontend is unable to do anything either. If a
recording is already playing, it will keep playing, but attempting to
skip forwards over an ad break will not work until the recordings that
are starting have actually started.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: How to find the input used in a recording? [ In reply to ]
On Fri, 23 Oct 2020 14:53:12 -0500, you wrote:

>On 10/22/20 9:46 PM, Stephen Worthington wrote:
>> On Thu, 22 Oct 2020 20:32:05 -0500, you wrote:
>>
>>> One of my tuner is bad and it produces 0 byte recordings whenever that
>>> tuner is used. I am not sure which one it is. How do I find out from the
>>> recorded program information? I mean, when I look up previously recorded
>>> programs, I do not get input information. Is that kept in the database,
>>> if so how do I get it?
>> On a recording, push the I key twice and scroll down if necessary to
>> find the "Recording Input:" field. In the database, this is the
>> recorded.inputname field. It does rely on you having set up the names
>> for the tuners in mythtv-setup so that you can differentiate them.
>> From SQL a query like this should work:
>>
>> select chanid,starttime,title,inputname from recorded where filesize=0
>> order by starttime desc limit 10;
>>
>> You can also look in mythbackend.log. I do this grep command daily to
>> check for damaged recordings:
>>
>> grep -a "overall_score=\"0" /var/log/mythtv/mythbackend.log
>>
>> However, the log lines that relies on may only be there if you have
>> the "-v record" option set on your mythbackend command line. I always
>> have that option set. Here is the sort of message that grep will
>> find:
>>
>> Oct 17 04:51:47 mypvr mythbackend: mythbackend[3235]: I TVRecEvent
>> tv_rec.cpp:826 (FinishedRecording) TVRec[92]:
>> FinishedRecording(10007_2020-10-16T15:51:26Z) damaged
>> recq:<RecordingQuality overall_score="0"
>> key="10007_2020-10-16T15:51:26Z" continuity_error_count="0"
>> packet_count="116465">#012 <Gap start="2020-10-16T15:20:00Z"
>> end="2020-10-16T15:51:27Z" duration="1887" />#012 <Gap
>> start="2020-10-16T15:51:47Z" end="2020-10-16T16:10:00Z"
>> duration="1092" />#012</RecordingQuality>
>>
>> The tuner number is available as the [92] in TVRec[92] in that
>> message. I believe all messages referring to a tuner will have the
>> tuner number in that format.
>>
>I added -v record to mythtv-backend service and restarted the service.
>Interestingly I had some hits from your grep command eventhough I did
>not have -v record switch when the error message was generated. Here is
>what I got
>> Oct 19 16:00:00 zym mythbackend: mythbackend[2673]: I
>> HDHRStreamHandler tv_rec.cpp:826 (FinishedRecording) TVRec[18]:
>> FinishedRecording(1041_2020-10-19T20:57:04Z) damaged
>> recq:<RecordingQuality overall_score="0"
>> key="1041_2020-10-19T20:57:04Z" continuity_error_count="0"
>> packet_count="1388107">#012??? <Gap start="2020-10-19T20:30:00Z"
>> end="2020-10-19T20:57:04Z" duration="1624" />#012</RecordingQuality>
>
>> Oct 19 16:22:29 zym mythbackend: mythbackend[2673]: I TVRecEvent
>> tv_rec.cpp:826 (FinishedRecording) TVRec[18]:
>> FinishedRecording(1041_2020-10-19T21:00:00Z) damaged
>> recq:<RecordingQuality overall_score="0"
>> key="1041_2020-10-19T21:00:00Z" continuity_error_count="0"
>> packet_count="9976787">#012??? <Gap start="2020-10-19T21:22:27Z"
>> end="2020-10-20T00:15:00Z" duration="10352" />#012</RecordingQuality>
>
>This does not match the 0byte recording as the incident time does not
>match. My 0byte recording program starts at 17:30
>(NBC nightly news).
>
>Ramesh

When a recording fails the time the failure happens is at the end of
the recording time. So if your recording starts at 17:30 and runs for
60 minutes plus say 4 minutes of post roll it will likely be actually
finishing at 17:30+60+4+1, with the extra 1 minute coming from the
default 60 seconds setting for the other (general to all recordings)
post-roll setting. So you would expect the matching "damaged" message
to be logged at about 18:35 local time. You can match up the
"damaged" messages to recordings using the filestamp that gets logged.
In the last message above, the filestamp is the
"FinishedRecording(1041_2020-10-19T21:00:00Z)" and that tells you that
the chanid for the recording was 1041 and the timestamp for the start
of recording was 2020-10-19T21:00:00Z (UTC = the Z on the end). So in
the database, the basename for that recording will be
1041_20201019210000.ts. In a database query you can then find that
recording with:

select * from recorded where basename like '1041_20201019210000%'\G
select * from recordedprogram where chanid=(select chanid from
recorded where basename like '1041_20201019210000%') and
starttime=(select progstart from recorded where basename like
'1041_20201019210000%')\G

I do not get many 0 byte recordings, so I am not sure exactly what a
"damaged" message for one would look like. There are two
possibilities - either there would be no "damaged" message at all
(since the recording never started), but more likely there would be a
message with a gap for the entire length of the recording, so the
"<Gap start=" will be a timestamp for the start of the recording (in
UTC though) and the "duration=" will be the number of seconds for the
total recording time including both types of pre-roll and both types
of post-roll.

When trying to match recordings to "damaged" messages, I find it
really useful to know the chanid value I am looking for. So I have my
database set up so that most chanids have values that match the
channel numbers. For example, for my Sky TV channels, the chanid is
always 10000 plus the channel number. Your database may not have
that, so you may need to look up the chanid:

select chanid,channum+0,callsign,name from channel where channum=1;

or

select chanid,channum+0,callsign,name from channel where name like
'%NBC%';

I am also lucky with the timezone I live in - New Zealand is UTC+12
normally and UTC+13 during daylight saving. So it is fairly easy
arithmetic to work out the UTC time for a programme from its local
time. If your timezone is not so cooperative, you can get the
database to help. To convert from UTC to local time (for the NZ
timezone):

MariaDB [mythconverg]> select convert_tz('2020-10-19T21:22:27Z',
'UTC', 'NZ');
+-------------------------------------------------+
| convert_tz('2020-10-19T21:22:27Z', 'UTC', 'NZ') |
+-------------------------------------------------+
| 2020-10-20 10:22:27 |
+-------------------------------------------------+
1 row in set, 1 warning (0.000 sec)

and back again:

MariaDB [mythconverg]> select convert_tz('2020-10-20
10:22:27','NZ','UTC');
+----------------------------------------------+
| convert_tz('2020-10-20 10:22:27','NZ','UTC') |
+----------------------------------------------+
| 2020-10-19 21:22:27 |
+----------------------------------------------+
1 row in set (0.000 sec)
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: How to find the input used in a recording? [ In reply to ]
On 10/22/20 7:01 PM, Eyal Lebedinsky wrote:
> On 23/10/2020 12.32, Ram Ramesh wrote:
>> One of my tuner is bad and it produces 0 byte recordings whenever
>> that tuner is used. I am not sure which one it is. How do I find out
>> from the recorded program information? I mean, when I look up
>> previously recorded programs, I do not get input information. Is that
>> kept in the database, if so how do I get it?
>
> When the recording is selected (not playing) in "watch recordings" hit
> 'i' twice. You may need to scroll down.

To find/verify a bad tuner, how about firing up live TV and switch
tuners (I think the shortcut is "Y") until a problem shows up?  Maybe
change channels on each?

Dave D.


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: How to find the input used in a recording? [ In reply to ]
Hi Ram,

To figure out which tuner did which recording you can do the following:

1. Get a list of the tuners (capture cards) with the following SQL command:
MariaDB [mythconverg]> select
cardid,parentid,videodevice,displayname,sourceid from capturecard;
+--------+----------+-----------------------------+-------------+----------+
| cardid | parentid | videodevice | displayname | sourceid |
+--------+----------+-----------------------------+-------------+----------+
| 1 | 0 | /dev/dvb/adapter0/frontend0 | K0 | 1 |
| 2 | 0 | /dev/dvb/adapter1/frontend0 | K1 | 1 |
| 3 | 0 | /dev/dvb/adapter2/frontend0 | K2 | 1 |
| 4 | 0 | 141013C6 | H0 | 4 |
| 5 | 0 | 141013C6 | H1 | 4 |
| 6 | 0 | 141013C6 | H2 | 4 |
| 16 | 1 | /dev/dvb/adapter0/frontend0 | K0 | 1 |
| 17 | 2 | /dev/dvb/adapter1/frontend0 | K1 | 1 |
| 18 | 3 | /dev/dvb/adapter2/frontend0 | K2 | 1 |
| 19 | 4 | 141013C6 | H0 | 4 |
| 20 | 5 | 141013C6 | H1 | 4 |
| 21 | 6 | 141013C6 | H2 | 4 |
| 22 | 4 | 141013C6 | H0 | 4 |
| 23 | 5 | 141013C6 | H1 | 4 |
| 24 | 0 | 1410F45C | HDHR | 4 |
| 25 | 2 | /dev/dvb/adapter1/frontend0 | K1 | 1 |
| 26 | 5 | 141013C6 | H1 | 4 |
| 27 | 5 | 141013C6 | H1 | 4 |
| 28 | 1 | /dev/dvb/adapter0/frontend0 | K0 | 1 |
+--------+----------+-----------------------------+-------------+----------+

The third column identifies the HDHomeRun device.
The first column identifies the tuner (capture card) and this number is
used in the mythbackend logs.

2. Get the relevant lines from the mythbackend log, eg.:

> grep continuity_error_count mythbackend.log

This will give output like this:
2020-10-24 13:05:00.041774 I TVRec[16]:
FinishedRecording(10411_2020-10-24T09:42:00Z) good recq:<RecordingQuality
overall_score="1" key="10411_2020-10-24T09:42:00Z"
continuity_error_count="0" packet_count="36666066" />
2020-10-24 13:25:00.466228 I TVRec[4]:
FinishedRecording(119043_2020-10-24T09:52:00Z) good recq:<RecordingQuality
overall_score="1" key="119043_2020-10-24T09:52:00Z"
continuity_error_count="0" packet_count="44032547" />
2020-10-24 13:30:01.214219 I TVRec[1]:
FinishedRecording(10411_2020-10-24T10:42:00Z) good recq:<RecordingQuality
overall_score="1" key="10411_2020-10-24T10:42:00Z"
continuity_error_count="0" packet_count="21208761" />
2020-10-24 14:20:00.678063 I TVRec[16]:
FinishedRecording(10411_2020-10-24T11:07:00Z) good recq:<RecordingQuality
overall_score="1" key="10411_2020-10-24T11:07:00Z"
continuity_error_count="0" packet_count="32253338" />

So for example, the recording with "TVRec[4]" has been recorded on capture
card 4 and this is then HDHomeRun 141013C6.

Recordings with continuity_error_count=0 and with a huge packet_count are
usually OK.

This way you can easily identify which HDHomeRun does not work properly.


About how to fix this, with old HDHomeRun devices it is usually the power
supply that gives problems.
In your case, with two old HDHomeRun devices I would replace the power
supply of both.
Updating the firmware is also a good idea but only after you have replaced
the power supply.

Hope this helps,
Klaas.
Re: How to find the input used in a recording? [ In reply to ]
On 10/24/20 2:24 PM, Klaas de Waal wrote:
> Hi Ram,
>
> To figure out which tuner did which recording you can do the following:
>
> 1. Get a list of the tuners (capture cards) with the following SQL
> command:
> MariaDB [mythconverg]> select
> cardid,parentid,videodevice,displayname,sourceid from capturecard;
> +--------+----------+-----------------------------+-------------+----------+
> | cardid | parentid | videodevice                 | displayname |
> sourceid |
> +--------+----------+-----------------------------+-------------+----------+
> |      1 |        0 | /dev/dvb/adapter0/frontend0 | K0  |        1 |
> |      2 |        0 | /dev/dvb/adapter1/frontend0 | K1  |        1 |
> |      3 |        0 | /dev/dvb/adapter2/frontend0 | K2  |        1 |
> |      4 |        0 | 141013C6                    | H0  |        4 |
> |      5 |        0 | 141013C6                    | H1  |        4 |
> |      6 |        0 | 141013C6                    | H2  |        4 |
> |     16 |        1 | /dev/dvb/adapter0/frontend0 | K0  |        1 |
> |     17 |        2 | /dev/dvb/adapter1/frontend0 | K1  |        1 |
> |     18 |        3 | /dev/dvb/adapter2/frontend0 | K2  |        1 |
> |     19 |        4 | 141013C6                    | H0  |        4 |
> |     20 |        5 | 141013C6                    | H1  |        4 |
> |     21 |        6 | 141013C6                    | H2  |        4 |
> |     22 |        4 | 141013C6                    | H0  |        4 |
> |     23 |        5 | 141013C6                    | H1  |        4 |
> |     24 |        0 | 1410F45C                    | HDHR  |        4 |
> |     25 |        2 | /dev/dvb/adapter1/frontend0 | K1  |        1 |
> |     26 |        5 | 141013C6                    | H1  |        4 |
> |     27 |        5 | 141013C6                    | H1  |        4 |
> |     28 |        1 | /dev/dvb/adapter0/frontend0 | K0  |        1 |
> +--------+----------+-----------------------------+-------------+----------+
>
> The third column identifies the HDHomeRun device.
> The first column identifies the tuner (capture card) and this number
> is used in the mythbackend logs.
>
> 2. Get the relevant lines from the mythbackend log, eg.:
>
> > grep continuity_error_count mythbackend.log
>
> This will give output like this:
> 2020-10-24 13:05:00.041774 I  TVRec[16]:
> FinishedRecording(10411_2020-10-24T09:42:00Z) good
> recq:<RecordingQuality overall_score="1"
> key="10411_2020-10-24T09:42:00Z" continuity_error_count="0"
> packet_count="36666066" />
> 2020-10-24 13:25:00.466228 I  TVRec[4]:
> FinishedRecording(119043_2020-10-24T09:52:00Z) good
> recq:<RecordingQuality overall_score="1"
> key="119043_2020-10-24T09:52:00Z" continuity_error_count="0"
> packet_count="44032547" />
> 2020-10-24 13:30:01.214219 I  TVRec[1]:
> FinishedRecording(10411_2020-10-24T10:42:00Z) good
> recq:<RecordingQuality overall_score="1"
> key="10411_2020-10-24T10:42:00Z" continuity_error_count="0"
> packet_count="21208761" />
> 2020-10-24 14:20:00.678063 I  TVRec[16]:
> FinishedRecording(10411_2020-10-24T11:07:00Z) good
> recq:<RecordingQuality overall_score="1"
> key="10411_2020-10-24T11:07:00Z" continuity_error_count="0"
> packet_count="32253338" />
>
> So for example, the recording with "TVRec[4]"  has been recorded on
> capture card 4 and this is then HDHomeRun 141013C6.
>
> Recordings with continuity_error_count=0 and with a huge packet_count
> are usually OK.
>
> This way you can easily identify which HDHomeRun does not work properly.
>
>
> About how to fix this, with old HDHomeRun devices it is usually the
> power supply that gives problems.
> In your case, with two old HDHomeRun devices I would replace the power
> supply of both.
> Updating the firmware is also a good idea but only after you have
> replaced the power supply.
>
> Hope this helps,
> Klaas.
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
Klaas,

  Thanks for the information and education on mysql and ways to query
mythconverg to get what I want.  I could build more on your suggestions
and find the failing tuner. It appears that the failing tuner is from a
more recent box (3 years, may be) compared to working one (6 years).
Also power supplies are not compatible (old is 12V vs. new is 5V). So, I
will have to buy one.  Silicondust sells for 15.  Another member of this
group (Gary, I think) also suggested power supply.

  Interestingly, I am not able to reproduce the issue consistently.
Also, I feel that the issue is present on all 4 tuners from that
HDhomeRun unit. So, I believe PS is a very possible issue. Let me try
that route.

Regards
Ramesh
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: How to find the input used in a recording? [ In reply to ]
On 10/24/20 2:24 PM, Klaas de Waal wrote:
> Hi Ram,
>
> To figure out which tuner did which recording you can do the following:
>
> 1. Get a list of the tuners (capture cards) with the following SQL
> command:
> MariaDB [mythconverg]> select
> cardid,parentid,videodevice,displayname,sourceid from capturecard;
> +--------+----------+-----------------------------+-------------+----------+
> | cardid | parentid | videodevice                 | displayname |
> sourceid |
> +--------+----------+-----------------------------+-------------+----------+
> |      1 |        0 | /dev/dvb/adapter0/frontend0 | K0  |        1 |
> |      2 |        0 | /dev/dvb/adapter1/frontend0 | K1  |        1 |
> |      3 |        0 | /dev/dvb/adapter2/frontend0 | K2  |        1 |
> |      4 |        0 | 141013C6                    | H0  |        4 |
> |      5 |        0 | 141013C6                    | H1  |        4 |
> |      6 |        0 | 141013C6                    | H2  |        4 |
> |     16 |        1 | /dev/dvb/adapter0/frontend0 | K0  |        1 |
> |     17 |        2 | /dev/dvb/adapter1/frontend0 | K1  |        1 |
> |     18 |        3 | /dev/dvb/adapter2/frontend0 | K2  |        1 |
> |     19 |        4 | 141013C6                    | H0  |        4 |
> |     20 |        5 | 141013C6                    | H1  |        4 |
> |     21 |        6 | 141013C6                    | H2  |        4 |
> |     22 |        4 | 141013C6                    | H0  |        4 |
> |     23 |        5 | 141013C6                    | H1  |        4 |
> |     24 |        0 | 1410F45C                    | HDHR  |        4 |
> |     25 |        2 | /dev/dvb/adapter1/frontend0 | K1  |        1 |
> |     26 |        5 | 141013C6                    | H1  |        4 |
> |     27 |        5 | 141013C6                    | H1  |        4 |
> |     28 |        1 | /dev/dvb/adapter0/frontend0 | K0  |        1 |
> +--------+----------+-----------------------------+-------------+----------+
>
> The third column identifies the HDHomeRun device.
> The first column identifies the tuner (capture card) and this number
> is used in the mythbackend logs.
>
> 2. Get the relevant lines from the mythbackend log, eg.:
>
> > grep continuity_error_count mythbackend.log
>
> This will give output like this:
> 2020-10-24 13:05:00.041774 I  TVRec[16]:
> FinishedRecording(10411_2020-10-24T09:42:00Z) good
> recq:<RecordingQuality overall_score="1"
> key="10411_2020-10-24T09:42:00Z" continuity_error_count="0"
> packet_count="36666066" />
> 2020-10-24 13:25:00.466228 I  TVRec[4]:
> FinishedRecording(119043_2020-10-24T09:52:00Z) good
> recq:<RecordingQuality overall_score="1"
> key="119043_2020-10-24T09:52:00Z" continuity_error_count="0"
> packet_count="44032547" />
> 2020-10-24 13:30:01.214219 I  TVRec[1]:
> FinishedRecording(10411_2020-10-24T10:42:00Z) good
> recq:<RecordingQuality overall_score="1"
> key="10411_2020-10-24T10:42:00Z" continuity_error_count="0"
> packet_count="21208761" />
> 2020-10-24 14:20:00.678063 I  TVRec[16]:
> FinishedRecording(10411_2020-10-24T11:07:00Z) good
> recq:<RecordingQuality overall_score="1"
> key="10411_2020-10-24T11:07:00Z" continuity_error_count="0"
> packet_count="32253338" />
>
> So for example, the recording with "TVRec[4]"  has been recorded on
> capture card 4 and this is then HDHomeRun 141013C6.
>
> Recordings with continuity_error_count=0 and with a huge packet_count
> are usually OK.
>
> This way you can easily identify which HDHomeRun does not work properly.
>
>
> About how to fix this, with old HDHomeRun devices it is usually the
> power supply that gives problems.
> In your case, with two old HDHomeRun devices I would replace the power
> supply of both.
> Updating the firmware is also a good idea but only after you have
> replaced the power supply.
>
> Hope this helps,
> Klaas.
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
I did more experiments and feel that it is not the tuner, but a TV
station. I got this impression because of the following. When I begin
the live tv session, it goes to chan 2_1 which has a very poor signal.
However, changing channel to 5_1 (the channel that produces 0-byte
recording) gets me going and I see good reception.  Now if I switch to
another input, I see that the switch first gets me to 2_1 on the new
tuner and then switches to 5_1 (this is based on call signs shown on the
tv).
One of the unit (older) is able to recover from failing 2_1 and go to
5_1 in a reasonable time. However the failing tuner takes a lot longer
as it may be trying harder (newer tuner) and this causes backend to give
up and create a 0-byte recording when this tuner is used to tune a good
channel.

Does this make sense? If I want to experiment further, how do I delete
this channel from the tuner so that it does not default to this channel
and then switch? Is there a backend setup value to set the starting
channel to tune?

Ramesh

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org