Forums » Descrambling »
What combination of TVH + OSCam are you using?
Added by Jonathan Thomson over 8 years ago
I've got TVH and OSCam installed on a headless Debian-based box in my garage with two TBS Quad tuners (DVB-S2 and DVB-T2). The intention was to completely replace my current satellite system with TVH and Kodi clients dotted around the house but at the moment it is too unstable to pass the WAF (Wife Acceptance Factor )
The instability comes from the combination of TVH and OSCam that I'm using, not from TVH itself. On terrestrial and FTA satellite, TVH is rock solid, but on encrypted channels, not so much (in fact, its unusable at the moment). Part of my problem is probably being bleeding edge; both TVH and OSCam are built from nightly sources on my box which is a recipe for disaster for a "production" system.
As it stands, I'm using TVH 4.1-2004~g02ac9c9 and OSCam 1.20-unstable_svn Build: r11228. The issue is that the connection between TVH and OSCam is really unreliable. The symptoms are;- Signal breakup every couple of second (OSCam reports a timeout, currently 9000ms, whilst trying to decode the signal)
- OSCam reporting "Not Found" errors whilst trying to decode the signal
- TVH and OSCam apparently getting on really well (none of the above and a perfectly stable signal) until you zap to another channel where all encrypted channels fail to clear
Most of the above can be sorted by restarting OSCam but doing that is not viable as it happens too often. It appears from watching the logs that TVH fails to get the right answer from OSCam every other request (so I get a result...fail...result...fail) which basically makes the video unwatchable.
What I'm looking for is;- Somebody to confirm a working TVH and OSCam combination (version and build numbers would be really useful as I can pull the exact builds out of Git and SVN respectively)
- Somebody who is using this combination of TVH -> OSCam -> CCCam CLines (especially if you are using SkyUK) to confirm your OSCam settings
TVH is configured to use a newcamd client with the following settings;
Mode: 6 (OSCam new pc-nodmx (rev >= 10389))
Camd.socket filename / IP Address (TCP mode): /tmp/camd.socket
Listen / Connect port: 0
OSCam is configured as follows;
[global]
logfile = /var/log/oscam/oscam.log
pidfile = /var/run/oscam.pid
disableuserfile = 0
clienttimeout = 9000
maxlogsize = 10240
waitforcards = 0
usrfile = /var/log/oscam/oscamuser.log
cwlogdir = /var/log/oscam/cw
emmlogdir = /var/log/oscam/emm/
lb_save = 100
resolvegethostbyname = 1
suppresscmd08 = 1
[cache]
delay = 25
[cs378x]
port = 9000
serverip = 127.0.0.1
[newcamd]
port = 10000@0963:000000
serverip = 127.0.0.1
key = 0102030405060708091011121314
keepalive = 1
[dvbapi]
enabled = 1
pmt_mode = 0
ecminfo_type = 4
user = tvheadend
boxtype = pc-nodmx
[monitor]
port = 988
aulow = 120
monlevel = 1
[webif]
httpport = 8888
httppollrefresh = 10
httpallowed = 127.0.0.1,192.168.1.0-192.168.1.255
aulow = 120
My readers (2 CLines) are configured as follows;
[reader]
label = my_server
protocol = cccam_mcs
device = my_server,port
user = user
password = pass
inactivitytimeout = 30
cacheex = 1
cacheex_maxhop = 10
group = 1
emmcache = 1,1,0,0
cccversion = 2.2.1
ccckeepalive = 1
cccreshare = 10
audisabled = 1
My user is configured as follows;
[account]
user = tvheadend
pwd = tvheadend
monlevel = 4
group = 1
max_connections = 99
Replies (16)
RE: What combination of TVH + OSCam are you using? - Added by Martin Walter over 8 years ago
I'm using TVH 4.1.1996 and OSCam r11232. Works nicely, but using dvbapi. No experience with using CCCam. FWIW...
RE: What combination of TVH + OSCam are you using? - Added by danny skjodt over 8 years ago
dvbapi is most likely your problem
First this aint newcamd but dvbapi/capmt.
"TVH is configured to use a newcamd client with the following settings;
Mode: 6 (OSCam new pc-nodmx (rev >= 10389))
Camd.socket filename / IP Address (TCP mode): /tmp/camd.socket
Listen / Connect port: 0"
dvbapi asks keys for all caid's in the source stream, that usualy dont work so good.
You have 2 options.
1, use proper newcamd in tvh.
2, use a stream filter in tvheadend to make 0963 exclusive.
RE: What combination of TVH + OSCam are you using? - Added by Jonathan Thomson over 8 years ago
My apologies I'd mixed up my protocols - I had in fact tried both with little/no success maintaining an error free stream.
Rather randomly I installed the same version of OSCam that I was using on the same box that runs TVHeadend on my Synology NAS and 99% of the glitching disappeared - perhaps the Synology build has something turned on/off that I'd included/excluded but it works almost perfectly. The suggestion of making CAID 0963 exclusive in TVH made any glitching disappear so it's now error-free.
I can't explain why the same build works on my NAS but not on my TVH box but it does and that's good enough for me.
RE: What combination of TVH + OSCam are you using? - Added by dorin ilut over 8 years ago
Hi Jonathan,
Are you by any chance using OSEmu also on your NAS? In any case do you think you might sare the .conf files. I'm having a real bad time setting these up.
With many thanks in advance.
RE: What combination of TVH + OSCam are you using? - Added by hacksat hacksat almost 8 years ago
Hi, I have 4.1-2334 version, and I have the C-line (oscam) how can set tvheandend for read this C-line?
Thanks
RE: What combination of TVH + OSCam are you using? - Added by Jonathan Thomson almost 8 years ago
domenic ciciarelli wrote:
Hi, I have 4.1-2334 version, and I have the C-line (oscam) how can set tvheandend for read this C-line?
Thanks
I have a blog article on this exact thing here
RE: What combination of TVH + OSCam are you using? - Added by hacksat hacksat almost 8 years ago
I thank you for the answer in the first place ... but not sure if I need to install on my ubuntu oscam or I can just put the Cline that I purchased?
RE: What combination of TVH + OSCam are you using? - Added by Jonathan Thomson almost 8 years ago
You can't. See my response in the other forum. If it was that easy to do I would have just said
RE: What combination of TVH + OSCam are you using? - Added by hacksat hacksat almost 8 years ago
hello thanks for the reply, I saw on the forum Answer But Li did not say What you can put in Communication oscam and tvheandend?
RE: What combination of TVH + OSCam are you using? - Added by Der Ritter almost 8 years ago
See this post, it is in German still but you will get the point and version numbers. Has passed WAF!!!
RE: What combination of TVH + OSCam are you using? - Added by Kokotoni Wilf almost 6 years ago
I use oscam to serve tvheadend via newcamd. No issues.
oscam can serve only one caid per port with newcamd.
Example for caid 9999 on port 1111
1111@9999:000000
RE: What combination of TVH + OSCam are you using? - Added by saen acro almost 6 years ago
Kokotoni Wilf wrote:
I use oscam to serve tvheadend via newcamd. No issues.
oscam can serve only one caid per port with newcamd.
Example for caid 9999 on port 1111
1111@9999:000000
Not true¶
you can enable Mgclient and serve unlimited caid-s
mgclient Parameter is optional Enable mgcamd extended newcamd protocol, allowing for a single connection to work with mutliple providers, default:0 Example: mgclient = 1 # (enabled) mgclient = 0 # (disabled) Default: mgclient = 0
RE: What combination of TVH + OSCam are you using? - Added by Kokotoni Wilf almost 6 years ago
Mgclient helps manually defining multiple caids. But still one per port:
Like:
1111@9999:00000;1112@8888:0000
How do you force the same port for more than one caid?
RE: What combination of TVH + OSCam are you using? - Added by saen acro almost 6 years ago
Just enable it and will work.
RE: What combination of TVH + OSCam are you using? - Added by Kokotoni Wilf almost 6 years ago
Nope.
Port=1111@9999:00000;8888:0000
and
Port=1111@9999:00000;1111@8888:0000
It just one for one of the caids.
anyway ... one port per caid it is not such a big issue and tvheadend works rather nice
RE: What combination of TVH + OSCam are you using? - Added by Kokotoni Wilf almost 6 years ago
Another aproach is to configure oscam as cccam server and tvheaded connects to it (i'm using version 4.3)