Project

General

Profile

[Partly Solved] Oscam SAT-IP Descrambling only works if start the channel via VLC first

Added by g gebruikerh over 5 years ago

Hi All,

After a few day testing trying etc, I got the SAT-IP connection to my Panasonic client working:).
But now I have an issue with my descrambling. I have Oscam connection with dvbapi with works fine with my kodi clients.

But if I select an channel that needs descrambling on satip client. I'm getting the message on my client. Channel is Scrambled.

The follow message is given in OSCAM:
2019/06/13 22:11:01 3191AF85 c (dvbapi) Demuxer 0 found 6 ECMpids and 1 STREAMpids in caPMT
2019/06/13 22:11:01 3191AF85 c (dvbapi) Demuxer 0 found channel in cache and matching prio -> start descrambling ecmpid 4
2019/06/13 22:11:01 3191AF85 c (dvbapi) Demuxer 0 trying to descramble PID 4 CAID 0604 PROVID 000000 ECMPID 0803 ANY CHID PMTPID 07D0 VPID 07D1
2019/06/13 22:11:01 3191AF85 c (dvbapi) Demuxer 0 continue decoding of SRVID 4C05
2019/06/13 22:11:01 3191AF85 c (dvbapi) Demuxer 0 found 6 ECMpids and 1 STREAMpids in caPMT
2019/06/13 22:11:01 3191AF85 c (dvbapi) Demuxer 0 found 6 ECMpids and 6 STREAMpids in PMT
2019/06/13 22:11:01 3191AF85 c (dvbapi) Demuxer 0 stop descrambling program number 4C05 (1868@000000:4C05 unknown)

But if I start the same Channel on my PC via VLC (mux channel) the descrambling works on my sat ip client. And even if I switch after 20 sec my channel on my PC (VLC) is stays on working until I switch on a channel on my Sat IP Client.

So somehow my Sat ip Client is not generating the correct trigger the first time to OSCAM to start decode.. I have google allot but can not find the solution. It should be something simple.. But I need to some help in this.

OScam

[dvbapi]
enabled = 1
au = 1
pmt_mode = 4
request_mode = 1
user = tvheadend
boxtype = pc-nodmx


Replies (69)

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by g gebruikerh over 5 years ago

Noboy has the same problem or maybe a solution?

I have test it with a second TVheadend server an also if use SATIP tuner there it's not possible to decramble any channels so it looks to me that somehow TVheadend is not giving the correct info to Oscam or somehow they are not connected..

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by saen acro over 5 years ago

With TVH version with Oscam version.
Any config examples.

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by g gebruikerh over 5 years ago

Hi Sean,

TVH version, HTS Tvheadend 4.2.7-44 ~ LibreELEC Tvh-addon v9.0.118
OSCAM version, oscam-1.20_svn-r11518

Oscam config:

[dvbapi]
enabled                       = 1
au                            = 1
pmt_mode                      = 4
request_mode                  = 1
listen_port                   = 9001
ecminfo_type                  = 4
user                          = tvheadend
boxtype                       = pc

[monitor]
port                          = 988
aulow                         = 120
monlevel                      = 1
hideclient_to                 = 15

[webif]
httpport                      = 8888
httphideidleclients           = 0
httpallowed                   = 127.0.0.1,192.168.xx.xx-192.168.xxx.xxx
aulow                         = 120
hideclient_to                 = 15

Tvheaden config

Modus: OSCam net protocol (rev >= 10389)
Camd.socket bestandsnaam / IP adres (TCP modus): local adres
Listen / Connect poort:9001

Connect = yes and decrambeling works with VLC and kodi client.

If you need more info let me know.

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by g gebruikerh over 5 years ago

Ok, Wich version are you suggesting as for Libreelec this only stable one I know. I can go the nighly build but they are not that stable. But maybe I have over looked something.

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by saen acro over 5 years ago

Latest is v4.2.8

Unstable is very stable and have lot more features.

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by g gebruikerh over 5 years ago

