<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.1">
</HEAD>
<BODY>
<BR>
On Wed, 2008-01-16 at 11:18 +0100, Johan wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hello devs,</FONT>

<FONT COLOR="#000000">I'm falling back on the experts, since I have a problem which no-one can</FONT>
<FONT COLOR="#000000">help me with yet, and searching google and the asking on the user list</FONT>
<FONT COLOR="#000000">could not help me either.</FONT>

<FONT COLOR="#000000">I am running mythtv </FONT>
<FONT COLOR="#000000">(2008-01-16 09:44:37.952 mythbackend version: 0.20.20070821-1</FONT>
<FONT COLOR="#000000"><A HREF="http://www.mythtv.org">www.mythtv.org</A>)</FONT>


<FONT COLOR="#000000">on mythbuntu:</FONT>

<FONT COLOR="#000000">Linux version 2.6.22-14-generic (buildd@terranova) (gcc version 4.1.3</FONT>
<FONT COLOR="#000000">20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP Tue Dec 18</FONT>
<FONT COLOR="#000000">08:02:57 UTC 2007 (Ubuntu 2.6.22-14.47-generic)</FONT>


<FONT COLOR="#000000">My hardware is a Hauppauge Nexus-S card with a Dual CI interface. I'm</FONT>
<FONT COLOR="#000000">using a cam and the official smartcard.</FONT>

<FONT COLOR="#000000">I cannot watch encrypted DVB-S channels using mythtv. As a sanity check</FONT>
<FONT COLOR="#000000">I verified that my hardware is ok using WinXP and the</FONT>
<FONT COLOR="#000000">hauppauge/technotrend TV viewer.</FONT>


<FONT COLOR="#000000">I can also watch encrypted channels using Kaffeine. Additionally I</FONT>
<FONT COLOR="#000000">installed &quot;vdr&quot; and also with this program I can watch my encrypted</FONT>
<FONT COLOR="#000000">programs.</FONT>

<FONT COLOR="#000000">So in this case it is only Mythtv which is giving me a problem watching</FONT>
<FONT COLOR="#000000">encrypted DVB-S channels. (but I like to use mythtv :) )</FONT>

<FONT COLOR="#000000">I verified that the ServiceId in mythconverge equals the official Pid.</FONT>

<FONT COLOR="#000000">I removed the capture card and all associated channels from the mythtv</FONT>
<FONT COLOR="#000000">setup, then added the card. Imported then only about 10 channels, of</FONT>
<FONT COLOR="#000000">which two were FTA, from a channels.conf created with 'scan -a'.</FONT>
<FONT COLOR="#000000">I can watch the two FTA's but none of the encrypted.</FONT>

<FONT COLOR="#000000">I have captured what I think was relevant below</FONT>

<FONT COLOR="#000000">dmesg output</FONT>

<FONT COLOR="#000000">johan@phoenix:~$ dmesg |grep -i dvb</FONT>
<FONT COLOR="#000000">[   60.810926] saa7146: register extension 'dvb'.</FONT>
<FONT COLOR="#000000">[   60.861505] DVB: registering new adapter (Technotrend/Hauppauge WinTV</FONT>
<FONT COLOR="#000000">Nexus-S rev2.X).</FONT>
<FONT COLOR="#000000">[   61.105683] dvb-ttpci: gpioirq unknown type=0 len=0</FONT>
<FONT COLOR="#000000">[   61.135223] dvb-ttpci: info @ card 0: firm f0240009, rtsl b0250018,</FONT>
<FONT COLOR="#000000">vid 71010068, app 80002622</FONT>
<FONT COLOR="#000000">[   61.135226] dvb-ttpci: firmware @ card 0 supports CI link layer</FONT>
<FONT COLOR="#000000">interface</FONT>
<FONT COLOR="#000000">[   61.286962] dvb-ttpci: adac type set to 0 @ card 0</FONT>
<FONT COLOR="#000000">[   61.858188] DVB: registering frontend 0 (ST STV0299 DVB-S)...</FONT>
<FONT COLOR="#000000">[   61.858287] input: DVB on-card IR receiver as /class/input/input6</FONT>
<FONT COLOR="#000000">[   61.858314] dvb-ttpci: found av7110-0.</FONT>

<FONT COLOR="#000000">mythtbackend log</FONT>
<FONT COLOR="#000000">CAM: ZCAS, 01, 02CA, 3000</FONT>
<FONT COLOR="#000000">ERROR: too many CA system IDs!</FONT>
<FONT COLOR="#000000">ERROR: too many CA system IDs!</FONT>
<FONT COLOR="#000000">ERROR: too many CA system IDs!</FONT>
<FONT COLOR="#000000">ERROR: too many CA system IDs!</FONT>
<FONT COLOR="#000000">ERROR: too many CA system IDs!</FONT>

