View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Apr 22, 2007 6:15 pm 
Offline
Joined: Sat Dec 24, 2005 11:33 am
Posts: 400
Location: Kitsap Peninsula, Wa., United States
In this post R5E50 Upgrade Hints and Hazards http://mysettopbox.tv/phpBB2/viewtopic.php?p=88235#88235
A couple of quotes from TJC...
Quote:
..getting errors/warnings when you try to exit mythtv-setup along the lines of "Card 0 (type) is set to start on channel 2, which does not exist." see this thread...on getting rid of stale capture...

Later in thread..
Quote:
If the following commands show a cardid (especially 0) in the cardinput table which is not listed in the capturecard table you should remove all references to it:


There is a post referenced in there for removing the False or stale or No Longer Valid inputs however, it doesn't seem to be available.

I did look for the posts.

Here is the script I ran and my outputs.
As root:
Code:
mysql mythconverg -e "select cardid, videodevice, defaultinput from capturecard"
+--------+-------------+--------------+
| cardid | videodevice | defaultinput |
+--------+-------------+--------------+
|      1 | /dev/video0 | S-Video 0    |
|      2 | /dev/video0 | S-Video 0    |
|      3 | /dev/video0 | S-Video 0    |
|      4 | /dev/video1 | Composite 0  |
+--------+-------------+--------------+

mysql mythconverg -e "select cardid, sourceid, inputname from cardinput"
+--------+----------+-------------+
| cardid | sourceid | inputname   |
+--------+----------+-------------+
|      0 |        0 |             |
|      1 |        1 | S-Video 0   |
|      0 |        0 |             |
|      2 |        1 | S-Video 0   |
|      0 |        0 |             |
|      3 |        1 | S-Video 0   |
|      0 |        0 |             |
|      4 |        1 | Composite 0 |
|      0 |        0 |             |
+--------+----------+-------------+



My Question and I am sure there is more than one answer. What is the way to get rid of these "0" cardids?

I am thinking I can use Webmin > Servers > Mysql Database Server.
Select table "mythconverg"
Search out "cardinput"
It will show a Table. Select that table and it will show the fields.

At this point Select View Data

That gives me a list of the card inputs similar to the table above.
I can then select the Id's that are a "0" and tell it to delete the selected rows.

Is this workable?

If there is another method, please post as well.

Asking before I try.

Using Knoppmyth R5C7

TIA.

Andy


Last edited by bigbro on Sun Apr 22, 2007 7:18 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 22, 2007 6:43 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Code:
mysql mythconverg -e "delete from cardinput where cardid=0"

Webmin works too. I added the trailing post becuse the other thread had been lost.


Top
 Profile  
 
PostPosted: Sun Apr 22, 2007 7:07 pm 
Offline
Joined: Sat Dec 24, 2005 11:33 am
Posts: 400
Location: Kitsap Peninsula, Wa., United States
Thanks. I didn't see your trail when I was looking.

I'll close this one now with Solved and a How To:


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 28, 2007 11:06 pm 
Offline
Joined: Sat Jan 03, 2004 3:43 pm
Posts: 64
Location: Mountain View, CA
I hit this case with a fresh install of R5F1. I went on autopilot and created new cards and video sources without realizing that the installer did it for me automatically. As a result the backend failed to start. Then the mythtv-setup UI wouldn't let me delete the extra cards and sources. I'd hit "D", confirm, and nothing happened.

Once I hacked my cardinput and videosource tables my backend started up successfully. Weird.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu