[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mythtv-users
Subject:    Re: [mythtv-users] Fwd: backend (?) crash
From:       Klaas de Waal <klaas.de.waal () gmail ! com>
Date:       2021-02-22 18:23:53
Message-ID: CANcAQaP23s2GnDiwEyUojd=tWFePamHe6a57qMXVS-2_7eEjiA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> 
> 
> > If the error is related to a capture card that does convert external
> > video signals such as a HD-PVR then it can be a configuration issue.
> > In mythtv-setup look at page Input Connections / Interaction between
> > Inputs
> > For a HD-PVR the "Max Recordings" should be 1 and the  "Schedule as
> > Group" should be unchecked.
> > 
> 
> This sounds like it could be my problem as I have a HDPVR that I installed
> a few weeks ago. However, I do not see a "Max Recordings" or "Schedule as
> Group" setting under "Interactions between inputs." How can this be?
> 
> > 
> > 
> > This is a bug. Somewhere in the past, the system defaults were correct
for the HDVPR so there was no need to make it configurable. Later on the
defaults have been changed but the HDPVR was forgotten. This bug was not
noticed because most of the time people do an upgrade and not a clean
install. If you do an upgrade the existing database settings are preserved,
so if you had a correct HDPVR configuration it stayed correct. Only new
installs (or those who create new capture cards entries....) will encounter
this.
I plan to fix this one way or another, either by adding the configuration
options or by changing the defaults for the HDPVR.
In the meantime, if you are comfortable with the command line you can fix
it with the following SQL:

[klaas@modu ~]$ mysql -u mythtv -pmythtv mythconverg
> MariaDB [mythconverg]> update capturecard set reclimit=1,schedgroup=0
> where cardtype="HDPVR" limit 1;
> Query OK, 1 row affected (0.003 sec)
> Rows matched: 1  Changed: 1  Warnings: 0


This is from my system, how I tested the command. On the first line, use
your own password after the -p (mine is mythtv).
The "limit 1" at the end limits the changes to max one record. This reduces
the effects of mistakes, but if you have two HDPVR devices you need then to
do it again.
To view the final result you can use this command:

> MariaDB [mythconverg]> select
> cardid,parentid,videodevice,cardtype,inputname,sourceid,reclimit,schedgroup
> from capturecard;
> 
> +--------+----------+---------------------------------------------------+-----------+-----------+----------+----------+------------+
>  | cardid | parentid | videodevice                                       |
> cardtype  | inputname | sourceid | reclimit | schedgroup |
> 
> +--------+----------+---------------------------------------------------+-----------+-----------+----------+----------+------------+
>  |     28 |        0 | /dev/dvb/adapter0/frontend0                       |
> HDPVR     | None      |       17 |        1 |          0 |
> 
> +--------+----------+---------------------------------------------------+-----------+-----------+----------+----------+------------+
>  27 rows in set (0.001 sec)


And then you see something like the above.
N.B. Have left here only the HDPVR entry.
N.B. Your videodevice is probably different, I do not have a HDPVR and have
just used another video device.

Hope this helps,
Klaas.


[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div \
class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div \
class="gmail_quote"><div>  </div><div>If the error is related to a capture card that \
does convert external video signals such as a HD-PVR then it can be a configuration \
issue.</div><div>In mythtv-setup look at page Input Connections / Interaction between \
Inputs  </div><div>For a HD-PVR the &quot;Max Recordings&quot; should be 1 and the   \
&quot;Schedule as Group&quot; should be \
unchecked.</div></div></div></blockquote><div><br></div><div>This sounds like it \
could be my problem as I have a HDPVR that I installed a few weeks ago. However, I do \
not see a &quot;Max Recordings&quot; or &quot;Schedule as   Group&quot; setting under \
&quot;Interactions between inputs.&quot; How can this be? <br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div \
class="gmail_quote"><div><br></div><div><br></div></div></div></blockquote></div></div></blockquote><div>This \
is a bug. Somewhere in the past, the system defaults were correct for the HDVPR  so \
there was no need to make it configurable. Later on the defaults have been changed \
but the HDPVR was forgotten. This bug was not noticed because most of the time people \
do an upgrade and not a clean install. If you do an upgrade the existing database \
settings are preserved, so if you had a correct HDPVR configuration it stayed \
correct. Only new installs (or those who create new capture cards entries....) will \
encounter this.</div><div>I plan to fix this one way or another, either by adding the \
configuration options or by changing the defaults for the HDPVR.</div><div>In the \
meantime, if you are comfortable with the command line you can fix it with the \
following SQL:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px \
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[klaas@modu \
~]$ mysql -u mythtv -pmythtv mythconverg<br>MariaDB [mythconverg]&gt; update \
capturecard set reclimit=1,schedgroup=0 where cardtype=&quot;HDPVR&quot; limit \
1;<br>Query OK, 1 row affected (0.003 sec)<br>Rows matched: 1   Changed: 1   \
Warnings: 0</blockquote><div><br></div><div>This is from my system, how I tested the \
command. On the first line, use your own password after the -p (mine is \
mythtv).</div><div>The &quot;limit 1&quot; at the end limits the changes to max one \
record. This reduces the effects of mistakes, but if you have two HDPVR devices you \
need then to do it again.</div><div>To view the final result you can use this \
command:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">MariaDB \
[mythconverg]&gt; select \
cardid,parentid,videodevice,cardtype,inputname,sourceid,reclimit,schedgroup from \
capturecard;<br>+--------+----------+---------------------------------------------------+-----------+-----------+----------+----------+------------+<br>| \
cardid | parentid | videodevice                                                       \
| cardtype   | inputname | sourceid | reclimit | schedgroup \
|<br>+--------+----------+---------------------------------------------------+-----------+-----------+----------+----------+------------+<br>| \
28 |            0 | /dev/dvb/adapter0/frontend0                                  | \
HDPVR       | None         |          17 |            1 |               0 \
|<br>+--------+----------+---------------------------------------------------+-----------+-----------+----------+----------+------------+<br>27 \
rows in set (0.001 sec)</blockquote><div><br></div><div>And then you see something \
like the above.</div><div>N.B. Have left here only the HDPVR entry.</div><div>N.B. \
Your videodevice is probably different, I do not have a HDPVR and have just used \
another video device.</div><div><br></div><div>Hope this \
helps,</div><div>Klaas.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> \
</div></div></div>



_______________________________________________
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic