Inputgroup table

From MythTV Official Wiki
Revision as of 19:23, 25 December 2011 by Vossman (talk | contribs) (added howto information)

Jump to: navigation, search

Important.png Note: The correct title of this article is inputgroup table. It appears incorrectly here due to technical restrictions.


Table Description

not sure ???


Field name Type Null Key Default Extras
cardinputid int(10) unsigned NO NULL
inputgroupid int(10) unsigned NO NULL
inputgroupname varchar(32) NO NULL

Example use

Taken from MythTV HowTO: http://www.mythtv.org/docs/mythtv-HOWTO-12.html

Usually, inputs on different cards can record at the same time but two or more inputs on the same card cannot. However, there are cases where inputs on different cards should not be allowed to record at the same time, for example, a firewire card and s-video analog card connected to the same set top cable box.

    |
    |   coax +--------------+ firewire    ------------------+
    |     .-=|Cable Provider|=------------=| Card 1 input 1 | HDTV
    |     |  |HD/Cable STB  |=--.          +-----||||||||||||
    |     |  +--------------+   | s-video ------------------+
    |     |                     `---------=|        input 2 | Digital
    |wall |               coax             | Card 2         |
    |=---=^=------------------------------=|        input 3 | Cable
    |                                      +-----||||||||||||

Input 1 and input 2 receive content from the same set top box and the channels can not be tuned independently. Therefore only one of these two inputs should be used at any given time. The solution is to create an "Input Group" with mythtv-setup in "Input connections". Including these two inputs in the same Input Group will tell the scheduler that these are mutually exclusive and may not record at the same time. Inputs 2 and 3 are automatically mutually exclusive because they are on the same card so there is no need to create an Input Group for these inputs.

Cards such as the Hauppauge PVR-500 are able to record as two cards simultaneously because it has two MPEG-2 encoders and each encoder appears as a separate device. DVB cards may be allowed to capture content from more than one channel at a time if the channels are in the same MUX.

Example Entries

The following is an entries for a DVB-T source:

These examples are for a machine which has two "Nova T" (not the 500 model) cards and each card is configured for two tuners. (even though it can only tune to two channels on the same transport).

    cardinputid: 1 
   inputgroupid: 1
 inputgroupname: HDHR_/dev/dvb/adapter0/frontend0
    cardinputid: 2
   inputgroupid: 1
 inputgroupname: HDHR_/dev/dvb/adapter0/frontend0
    cardinputid: 3 
   inputgroupid: 2
 inputgroupname: HDHR_/dev/dvb/adapter1/frontend0
    cardinputid: 4 
   inputgroupid: 2
 inputgroupname: HDHR_/dev/dvb/adapter1/frontend0