Hello. I know this isn't tvheadend forum, but this thread seems to be the only thing in the internet that talks about tvheadend and cccam together...
Did anyone managed to get CCcam working with tvheadend?? I've read throughout almost this entire thread and I can't get a definitive answer if it really does work.
I've been trying to get it working for almost two days now...
I have a Tevii S460 (dvb-s2/dvb-s) tuner, Linux 2.6.31 using the cx24116 module and friends. The /dev/dvb/adapter0 is present and works.
I have configured the multiplexes for my sat and tvheadend finds the services. I have successfully tested free channels in XBMC (xbmc mac - remotly, xbmc linux - local) and it works perfectly (no audio skipping/audio synced correctly/video works).
I have compiled capmt_ca.so from svn trunk in tvheadend src/extras and
run cccam with the preloaded shared library like this (-d -v -n are the debug verbose and packet verbose flags for cccam):
Code:
gcc -O -fbuiltin -fomit-frame-pointer -fPIC -shared -o capmt_ca.so capmt_ca.c -ldl
LD_PRELOAD=/root/capmt_ca.so /usr/local/bin/cccam -d -v -n
I can see that the library is working with cccam as I have the /tmp/camd.socket created and also netstat says...
Code:
tcp 0 0 0.0.0.0:16000 0.0.0.0:* LISTEN 17513/CCcam.x86.2.0
tcp 0 0 0.0.0.0:12000 0.0.0.0:* LISTEN 17513/CCcam.x86.2.0
tcp 0 0 0.0.0.0:16001 0.0.0.0:* LISTEN 17513/CCcam.x86.2.0
tcp 0 0 192.168.0.254:48674 xxxxxxxxxxx:yyyy ESTABLISHED17513/CCcam.x86.2.0
udp 0 0 127.0.0.1:39044 127.0.0.1:9000 ESTABLISHED17513/CCcam.x86.2.0
udp 0 0 127.0.0.1:57251 127.0.0.1:9000 ESTABLISHED17513/CCcam.x86.2.0
udp 0 0 127.0.0.1:33382 127.0.0.1:9000 ESTABLISHED17513/CCcam.x86.2.0
udp 0 0 127.0.0.1:55924 127.0.0.1:9000 ESTABLISHED17513/CCcam.x86.2.0
unix 2 [ ACC ] STREAM LISTENING 458348 17513/CCcam.x86.2.0 /tmp/camd.socket
unix 2 [ ] STREAM 458347 17513/CCcam.x86.2.0
unix 3 [ ] STREAM CONNECTED 458327 17513/CCcam.x86.2.0
I have a working cccam.cfg (because I have a working cccam.cfg in my dreambox and it works, also the config is only 1 line, rest is all default options) and cccam connects to my cccam server. Also when i'm testing this I have my dreambox shutdown.
In tvheadend I have configured in "capmt connections" a new entry with /tmp/camd.socket and listen port to 0. I've also tried listen port 9000 and 12000 just to be sure.
I've tried the following software combinations:
- tvheadend 2.7
- tvheadend 2.8 (svn release)
- xbmc latest svn
- cccam 2.0.9
- cccam 2.1.3
However, cccam doesn't appear to even "talk" to tvheadend. I don't see anything in the logs of cccam. I've started reading the source of the capmt_ca.c and it debugs something to the syslog. This is my syslog output:
Code:
CCcam.x86.2.0.9: capmt_ca.so for camd clients
CCcam.x86.2.0.9: ca.so fopen /proc/cpuinfo mapped to /tmp/cpuinfo
The library doesn't log anything else (and it should, it has a lot of debug statements in the code, when tvheadend tries to connect to /dev/dvb/adapter0/ca0 it should log something) and here is the log for tvheadend when connecting from xbmc
Code:
Jan 02 01:03:58 htsp: 192.168.0.2: Welcomed client software: XBMC Media Center
Jan 02 01:03:58 capmt: Starting capmt server for service "AAA" on tuner 0
Jan 02 01:03:58 subscription: "192.168.0.2 [ XBMC Media Center ]" subscribing on "VNEWS", weight: 500, adapter: "s460", network: "-", mux: "T-: 11,617,000 kHz Vertical (a)", provider: "", service: "AAA", quality: 100
Jan 02 01:04:34 htsp: 192.168.0.2 [ XBMC Media Center ]: Disconnected
Jan 02 01:04:34 subscription: "192.168.0.2 [ XBMC Media Center ]" unsubscribing from "VNEWS"
Jan 02 01:04:34 capmt: Removing CAPMT Server from service
and here is the log in tvhead when connecting from vlc
Code:
an 02 01:04:48 capmt: Starting capmt server for service "AAA" on tuner 0
Jan 02 01:04:48 subscription: "RTSP" subscribing on "VNEWS", weight: 500, adapter: "s460", network: "-", mux: "--: 11,617,000 kHz Vertical (a)", provider: "", service: "AAA", quality: 100
Jan 02 01:04:48 RTSP: 192.168.0.2: rtsp://192.168.0.254:9981/channelid/5 -- No source available
Jan 02 01:04:48 subscription: "RTSP" unsubscribing from "VNEWS"
Jan 02 01:04:48 capmt: Removing CAPMT Server from service
When mapping services to channels tvheadend does something like:
Code:
Jan 02 01:14:16 serviceprobe: AAA: checking...
Jan 02 01:14:16 capmt: Starting capmt server for service "AAA" on tuner 0
Jan 02 01:14:16 subscription: "serviceprobe" direct subscription to adapter: "s460", network: "X", mux: "XX: 11,771,000 kHz Horizontal (Z)", provider: "AAA", service: "AAA", quality: 100
Jan 02 01:14:26 subscription: "serviceprobe" unsubscribing
Jan 02 01:14:26 capmt: Removing CAPMT Server from service
Jan 02 01:14:26 serviceprobe: AAA: skipped: No data input from adapter detected
Funny thing, in the other day I was trying all possible configurations and at some point tvheadend 2.7 started saying something like "configuring for ca0" or something like that, and at one point cccam started to talk something about keys, but the channels didn't work.
Anyone has a clue or knows how to setup and have a working cccam setup with tvheadend?
Thanks