<FONT COLOR="#000000">then after trying to view an encrypted channel the mythbackend.log</FONT>
<FONT COLOR="#000000">shows:</FONT>
<FONT COLOR="#000000">&quot;2008-01-16 10:11:43.660 DVB#0 CA Error: GetCaSystemIds returned NULL!</FONT>
<FONT COLOR="#000000">(Slot #0)&quot;</FONT>

<FONT COLOR="#000000">(note: the cam is in slot #0 and mythtv showed full LOCK)</FONT>

<FONT COLOR="#000000">and in syslog many times :</FONT>

<FONT COLOR="#000000">[  742.543466] dvb-ttpci: StartHWFilter error  buf 0b07 0010 08f7 b96a</FONT>
<FONT COLOR="#000000">ret 0  handle ffff</FONT>
<FONT COLOR="#000000">[  742.551529] dvb-ttpci: StartHWFilter error  buf 0b07 0010 08fb b96a</FONT>
<FONT COLOR="#000000">ret 0  handle ffff</FONT>
<FONT COLOR="#000000">[ 1214.254778] dvb-ttpci: StartHWFilter error  buf 0b07 0010 08d5 b96a</FONT>
<FONT COLOR="#000000">ret 0  handle ffff</FONT>
<FONT COLOR="#000000">etc etc</FONT>



<FONT COLOR="#000000">I hope this fairly lengthy mail allows someone to give me a hint in the</FONT>
<FONT COLOR="#000000">right direction. </FONT>

<FONT COLOR="#000000">thanks</FONT>

<FONT COLOR="#000000">Johan</FONT>

</PRE>
</BLOCKQUOTE>
<FONT SIZE="4">I just recorded another log using the -v channel option:</FONT><BR>
<BR>
<BR>
<FONT SIZE="4">2008-01-16 14:29:21.778 DVBChan(0): SetChannelByString(4): Already on channel</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.778 DVB#0 CA: SetPMT() program num #2004</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.781 Finished recording Murder, she wrote: channel 3004</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.801 Finished recording Murder, she wrote: channel 3004</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.820 TVRec(8): RingBufferChanged()</FONT><BR>
<FONT SIZE="4">[mpegts @ 0xb74af8b0]Parser not found for Codec Id: 94211 !</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.851 Finished recording Murder, she wrote: channel 3004</FONT><BR>
<FONT SIZE="4">0: start_time: 0.000 duration: 1.732</FONT><BR>
<FONT SIZE="4">1: start_time: 0.000 duration: 7929.641</FONT><BR>
<FONT SIZE="4">2: start_time: 7927.895 duration: 1.746</FONT><BR>
<FONT SIZE="4">stream: start_time: 0.000 duration: 88107.124 bitrate=0 kb/s</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.888 AFD: Opened codec 0xa864b4b0, id(MPEG2VIDEO) type(Video)</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.898 AFD: Opened codec 0xa864b7f0, id(MP3) type(Audio)</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.898 NVP: Disabling Audio, params(0,0,0)</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.900 NVP: Recording does not have position map.</FONT><BR>
<FONT SIZE="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Run 'mythcommflag --file 3004_20080116142857.mpg --rebuild' to fix</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.913 DVB#0 CA: CiHandler needs CA_PMT</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.913 DVB#0 CA Error: GetCaSystemIds returned NULL! (Slot #0)</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.913 DVB#0 CA: Creating CA_PMT, ServiceID = 2004</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.913 Adding CA descriptor: CASID(0x622), ECM PID(0x565)</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.913 Adding elementary stream: video-mpeg2, pid(0x200)</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.913 Adding elementary stream: audio-mp2-layer[1,2,3] (dut), pid(0x50)</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.913 Adding elementary stream: private-data, pid(0x20)</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.913 Adding elementary stream: unknown, pid(0xd0)</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.913 Adding elementary stream: unknown, pid(0xfa)</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:21.913 DVB#0 CA: Sending CA_PMT with CPLM_ONLY to CI slot #1</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:23.514 DVB#0 CA: CAM: Menu Title: ZCAS</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:23.514 DVB#0 CA: CAM: Menu SubTitle: </FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:23.514 DVB#0 CA: CAM: Menu BottomText: Press 'OK' to continue</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:23.514 DVB#0 CA: CAM: Menu Entry: No right to watch this program</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:23.514 DVB#0 CA: CAM: Selecting first entry</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:34.996 TVRec(8): Changing from WatchingLiveTV to None</FONT><BR>
<FONT SIZE="4">2008-01-16 14:29:35.313 Finished recording Murder, she wrote: channel 3004</FONT><BR>
<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>


<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">mythtv-dev mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:mythtv-dev@mythtv.org">mythtv-dev@mythtv.org</A></FONT>
<FONT COLOR="#000000"><A HREF="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>