[mythtv] Having some problems with DVB-C and mythTV 0.11

Georg C. F. Greve greve at gnu.org
Mon Aug 18 03:00:17 EDT 2003


Hi all,

I'm trying to use mythTV (0.11) with one Analog (V4L) and one DVB
(Cable) card with linuxtv-dvb 1.0 driver.

The analog card worked (and still works) fine in mythTV.

The DVB card works fine with xawtv, mplayer & so on when I use the
czap utility to switch channels, also -- for the books -- mythtv has
sufficient permission, I can do all these things as mythtv user.

In fact it so seems that mythTV even recorded a few seconds off the
DVB card at a scheduled time (although the total size was supposed to
be 5 minutes, not a few seconds). So it is /somewhat/ /almost/
working.

The log shows entries like:

Starting up as the master server.
Probed: /dev/video - Television
Probed: /dev/video - Composite1
Probed: /dev/video - S-Video
Probed: /dev/video - Composite3
DVBChannel: Changing to channel 3 on card 0
DVBChannel ERROR: Checkchannel could not verify channel!

Which seems like something is not quite right.

Also I get

ioctl VIDIOC_G_FMT: Invalid argument
strange error flushing buffer ... 

messages that don't seem too good.

I attached a dump of my capturecard, cardinput, videosource and
channel tables. As I couldn't find a lot of documentation on what they
are supposed to look like, it is well possible that some field may be
set incorrectly. Also given that I had to hand-craft them after
mythchannels corrupted my card database when adding the DVB card (I
found a report in the mailing list archives for that, so I won't
bother describing the problem here).

So does anyone have an idea where the problem exactly is and could
help?

Also what I've been asking myself: Since DVB delivers the stream as
MPEG2 -- how does mythTV treat this? Does it save the stream without
fiddling or does it apply its recording settings? (How?)

Regards and thanks,
Georg


-------------- next part --------------
-- MySQL dump 9.08
--
-- Host: localhost    Database: mythconverg
---------------------------------------------------------
-- Server version	4.0.13-log

--
-- Table structure for table 'capturecard'
--

CREATE TABLE capturecard (
  cardid int(10) unsigned NOT NULL auto_increment,
  videodevice varchar(128) default NULL,
  audiodevice varchar(128) default NULL,
  vbidevice varchar(128) default NULL,
  cardtype varchar(32) default 'V4L',
  defaultinput varchar(32) default 'Television',
  audioratelimit int(11) default NULL,
  hostname varchar(255) default NULL,
  use_ts int(11) default NULL,
  dvb_type char(1) default NULL,
  PRIMARY KEY  (cardid)
) TYPE=MyISAM;

--
-- Dumping data for table 'capturecard'
--

INSERT INTO capturecard VALUES (2,'0',NULL,NULL,'DVB','DVB',NULL,'fusebox',0,'C');
INSERT INTO capturecard VALUES (1,'/dev/video','/dev/dsp','/dev/vbi','V4L','Television',0,'fusebox',NULL,NULL);

--
-- Table structure for table 'cardinput'
--

CREATE TABLE cardinput (
  cardinputid int(10) unsigned NOT NULL auto_increment,
  cardid int(10) unsigned NOT NULL default '0',
  sourceid int(10) unsigned NOT NULL default '0',
  inputname varchar(32) NOT NULL default '',
  externalcommand varchar(128) default NULL,
  preference int(11) default NULL,
  shareable char(1) default 'N',
  tunechan varchar(5) NOT NULL default '',
  startchan varchar(5) NOT NULL default '',
  PRIMARY KEY  (cardinputid)
) TYPE=MyISAM;

--
-- Dumping data for table 'cardinput'
--

INSERT INTO cardinput VALUES (1,1,1,'Television','',NULL,'N','','S23');
INSERT INTO cardinput VALUES (2,2,2,'DVB','',NULL,'N','','');

--
-- Table structure for table 'videosource'
--

CREATE TABLE videosource (
  sourceid int(10) unsigned NOT NULL auto_increment,
  name varchar(128) default NULL,
  xmltvgrabber varchar(128) default NULL,
  userid varchar(128) NOT NULL default '',
  PRIMARY KEY  (sourceid)
) TYPE=MyISAM;

--
-- Dumping data for table 'videosource'
--