Ok clear. I will try it with the milhouse version as it seems to be the most actieve on at the moment. If works I will let you know the outcome.

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by g gebruikerh over 5 years ago

Upgrade TvH 4.2.8. still the same problem.

Channel on the TV (sat>ip client) will not de-scramble unless I start the same channel via a kodi client.

Getting this message on my TvH:
2019-06-21 19:55:05.934 subscription: 0087: "SAT>IP Slave/Ziggo/458MHz/RTL 5 HD" subscribing to service "Ziggo/458MHz/RTL 5 HD", weight: 100, adapter: "HDHomeRun DVB-C Tuner #0 (192.168.x.xx)", network: "Ziggo", mux: "458MHz", provider: "Ziggo", client="SAT>IP Slave/Ziggo/458MHz/RTL 5 HD"
2019-06-21 19:55:06.835 subscription: 0087: "SAT>IP Slave/Ziggo/458MHz/RTL 5 HD" unsubscribing, client="SAT>IP Slave/Ziggo/458MHz/RTL 5 HD"

It looks like it won't keep de steam-up.

Any help would be nice.

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by saen acro over 5 years ago

Add some more info logs,
is other sat>ip clients do have same problems?

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by g gebruikerh over 5 years ago

HI Saen,

Alle sat>ip clients have the same problem. So it looks to be at server side.

The oscam side is giving me this info:
2019/06/21 21:27:49 70B37BB8 c (dvbapi) Demuxer 0 ecmpid 0 CAID: 1868 ECM_PID: 093A PROVID: 000000
2019/06/21 21:27:49 70B37BB8 c (dvbapi) Demuxer 0 ecmpid 1 CAID: 1850 ECM_PID: 0939 PROVID: 000000
2019/06/21 21:27:49 70B37BB8 c (dvbapi) Demuxer 0 ecmpid 2 CAID: 1801 ECM_PID: 0938 PROVID: 000000
2019/06/21 21:27:49 70B37BB8 c (dvbapi) Demuxer 0 ecmpid 3 CAID: 0606 ECM_PID: 0930 PROVID: 000000
2019/06/21 21:27:49 70B37BB8 c (dvbapi) Demuxer 0 ecmpid 4 CAID: 0604 ECM_PID: 092F PROVID: 000000
2019/06/21 21:27:49 70B37BB8 c (dvbapi) Demuxer 0 ecmpid 5 CAID: 0602 ECM_PID: 092E PROVID: 000000
2019/06/21 21:27:49 70B37BB8 c (dvbapi) Demuxer 0 found 6 ECMpids and 1 STREAMpids in caPMT
2019/06/21 21:27:49 70B37BB8 c (dvbapi) Demuxer 0 found channel in cache and matching prio -> start descrambling ecmpid 2
2019/06/21 21:27:49 70B37BB8 c (dvbapi) Demuxer 0 trying to descramble PID 2 CAID 1801 PROVID 000000 ECMPID 0938 ANY CHID PMTPID 08FC VPID 08FD
2019/06/21 21:27:50 70B37BB8 c (dvbapi) Demuxer 0 found 6 ECMpids and 8 STREAMpids in PMT
2019/06/21 21:27:50 70B37BB8 c (dvbapi) Demuxer 0 stop descrambling program number 4C06 (1868@000000:4C06 unknown)

I know dat CAID 1868 and 1850 are not correct. I'm trying to find out if delete them somehow. Other CAID are working. Wat kind of more log's do you need? maybe with some kind of description so I google how can get the log's.

I'm a kind of noob on this. But for me it looks like somehow TVheadend is not giving the correct starting signal. Because when start the channel on kodi client and afterwards tune with the SAT>IP client to the same channel it starts worken and stay's working until I switch to an other channel on the SAT>IP client.

And thanks already for your reply and help.

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by saen acro over 5 years ago

With satellite transponder program you try to open what card you have?
What are settings in your oscam dvbapi

oscam.conf

