Capturecard table

From MythTV Official Wiki
Revision as of 20:48, 12 March 2011 by Wagnerrp (Talk | contribs)

Jump to: navigation, search

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

Contains an entry for each video capture card installed in master and slave backends across the system.

You can manually alter this table as long as you restart all backends afterwards

Up to date with schema revision 1244.

Table Description

Field name Type Null Key Default Extras
cardid int(10) unsigned NO PRI NULL auto_increment
videodevice varchar(128) YES NULL
audiodevice varchar(128) YES NULL
vbidevice varchar(128) YES NULL
cardtype varchar(32) YES V4L
defaultinput varchar(32) YES Television
audioratelimit int(11) YES NULL
hostname varchar(255) YES NULL
dvb_swfilter int(11) YES 0
dvb_sat_type int(11) 0
dvb_wait_for_seqstart int(11) 1
skipbtaudio tinyint(1) YES 0
dvb_on_demand tinyint(4) 0
dvb_diseqc_type smallint(6) YES NULL
firewire_speed int(10) unsigned 0
firewire_model varchar(32) YES NULL
firewire_connection int(10) unsigned 0
dbox2_port int(10) unsigned 31338
dbox2_httpport int(10) unsigned 80
dbox2_host varchar(32) YES NULL
signal_timeout int(11) 1000
channel_timeout int(11) 3000
dvb_tuning_delay int(10) unsigned 0
contrast int(11) 0
brightness int(11) 0
colour int(11) 0
hue int(11) 0
diseqcid int(10) unsigned YES NULL
dvb_eitscan tinyint(1) NO 1

The videodevice attribute is used differently for analogue and for digital tuners. For analogue tuners, it contains the device name of the card, typically /dev/video0. For digital tuners, it contains the adapter number. For example, videodevice 1 would relate to the devices in the directory /dev/dvb/adapter1/.

Probably due to a bug in mythtv-setup, it is possible to get an incorrect type of videodevice entry. If a digital card has a device name instead of an adapter number, it currently (March 2007) treats it as 0, so /dev/video0 and /dev/video1 both map to adapter 0.

It appears that picture adjustment settings (colour, brightness etc.) should be set to '0' to mean 'no effect', unlike the channel table where the value is between 0 and 64000.

Example Entries

A Hauppauge PVR-350 card:

               cardid: 1
          videodevice: /dev/video0
          audiodevice: NULL
            vbidevice: NULL
             cardtype: MPEG
         defaultinput: Tuner 1 
       audioratelimit: NULL
             hostname: localhost.localdomain
         dvb_swfilter: 0
         dvb_sat_type: 0 
dvb_wait_for_seqstart: 1
          skipbtaudio: 0
        dvb_on_demand: 0 
      dvb_diseqc_type: NULL
        firewire_port: 0
        firewire_node: 2
       firewire_speed: 0
       firewire_model: NULL
  firewire_connection: 0
           dbox2_port: 31338
       dbox2_httpport: 80
           dbox2_host: NULL
       signal_timeout: 1000
      channel_timeout: 3000
             parentid: 0
     dvb_tuning_delay: 0
             contrast: 0
           brightness: 0
               colour: 0
                  hue: 0
             diseqcid: NULL

A DVB card (an pcHDTV HD-3000|HD3000) receiving QAM_256 encoded ATSC by cable (North America):

               cardid: 1
          videodevice: 0
          audiodevice: NULL
            vbidevice: NULL
             cardtype: DVB
         defaultinput: DVBInput
       audioratelimit: NULL
             hostname: localhost
         dvb_swfilter: 0
         dvb_recordts: 1
         dvb_sat_type: 0
dvb_wait_for_seqstart: 1
          skipbtaudio: 0
        dvb_on_demand: 1
      dvb_diseqc_type: NULL
        firewire_port: 0
        firewire_node: 2
       firewire_speed: 0
       firewire_model: NULL
  firewire_connection: 0
       dvb_hw_decoder: 0
           dbox2_port: 31338
       dbox2_httpport: 80 
           dbox2_host: NULL
       signal_timeout: 2000
      channel_timeout: 10000
             parentid: 0
     dvb_tuning_delay: 0
             contrast: 0
           brightness: 0
               colour: 0
                  hue: 0
             diseqcid: 0