INSERT INTO videosource VALUES (1,'Cable','tv_grab_de','');
INSERT INTO videosource VALUES (2,'TV-DVB',NULL,'');

--
-- Table structure for table 'channel'
--

CREATE TABLE channel (
  chanid int(10) unsigned NOT NULL default '0',
  channum varchar(5) NOT NULL default '',
  freqid varchar(5) NOT NULL default '',
  sourceid int(10) unsigned default NULL,
  callsign varchar(20) default NULL,
  name varchar(20) default NULL,
  icon varchar(255) default NULL,
  finetune int(11) default NULL,
  videofilters varchar(255) default NULL,
  xmltvid varchar(64) default NULL,
  rank int(10) NOT NULL default '0',
  contrast int(11) default '32768',
  brightness int(11) default '32768',
  colour int(11) default '32768',
  hue int(11) default '32768',
  channeltype enum('Analog','DVB-s','DVB-c','DVB-t','Personal') NOT NULL default 'Analog',
  PRIMARY KEY  (chanid)
) TYPE=MyISAM;

--
-- Dumping data for table 'channel'
--

INSERT INTO channel VALUES (1000,'E4','E4',1,'ard.de','ARD','',0,NULL,'ard.de',50,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1001,'E8','E8',1,'zdf.de','ZDF','',0,NULL,'zdf.de',49,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1002,'E7','E7',1,'ndr.de','Nord 3','',0,NULL,'ndr.de',48,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1003,'E5','E5',1,'rtl.de','RTL','',0,NULL,'rtl.de',47,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1004,'E6','E6',1,'sat1.de','Sat 1','',0,NULL,'sat1.de',46,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1005,'SE8','SE8',1,'rtl2.de','RTL 2','',0,NULL,'rtl2.de',45,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1006,'SE20','SE20',1,'prosieben.de','Pro 7','',0,NULL,'prosieben.de',44,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1007,'SE7','SE7',1,'mtv.de','MTV','',0,NULL,'mtv.de',30,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1008,'SE18','SE18',1,'viva.tv','VIVA','',0,NULL,'viva.tv',29,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1009,'E9','E9',1,'mtv2.de','MTV 2','',0,NULL,'mtv2.de',28,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1010,'E10','E10',1,'arte-tv.com','arte','',0,NULL,'arte-tv.com',40,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1011,'SE6','SE6',1,'mdr.de','MDR','',0,NULL,'mdr.de',31,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1012,'SE9','SE9',1,'kika.de','Ki.Ka','',0,NULL,'kika.de',20,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1013,'SE10','SE10',1,'vox.de','VOX','',0,NULL,'vox.de',25,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1014,'SE12','SE12',1,'3.br-online.de','Bayern 3','',0,NULL,'3.br-online.de',31,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1015,'SE17','SE17',1,'wdr.de','WDR','',0,NULL,'wdr.de',31,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1016,'S21','S21',1,'onyx.tv','ONYX','',0,NULL,'onyx.tv',0,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1017,'SE14','SE14',1,'eurosport.de','EuroSport','',0,NULL,'eurosport.de',0,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1018,'SE15','SE15',1,'kabel1.de','Kabel 1','',0,NULL,'kabel1.de',26,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1019,'E11','E11',1,'3sat.de','3sat','',0,NULL,'3sat.de',31,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1020,'S23','S23',1,'n24.de','N24','',0,NULL,'n24.de',0,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1021,'S25','S25',1,'superrtl.de','Super RTL','',0,NULL,'superrtl.de',19,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1022,'E12','E12',1,'hamburg1.de','Hamburg 1','',0,NULL,'hamburg1.de',27,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1023,'SE4','SE4',1,'EURONEWS/SWISS TXT','EURONEWS/SWISS TXT','',0,NULL,'EURONEWS/SWISS TXT',0,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1024,'SE5','SE5',1,'n-tv.de','n-tv','',0,NULL,'n-tv.de',0,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1025,'SE11','SE11',1,'CNN International','CNN International','',0,NULL,'CNN International',0,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1026,'SE16','SE16',1,'phoenix.de','Phoenix','',0,NULL,'phoenix.de',0,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1036,'36','36',1,'VIDEORECORDER','VIDEORECORDER','',0,NULL,'VIDEORECORDER',99,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1027,'SE13','SE13',1,'TRT TELEGUN','TRT TELEGUN','',0,NULL,'TRT TELEGUN',-20,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1028,'SE19','SE19',1,'TeleShop','TeleShop','',0,NULL,'TeleShop',-10,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1029,'S35','S35',1,'hse24.de','Home Shopping Europe','',0,NULL,'hse24.de',-10,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1030,'03','03',1,'dsf.com','DSF','',0,NULL,'dsf.com',0,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1031,'19','19',1,'neunlive.de','9live','',0,NULL,'neunlive.de',-9,32768,32768,32768,32768,'Analog');
INSERT INTO channel VALUES (1039,'39','',2,'Bayerisches','Bayerisches FS','',0,'','3.br-online.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1051,'51','',2,'hr2','hr2','',0,'','hr-online.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1074,'74','',2,'Parlamentsfernsehen','Parlamentsfernsehen','',0,'','',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1073,'73','',2,'ORB-Fernsehen','ORB-Fernsehen','',0,'','orb.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1072,'72','',2,'ZDFtheaterkanal','ZDFtheaterkanal','',0,'','',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1070,'70','',2,'ZDFdokukanal','ZDFdokukanal','',0,'','',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1071,'71','',2,'ZDFinfokanal','ZDFinfokanal','',0,'','',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1067,'67','',2,'WDR','WDR FERNSEHEN','',0,'','wdr.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1068,'68','',2,'HR','HR XXL','',0,'','hr-online.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1069,'69','',2,'ZDF','ZDF','',0,'','zdf.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1065,'65','',2,'SR','SR Fernsehen Suedwes','',0,'','swr.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1066,'66','',2,'SÜDWEST','SÜDWEST BW','',0,'','swr.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1062,'62','',2,'NDR','NDR FS SH','',0,'','ndr.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1063,'63','',2,'NDR','NDR Kultur','',0,'','',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1064,'64','',2,'Phoenix','Phoenix','',0,'','phoenix.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1060,'60','',2,'NDR','NDR FS MV','',0,'','ndr.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1061,'61','',2,'NDR','NDR FS NDS','',0,'','ndr.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1059,'59','',2,'NDR','NDR FS HH','',0,'','ndr.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1058,'58','',2,'MDR','MDR THÜRINGEN','',0,'','mdr.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1056,'56','',2,'MDR','MDR KULTUR','',0,'','mdr.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1057,'57','',2,'MDR','MDR S-ANHALT','',0,'','mdr.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1055,'55','',2,'MDR','MDR FERNSEHEN','',0,'','mdr.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1054,'54','',2,'KiKa','KiKa','',0,'','kika.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1053,'53','',2,'hr-skyline','hr-skyline','',0,'','',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1052,'52','',2,'hr-klassik','hr-klassik','',0,'','',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1049,'49','',2,'Eurosport','Eurosport','',0,'','eurosport.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1050,'50','',2,'hessen','hessen fernsehen','',0,'','hr-online.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1048,'48','',2,'EuroNews','EuroNews','',0,'','',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1046,'46','',2,'EinsMuXx','EinsMuXx','',0,'','muxx.ard.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1047,'47','',2,'Einstein','Einstein TV','',0,'','',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1045,'45','',2,'EinsFestival','EinsFestival','',0,'','festival.ard.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1044,'44','',2,'EinsExtra','EinsExtra','',0,'','',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1042,'42','',2,'Das','Das Erste','',0,'','ard.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1043,'43','',2,'EASY','EASY LISTENING','',0,'','',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1041,'41','',2,'CNBC','CNBC','',0,'','',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1040,'40','',2,'BR-alpha','BR-alpha','',0,'','1.br-online.de',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1038,'38','',2,'arte','arte','',0,'','arte-tv.com',0,32768,32768,32768,32768,'DVB-c');
INSERT INTO channel VALUES (1037,'37','',2,'3sat','3sat','',0,'','3sat.de',0,32768,32768,32768,32768,'DVB-c');

-------------- next part --------------
-- 
Georg C. F. Greve                                       <greve at gnu.org>
Free Software Foundation Europe	                 (http://fsfeurope.org)
Brave GNU World	                           (http://brave-gnu-world.org)


More information about the mythtv-dev mailing list