OpenELEC / OpenELEC.tv

OpenELEC - The living room PC for everyone
http://openelec.tv
1.61k stars 884 forks source link

tvheadend update for webui oscam mode activation #1703

Closed ovidiu31 closed 11 years ago

ovidiu31 commented 11 years ago

There is a small update in Tvheadend but it is also an pretty important feature for end users because it allows TVH users to connect oscam with tvheadend by using Capmt Connections . If running on a so called full-featured DVB-Card this can be left empty. Running on Budget-Cards one has to use a dummy ca-device. This is emulated via capmt_ca.so. This module has to be pre-loaded prior to the cam client. LD_PRELOAD=/path/to/capmt_ca.so cam_client & This module will communicate the received control-words back to Tvheadend via Port 9000

helps alot in the descrambling viaccess and cryptoworks descrambling system.

https://hts-redmine-eu.s3.amazonaws.com/130104104942_configcapmt.png?AWSAccessKeyId=AKIAJO2NFNQKG32VFO6A&Expires=1357324699&Signature=PPW5%2F0VeYbTy3L2gZa%2BpvE6S7i0%3D

the RC1 tvh webinterface doesn't contain this small adition.

"talked to @fritsch in irc"

Best Regards

fritsch commented 11 years ago

It seems that this patch is enough to make it work: https://github.com/tvheadend/tvheadend/commit/d4be257b80f25e331d4097107765e7d6daf150d0

vpeter4 commented 11 years ago

Seems this is not enough. You still need to preload capmt_ca.so library before running tvheadend. At least this is what I just did for @ovidiu31(and using tvheadend-9247faa).

fritsch commented 11 years ago

@vpeter4: So basically this patch + some change in the script that starts it?

vpeter4 commented 11 years ago

Yes.

  export LD_PRELOAD=$ADDON_DIR/bin/capmt_ca.so
  $ADDON_BIN $TVHEADEND_ARG &>$LOG_FILE
ovidiu31 commented 11 years ago

yes it is working fine now thx to @vpeter4 , it also very important to set oscam.dvbapi with the right caid's and ident's format

examples

P: 1880:000000 P: 093B:000000 P: 0919:000000 P: 0500:025900 025910 P: 0B02:000000 P: 0500:022610 025100 041700 020810 032830 032920 032940 042800 042500 043330 P: 0604:000000 P: 0628:000000 P: 0100:00003D 00A821 000068 00006D 003317 003311 P: 1802:002011 P: 1803:000000 P: 0D06:000000 P: 091F:000000 P: 0B01:000000 P: 092F:000000 P: 0B00:000000 P: 1811:023311 P: 1702:000000 P: 1722:000000 P: 1833:000000 P: 1834:000000 P: 09C4:000000 P: 09C7:000000 P: 1815:000000 P: 0D02:000000 P: 0960:000000 P: 0961:000000 P: 0963:000000 P: 0BAA:000000 P: 4ABF:000000 P: 0500:025100 P: 0628:000000

I: 0006:000000 I: 000c:000000 I: 0100:0000A2 I: 0100:0000A3 I: 0100:00000C I: 0100:000003 I: 0100:000004 I: 0100:000010 I: 0100:000011 I: 0100:000019 I: 0100:000021 I: 0100:000025 I: 0100:00001C I: 0100:00001D I: 0100:00002A I: 0100:000012 I: 0100:000064 I: 0100:000066 I: 0100:000067 I: 0100:000070 I: 0100:000071 I: 0100:000072 I: 0100:000073 I: 0100:000019 I: 0100:000026

fritsch commented 11 years ago

@vpeter4: Fine, can you send a PR for this, so that @sraue can press the green button? Thx in advance.

@ovidiu31: Gratulations on your working setup :-)

ovidiu31 commented 11 years ago

Thx

stefansaraev commented 11 years ago

added in 2d5659f