Multichannel decryption improvements (2 Viewers)

FreakyJ

Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    AW: Multichannel decryption improvements

    ROLA
    I know this video, too but couldn't find the cwl's anywhere^^ The technique is really interesting, the whole CS is interesting, but that isn't a topic for the MP forum ;)
    Info @all: I have two abos & two reciever and doesn't share my cards with anybody, so it is only a hobby to try things like CS and get rid of my fu**ing Terratec CI ;)

    @Topic
    There are any news on getting this into the trunk? I have the patch applied now for quite some time with no major issues :)

    The only messages I'm worrying about:
    2011-06-29 20:24:37.021717 [Twinhan CiMenuHandler(18)]: MMI State MenuClosed
    2011-06-29 20:24:37.103721 [(16)]: subch:0 OnPMTReceived() pmt:62 ran:True dynamic:False
    2011-06-29 20:24:37.103721 [(17)]: WaitForPMT: Found PMT after 0,3480199 seconds.
    2011-06-29 20:24:37.103721 [(17)]: subch:0 SendPmt:CA found after 0 seconds
    2011-06-29 20:24:37.104721 [(17)]: subch:0 SendPmt:2A 2A FFFFFFFF 17
    2011-06-29 20:24:37.104721 [(17)]: Decode pmt
    2011-06-29 20:24:37.104721 [(17)]: descr1 len:6 9 4 17 22 f7 5e
    2011-06-29 20:24:37.104721 [(17)]: descr1 len:6 9 4 18 1 f8 5e
    2011-06-29 20:24:37.104721 [(17)]: descr1 len:6 9 4 18 31 fa 5e
    2011-06-29 20:24:37.105722 [(17)]: descr1 len:6 9 4 18 35 fc 46
    2011-06-29 20:24:37.105722 [(17)]: descr1 len:6 9 4 18 38 fe 46
    2011-06-29 20:24:37.105722 [(17)]: Set descriptor data with length 3
    2011-06-29 20:24:37.105722 [(17)]: PROBLEM : descriptor lengths dont match 7 10
    2011-06-29 20:24:37.106722 [(17)]: Set descriptor data with length 3
    2011-06-29 20:24:37.106722 [(17)]: Set descriptor data with length 6
    2011-06-29 20:24:37.107722 [(17)]: PROBLEM : descriptor lengths dont match 3 9
    2011-06-29 20:24:37.107722 [(17)]: Set descriptor data with length 6
    2011-06-29 20:24:37.107722 [(17)]: PROBLEM : descriptor lengths dont match 3 9
    2011-06-29 20:24:37.107722 [(17)]: subch:0 SendPMT version:23 len:94 42
    2011-06-29 20:24:37.108722 [(17)]: Twinhan: total of 1 channels to decrypt
    2011-06-29 20:24:37.108722 [(17)]: Twinhan: only one channel "13th Street" needs to be decrypted
    2011-06-29 20:24:37.108722 [(17)]: Twinhan: CI state = CamOkay, MMI state = MenuClosed

    Log attached, I know MDAPI is activated but I had the error before MDAPI, too ;)
    Current configuration: Smartcard --> Alphacrypt --> Terratec CI; MDAPI activated, not connected to a CS-Server
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,227
    Home Country
    New Zealand New Zealand
    Hi FreakyJ

    - The messages that you're worrying about are common, and I tend to just ignore them.
    - The use of M***I effectively takes away the need for this patch.
    - No new features are allowed in SVN right now, and this would be classified as a new feature. We'll have to wait until we either make a branch for 1.2.0rc + final, or until after 1.2.0 final is released.

    mm
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    AW: Multichannel decryption improvements

    1. hmm okay :D I will ignore it, I just thought this is maybe the root of the problem that I sometimes can't tune to a channel :(
    2. currently I'm still using my CI, but my new FritzBox will arrive tomorrow or after tomorrow :p
    3. hehe okay^^ But it will get into trunk and that is the most important, not so the when :)

    But I found another error in my logs:

    2011-07-06 21:18:48.837616 [(22)]: Exception :confused:ystem.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    at System.ThrowHelper.ThrowKeyNotFoundException()
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
    at TvLibrary.Implementations.DVB.Twinhan.SendPmt(Dictionary`2 subChannels)
    at TvLibrary.Implementations.DVB.ConditionalAccess.SendPMT(Int32 subChannel, DVBBaseChannel channel, Byte[] PMT, Int32 pmtLength, Int32 audioPid)

    I don't know if this is related to this patch or a Twinham Problem in common ;) Maybe you know a bit more :)
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Re: AW: Multichannel decryption improvements

    Currently the tvengine is not properly threadsafe.

    The issue is well known:
    0003369: tvserver is not threadsafe. - MediaPortal Bugtracker

    /gibman

    1. hmm okay :D I will ignore it, I just thought this is maybe the root of the problem that I sometimes can't tune to a channel :(
    2. currently I'm still using my CI, but my new FritzBox will arrive tomorrow or after tomorrow :p
    3. hehe okay^^ But it will get into trunk and that is the most important, not so the when :)

    But I found another error in my logs:

    2011-07-06 21:18:48.837616 [(22)]: Exception :confused:ystem.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    at System.ThrowHelper.ThrowKeyNotFoundException()
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
    at TvLibrary.Implementations.DVB.Twinhan.SendPmt(Dictionary`2 subChannels)
    at TvLibrary.Implementations.DVB.ConditionalAccess.SendPMT(Int32 subChannel, DVBBaseChannel channel, Byte[] PMT, Int32 pmtLength, Int32 audioPid)

    I don't know if this is related to this patch or a Twinham Problem in common ;) Maybe you know a bit more :)
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    AW: Multichannel decryption improvements

    ahh thanks a lot :) Maybe this will solve a lot of my problems^^
     

    radiator27

    MP Donator
  • Premium Supporter
  • August 9, 2007
    3
    0
    Thank you so much for this patch. :)

    Having a Terratec H7 i've had so many problems with "channel is scrambled" messages, where I had to restart the tv-service and power off/on the tuner - sometimes several times - before I could view scrambled channels again. With both A and B I haven't had any "channel is scrambled" message yet. (keeping my fingers crossed that this is a permanent fix) :)

    I'm on Canal Digital Denmark with their stock CAM's. I'm not sure what model it is, but it says "Strong".

    UPDATE: Ooops. I spoke too soon. Now I have "channel is scrambled" messages again :-(
     

    ROLA

    Portal Pro
    February 15, 2010
    51
    3
    Home Country
    Sweden Sweden
    Re: AW: Multichannel decryption improvements

    @Rola
    I know this video, too but couldn't find the cwl's anywhere^^ The technique is really interesting, the whole CS is interesting, but that isn't a topic for the MP forum ;)
    Info @all: I have two abos & two reciever and doesn't share my cards with anybody, so it is only a hobby to try things like CS and get rid of my fu**ing Terratec CI ;)
    My point is not to implement CWL-reader or CS-support.
    However, if the TV-service is changed to be able to record encrypted Transport Stream (TS) we would not need to use MDAPI to watch and record several channels at one time..

    1. Start record.
    2. Is stream encrypted?
    3. Available CAM?
    4. If yes, record decrypted (as today).
    5. If not, record encrypted stream, mark recording as crypted.

    1. Play recording.
    2. Is recording encrypted?
    3. If not, start playback.
    4. Else check for available CAM.
    5. If not available, then "No available CAM present".
    6. Else decrypt stream (as a normal live-tv feed).

    In the list of record TV-shows there should be a indification on the show that indicates that the show is encrypted.
    There should be possible to decrypt an encrypted recording without watching (batch processing by night?)
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,227
    Home Country
    New Zealand New Zealand
    Re: AW: Multichannel decryption improvements

    1. Play recording.
    2. Is recording encrypted?
    3. If not, start playback.
    4. Else check for available CAM.
    5. If not available, then "No available CAM present".
    6. Else decrypt stream (as a normal live-tv feed).
    This is a problem. You don't just have full access to the decrypting ability of a CAM to use it whatever way you like. Rather, in most cases the tuner driver does all the "low-level" CAM interfacing and control, and TV Server just specifies which services we would like to be decrypted. It is assumed that the services are available in the stream that is passing through the tuner driver internal pipeline. In other words, decryption only works for live streams. There are a very limited number of CI solutions that use an additional filter in the BDA graph - WinTV CI, DD - I have no idea whether it would be possible to get them to decrypt a non-live stream, but I *highly* doubt it. In my opinion, providing such a feature would require a specialised device, or direct support for this function from the tuner drivers.

    mm
     

    ROLA

    Portal Pro
    February 15, 2010
    51
    3
    Home Country
    Sweden Sweden
    Ok, to bad..

    I'll better stick to MDAPI then.. :)
     

    Aboshan

    Portal Member
    August 11, 2009
    7
    2
    Home Country
    Belgium Belgium
    Reviving this month old thread just to express my gigantic THANKS to mm1352000 and everybody who contributed to these patches!!!!

    After months of fiddling about and changing hardware or tuner software, I can finally say I have bug-free multi-channel decryption working on my HTPC.

    I haven't tested much, yet, but what I tried worked flawlessly.

    I have a TV-Vlaanderen subscription.

    OS: Win7 SP1
    MP: 1.2.0 FINAL (Had to revert back from 1.2.1, as TVservice would not start with any of the provided patches)
    CAM: AstonCrypt with latest firmware (2.2x)
    DVB-S2 card: Terratec Cinergy S2 + CI with latest drivers (1.1.2.501)

    I am not able to access CI menu (it's just blank).

    Started recording channel 1, switched to channel 2, then to 3, back again, stopped recording.
    I checked my recording and apart from a small glitch (image hung half a second, maybe when I changed channels), it played very well.

    So again, thank you very much for all the efforst you put into this, BIG KUDOS
     

    Users who are viewing this thread

    Top Bottom