[dvbapi]
enabled                       = 1
au                            = 1
pmt_mode                      = 4
request_mode                  = 1
listen_port                   = 9000
delayer                       = 60
user                          = dvbapi
read_sdt                      = 2
write_sdt_prov                = 1
extended_cw_api               = 2
extended_cw_pids              = 64
boxtype                       = pc

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC fir st - Added by g gebruikerh over 5 years ago

It's DVB-C (hd-homerun) and it an irdeto card.

[dvbapi]
enabled                       = 1
au                            = 1
pmt_mode                      = 4
request_mode                  = 1
listen_port                   = 9001
ecminfo_type                  = 1
user                          = tvheadend
boxtype                       = pc

I see you use a delayer. I tried 230ms and 30 ms but both didn't do the trick

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by g gebruikerh over 5 years ago

Sorry did not work :-(.

Also tried with this info add to the dvbapi:
delayer = 60

extended_cw_api = 2
extended_cw_pids = 64

But also no succes. It looks to me like. TvH makes connection, but the client somehow disconnect to fast before oscam can start descrambling if see this oscam log:

2019/06/22 10:30:46 0140ED7E c   (dvbapi) Demuxer 0 ecmpid 0 CAID: 1868 ECM_PID: 129A PROVID: 000000 
2019/06/22 10:30:46 0140ED7E c   (dvbapi) Demuxer 0 ecmpid 1 CAID: 1850 ECM_PID: 1299 PROVID: 000000 
2019/06/22 10:30:46 0140ED7E c   (dvbapi) Demuxer 0 ecmpid 2 CAID: 1801 ECM_PID: 1298 PROVID: 000000 
2019/06/22 10:30:46 0140ED7E c   (dvbapi) Demuxer 0 ecmpid 3 CAID: 0606 ECM_PID: 1290 PROVID: 000000 
2019/06/22 10:30:46 0140ED7E c   (dvbapi) Demuxer 0 ecmpid 4 CAID: 0604 ECM_PID: 128F PROVID: 000000 
2019/06/22 10:30:46 0140ED7E c   (dvbapi) Demuxer 0 ecmpid 5 CAID: 0602 ECM_PID: 128E PROVID: 000000 
2019/06/22 10:30:46 0140ED7E c   (dvbapi) Demuxer 0 found 6 ECMpids and 1 STREAMpids in caPMT
2019/06/22 10:30:46 0140ED7E c   (dvbapi) Demuxer 0 found channel in cache and matching prio -> start descrambling ecmpid 2 
2019/06/22 10:30:46 0140ED7E c   (dvbapi) Demuxer 0 trying to descramble PID 2 CAID 1801 PROVID 000000 ECMPID 1298 ANY CHID PMTPID 125C VPID 125D
2019/06/22 10:30:46 0140ED7E c   (dvbapi) Demuxer 0 found 6 ECMpids and 9 STREAMpids in PMT
2019/06/22 10:30:46 0140ED7E c   (dvbapi) Demuxer 0 stop descrambling program number 4ABA (SBS6 HD)
2019/06/22 10:30:47 0140ED7E c      (ecm) tvheadend (1801@007911/0000/4ABA/6A:4EEB746F5F43ED72C1F9651489E94CEA): found (316 ms) by remote_2 - SBS6 HD

But I can't do anything in my client. Also tried it via another tvheadend server to use as client.

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by saen acro over 5 years ago

Why you try to delay keys?

lets make some experiment with VLC try to play

rtsp://sat.ip/?src=1&freq=11739&pol=v&ro=0.35&msys=dvbs2&mtype=8psk&plts=on&sr=29900&fec=23&pids=0,17,18,2490,526,42,106

replace sat.ip with tvh ip address and rtsp port
ex.
192.168.1.2:554
test is it work

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by g gebruikerh over 5 years ago

Thanks already for the help Sean much appreciated.

Did not work.

TvH give's the following informatie:

2019-06-22 13:02:47.319 http: 192.168.1.60: RTSP/1.0 DESCRIBE rtsp://192.168.1.38:554/?src=1&freq=11739&pol=v&ro=0.35&msys=dvbs2&mtype=8psk&plts=on&sr=29900&fec=23&pids=0,17,18,2490,526,42,106 -- 400
2019-06-22 13:02:49.407 http: 192.168.1.60: RTSP/1.0 SETUP rtsp://192.168.1.38:554/?src=1&freq=11739&pol=v&ro=0.35&msys=dvbs2&mtype=8psk&plts=on&sr=29900&fec=23&pids=0,17,18,2490,526,42,106 -- 400

VLC:
give's the following error message:

VLC kon de MRL 'rtsp://192.168.1.38:554/?src=1&freq=11739&pol=v&ro=0.35&msys=dvbs2&mtype=8psk&plts=on&sr=29900&fec=23&pids=0,17,18,2490,526,42,106' could not open. See log for more informatie.

So it looks that something is blocking it correct?
Delay was just something I wanted to try but already changed it back.
Logbook of VLC I need to find where it located.

I hope it give more info to you where maybe the problem is.

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by saen acro over 5 years ago

My error, you use DVB-C but this is for DVB-S Astra 23.5E

if you can make initial scan and scan under linux then convert to sat>ip playlist via

https://github.com/localhosthack0r/chan2satip/blob/master/chan2satip.sh

then error can be found easy

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by g gebruikerh over 5 years ago

Do maybe have the correct commandline input for me or where I can read the instructions? I'm trying to translate your request...but I'm not deep into linux and commandline sorry.

What I did is the following instruction:

http://192.168.1.38:9981/playlist/satip/channels 
and got compleet dump om the sat-ip channels correct (see file attached)? Now I need convert the somehow if I read you correct.

Maybe I did not mentioned it. But all the FTA channels works out the box. So the problem is only at the descramble channels.

But if you need other info no problem, let me know where I can read more about the instructions how I can get your requested informatie.

channels.m3u (38.1 KB) channels.m3u channel dump

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by saen acro over 5 years ago

No this one do not export to SAT>IP format

you need to stop tvheadend

w_scan -f c -x

this will give result of all frequency with muxes

then save result as initscan.conf

next is to scan

scan -o pids -a 2 initscan.conf

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by g gebruikerh over 5 years ago

need to do some googling as w-scan did not work out of the box...

I did not installed dvb-tools on my RPI2 with LE...

Installed stop TvHheadend and OSCAM and did the check with

TOP

No service there.
enter the command with adding my country NL . But got the following error message:

w_scan -f c -c NL -x

w_scan version 20170107 (compiled for DVB API 5.11)
using settings for NETHERLANDS
DVB cable
DVB-C
scan type CABLE, channellist 7
output format initial tuning data
WARNING: could not guess your codepage. Falling back to 'UTF-8'
output charset 'UTF-8', use -C <charset> to override
Info: using DVB adapter auto detection.
main:4007: FATAL: ***** NO USEABLE CABLE CARD FOUND. *****
Please check wether dvb driver is loaded and
verify that no dvb application (i.e. vdr) is running.

So somehow my dvb driver is not loaded...but if start TvH my homerun is there... google allot but there no informatie about needed to load an extra DvB driver for a HD-Homerun in LE... not sure what i'm doing wrong.. sorry but I think I need some more support...

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by saen acro over 5 years ago

You need to stop tvheadend

service tvheadend stop

or kill it by

killall tvheadend

and then to do scan

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by g gebruikerh over 5 years ago

I understand and did stop TVH did the check of service with the command TOP in LE (Libreelec). See the screenshot attached.. no TVH services.
But still getting the same error message...that why I'm confused that no driver is found.

Maybe DVB drivers for HD-Homerun are not needed to loaded in to LE... It a stand alone device with put the dvb-c signal over IP.

services.png (88.6 KB) services.png service

RE: Oscam SAT-IP Descrambling only works if start the channel via VLC first - Added by saen acro over 5 years ago

HTOP is better top ;)

see with process use your tuner

lsof /dev/dvb/adapter0/frontend0

but not sure about hdhomerun

(1-25/69)