Forums » Descrambling »
Help with CCCam
Added by Ivan Ballestar over 8 years ago
Hi everyone.
I have a problem with my config for descrambling with OSCam (CCCam) + TVHeadEnd.
The card for capture is an Hauppauge WinTV-HVR 4000 in a Debian 8 machine.
My setup is with this steps:
1: I tried to install and configure OSCam as in the 2nd post of this thread:
https://tvheadend.org/boards/13/topics/6211
2. OSCam reads the remote card via CCCam, but it's imposible to link TVHeadend to a OSCam server. In a second attempt I tried to modify the config with the setup files explained in the second post of this thread:
https://tvheadend.org/boards/13/topics/17673
I need help for the config, it's imposible to link TVH with OSCam, but OSCam reads the cards.
This is the config of my files in OSCam:
oscam.conf
[global]
logfile = /var/log/oscam/oscam.log
nice = -1
usrfile = /var/log/oscam/oscamuser.log
cwlogdir = /var/log/oscam/cw
[anticasc]
enabled = 1
numusers = 1
samples = 5
penalty = 1
aclogfile = /var/log/oscam/aclog.log
denysamples = 4
[cache]
[newcamd]
[cccam]
port = 9000
nodeid = 756E3ACD10561484
version = 2.1.3
reshare = 2
[dvbapi]
enabled = 1
au = 1
request_mode = 1
pmt_mode = 4
listen_port = 9000
boxtype = pc
user = tvheadend
[monitor]
port = 988
aulow = 120
monlevel = 1
[webif]
httpport = 8888
httpuser = USER
httppwd = PASS
httpallowed = 127.0.0.1,192.168.1.0-192.168.2.255,255.255.255.255
aulow = 120
(NOTE: The PC is in the same lan 192.168.2.x)
oscam.user
[account]
user = tvheadend
pwd = tvheadend
description = tvheadend
hostname = 127.0.0.1
monlevel = 4
group = 1
au = 1
uniq = 0
oscam.server
[reader]
label = cccam
description = cccam
protocol = cccam
device = SERVER,PORT
user = MYUSER
password = MYPASS
inactivitytimeout = 30
group = 1
emmcache = 1,1,2
cccmaxhops = 5
ccckeepalive = 1
cccversion = 2.1.3
P.D.: FTA channels works fine in another PC with VLC
Thanks.
Replies (1)
RE: Help with CCCam - Added by Jonathan Thomson over 8 years ago
If OSCam is connecting to your card OK and the only problem is getting TVHeadend to get the codeword from OSCam then check out my thread and take the relevant parts to configure TVH to talk to OSCam.
http://tvheadend.org/boards/13/topics/20949
In short, there's two parts, setting up OSCam and then setting up TVHeadend;
I use the DVBAPI protocol to link OSCam and TVH - to configure this, copy the below into your oscam.conf file (Files > oscam.conf)
[dvbapi]
enabled = 1
pmt_mode = 0
listen_port = 9001
ecminfo_type = 4
user = tvheadend
read_sdt = 1
boxtype = pc
Next you need to add the tvheadend user referenced above, so copy the below into your oscam.user file (Files > oscam.user)
[account]
user = tvheadend
pwd = tvheadend
monlevel = 4
group = 1
max_connections = 99
Then save and restart OSCam.
Next, move over to TVHeadend and navigate to Configuration > CAs and add a new client with the following parameters;
Enabled: TRUE
Client name: Whatever you like (OSCam will do)
Mode: OSCam net protocol (rev >= 10389)
Camd.socket filename / IP Address (TCP mode): IP Address of the server running OSCam (if it's the same box as the one running TVHeadend, use 127.0.0.1)
Listen / Connect port: 9001
You shouldn't need to restart TVHeadend but it won't hurt, if the icon has changed to a green tick then it's good to go. Otherwise you might need to restart OSCam again and/or check the TVHeadend logs (on my system I did 'tail -f /var/log/syslog' and followed the errors)
This is the minimum required to connect OSCam to TVH and you will probably need to make further changes (in particular to OSCam) to make sure that your card entitlements are updated - I don't use real cards so can't help you with that).
Post back with how you get on.