Compiling anysee branch from GitHub (2 Viewers)

jehe

Portal Pro
February 15, 2011
694
216
59
Home Country
Belgium Belgium
hello,
Last week I compiled the master branch of mediaportal , what has succeeded.
Now I want to compile the Anysee branch which gives me many errors.
My question now, is it possible to use the Anysee branch.
 

jehe

Portal Pro
February 15, 2011
694
216
59
Home Country
Belgium Belgium
Hello,

You can find the experimental branches of mediaportal at the following website:
https://github.com/MediaPortal/MediaPortal-1/tree/Anysee.
More information about compiling mediaportal, can you find in the wiki at the following website:
http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/4_Development/Compiling.

At my first attempt, I have not succeeded in compiling the source. (due a bad download, I believe ).
On my second attempt I have compiled the Anysee source , but after installing mediaportal I could not open the configuration screen of the tvserver through an error.
After that I compared the "Anysee" branch and the "pre_release_1.2.3_testing" branch, then I have copied the Anysee parts in the pre_release_1.2.3_testing source code and compiled it.
After installing everything went fine (scanning satellites, etc), until I wanted to watch encrypted TV.
My knowledge of programming is very limited, but I think the CIAPI.dll is the cause.

Jean
Ps:confused:orry for the bad english
 

jehe

Portal Pro
February 15, 2011
694
216
59
Home Country
Belgium Belgium
Peter,
I have used the latest version of the Anysee repository, but after installation I could not find the ciapi.dll in the program files, so something has gone wrong when compiling.
I would like to add the log files, but I have also tested M. ... I with this version, which is not allowed, and then there is no support available.
When I have time I will reinstall media portal, and then post the log files.

Jean
 

Peter Andersson

Portal Member
April 13, 2012
7
0
39
Home Country
Sweden Sweden
Hi Jean i have gotten Media portal to execute the anysee code now, but i can't get it to descrable my channels im using a Anysee E7 T2C with a cam inserted into it.

I have no idea what to do next to get it to work.

But in hopes that this will help you Jehe here is what i have done, i downloaded the 1.2.3 repo then i used a compare tool to find all diffs between and the anysee repro and i found the following files that diffed (and are of importance)
TvEngine3\TVLibrary\TVLibrary\Implementations\DVB\ConditionalAccess\Anysee.cs replace, fix compiler errors
TvEngine3\TVLibrary\TVLibrary\Implementations\DVB\ConditionalAccess\ConditionalAccess.cs manual merge
TvEngine3\TVLibrary\TvLibrary.Interfaces\Implementations\Channels\DVBSChannel.cs replace
TvEngine3\TVLibrary\TVServer.Base\CIAPI.dll Copy

After this i installed media portal 1.2.3 then i stopped the service and copied all dll files from the D:\Build\MediaPortal-MediaPortal-1-1367f5c\TvEngine3\TVLibrary\TVLibrary\bin\Release + the CIAPI.dll to the root of the media portal program folder and started the service again.

here is my log file incase any one has a idea what could be wrong
Code:
2012-04-17 21:35:03.728828 [(19)]: Anysee: supported tuner detected
2012-04-17 21:35:03.729828 [(19)]: Anysee: read device information
2012-04-17 21:35:03.730828 [(19)]:  platform = Pcb508T2C
2012-04-17 21:35:03.731828 [(19)]: Anysee: is CI slot present
2012-04-17 21:35:03.732828 [(19)]: Anysee: result = True
2012-04-17 21:35:03.733828 [(19)]: Anysee: open conditional access interface
2012-04-17 21:35:03.736829 [(19)]: Anysee: loading API, API index = 1
2012-04-17 21:35:03.791832 [(19)]: Anysee: opening API, API index = 1
2012-04-17 21:35:03.793832 [(19)]: Anysee: starting API access thread
2012-04-17 21:35:03.808833 [Anysee API 1 Access(21)]: Anysee: creating new CI API instance
2012-04-17 21:35:03.812833 [Anysee API 1 Access(21)]: Anysee: created instance successfully
2012-04-17 21:35:03.813833 [Anysee API 1 Access(21)]: Anysee: determining instance index
2012-04-17 21:35:03.815833 [Anysee API 1 Access(21)]: Anysee: number of devices = 1
2012-04-17 21:35:03.816833 [Anysee API 1 Access(21)]: Anysee: device 1
2012-04-17 21:35:03.817833 [Anysee API 1 Access(21)]:  device path  = @device:pnp:\\?\usb#vid_1c73&pid_861f#6&2c24ce2e&0&2#{fd0a5af4-b41d-11d2-9c95-00c04f7971e0}\{77fde2fa-ce7e-4c45-b8ec-e44ed60a9f81}
2012-04-17 21:35:03.818833 [Anysee API 1 Access(21)]:  index        = 1
2012-04-17 21:35:03.820833 [Anysee API 1 Access(21)]:  Anysee index = 1
2012-04-17 21:35:03.821833 [Anysee API 1 Access(21)]: Anysee: found correct instance
2012-04-17 21:35:03.822834 [Anysee API 1 Access(21)]: Anysee: opening CI API
2012-04-17 21:35:03.826834 [Anysee API 1 Access(21)]: Anysee: result = success
2012-04-17 21:35:04.306861 [(19)]: Anysee: API access thread running
2012-04-17 21:35:04.308861 [(19)]: Anysee: setting callbacks
2012-04-17 21:35:04.311861 [(19)]: Anysee: execute API command
2012-04-17 21:35:04.314862 [(19)]: Anysee: result = success
2012-04-17 21:35:04.316862 [(19)]: Anysee: result = success
2012-04-17 21:38:21.665149 [(12)]: Anysee: send PMT to CAM, list action = Only, command = Descrambling
2012-04-17 21:38:21.666149 [(12)]: Anysee: CAM not available
 

Peter Andersson

Portal Member
April 13, 2012
7
0
39
Home Country
Sweden Sweden
After checking the code a bit i was a bit confused the message "Anysee: CI state change callback, slot = {0}" was never logged, so i checked the code and it seems this should be called when the state changed so i unplugged my cam module and plugged it in again this resulted in the following logs:
Code:
2012-04-17 22:52:23.553122 [(11)]: Anysee: API access thread running
2012-04-17 22:52:23.553122 [(11)]: Anysee: setting callbacks
2012-04-17 22:52:23.553122 [(11)]: Anysee: execute API command
2012-04-17 22:52:23.553122 [(11)]: Anysee: result = success
2012-04-17 22:52:23.553122 [(11)]: Anysee: result = success
2012-04-17 22:52:35.299943 [(11)]: Anysee: send PMT to CAM, list action = Only, command = Descrambling
2012-04-17 22:52:35.299943 [(11)]: Anysee: CAM not available
2012-04-17 22:53:11.944407 [(18)]: Anysee: CI state change callback, slot = 1
2012-04-17 22:53:11.944407 [(18)]:  old state = Empty
2012-04-17 22:53:11.944407 [(18)]:  new state = CamInserted
2012-04-17 22:53:11.944407 [(18)]:  message  = Initializing...
2012-04-17 22:53:24.518029 [(19)]: Anysee: send PMT to CAM, list action = Only, command = Descrambling
2012-04-17 22:53:24.533629 [(19)]: Anysee: execute API command
2012-04-17 22:53:24.549229 [(19)]: Anysee: result = failure, hr = 0x80004005 (E_FAIL)
2012-04-17 22:53:24.549229 [(19)]: Anysee: result = failure
2012-04-17 22:53:27.591235 [(19)]: Anysee: send PMT to CAM, list action = Only, command = Descrambling
2012-04-17 22:53:27.591235 [(19)]: Anysee: execute API command
2012-04-17 22:53:27.591235 [(19)]: Anysee: result = failure, hr = 0x80004005 (E_FAIL)
2012-04-17 22:53:27.606835 [(19)]: Anysee: result = failure
2012-04-17 22:53:30.648840 [(19)]: Anysee: send PMT to CAM, list action = Only, command = Descrambling
2012-04-17 22:53:30.648840 [(19)]: Anysee: execute API command
2012-04-17 22:53:30.648840 [(19)]: Anysee: result = failure, hr = 0x80004005 (E_FAIL)
2012-04-17 22:53:30.664440 [(19)]: Anysee: result = failure
2012-04-17 22:53:31.631642 [(18)]: Anysee: CI state change callback, slot = 1
2012-04-17 22:53:31.631642 [(18)]:  old state = CamInserted
2012-04-17 22:53:31.631642 [(18)]:  new state = Empty
2012-04-17 22:53:31.631642 [(18)]:  message  = Empty
2012-04-17 22:53:33.690845 [(19)]: Anysee: send PMT to CAM, list action = Only, command = Descrambling
2012-04-17 22:53:33.706445 [(19)]: Anysee: CAM not available
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Hi folks

    Thank you for your desire to test my code, but please be aware that it is not production-ready. I did not really want to release it publicly and provide support yet because I don't have the time to provide proper support. I can tell you that it works for me with an Anysee E7 S2. You may find that the issue is a CAM compatibility issue, or just a timing issue. Please check if the CI menu works, and also post full logs if you are going to bother posting logs. About the code: my branch was mostly based on the 1.2.x release branch at the release of 1.2.2, so I can't say if it would work well with 1.2.3.

    mm
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Also, please enable the logging line "DVB_MMI.DumpBinary(_mmiMessageBuffer, 0, PmtDataSize);" in Anysee.SendPmt().
     

    Peter Andersson

    Portal Member
    April 13, 2012
    7
    0
    39
    Home Country
    Sweden Sweden
    There seems to be no variable by the name _mmiMessageBuffer so that line just gives a compile error... im guessing you want to use the variable buffer by inspecting the other DumpBinary calls in that class?
     
    Last edited:

    Users who are viewing this thread

    Similar threads

    If you’re planning to submit a pull request, let’s go through the list of issues and their solutions. I or someone from the team will create a Jira ticket, and for each ticket, you’ll make the changes and submit a pull request. This will be transparent and straightforward.
    If you’re planning to submit a pull request, let’s go through the list of issues and their solutions. I or someone from the team...
    I'm very glad to see that mediaportal 1 is on github, where ordinary devs with github accounts can make contributions. Please can...
    Replies
    7
    Views
    1K
    I don't think so, because MP has no way of knowing at which timestamp the external player stopped playback. Best way to achieve this would be to use an auto-resume feature in your external player itself. (MPC-HC can do that, I don't know about VLC)
    I don't think so, because MP has no way of knowing at which timestamp the external player stopped playback. Best way to achieve...
    Hello Folks, Is it possible to enable MP to resume in an External Player, where it left off ? I guess the question also is, can...
    Replies
    2
    Views
    1K
    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For the first example, I highlighted the example text and eventually found the location in the menus where I could select the CODE macro to have the example text formatted as a code example. So far, so good...
    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For...
    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For...
    Replies
    0
    Views
    523
    Are different people taking turns watching the same thing on the same HTPC? For me, separating users in MP2 is a drawback, as is the interface. Simply put, this can't be done in MP1, or rather, it can't be done quickly, because everything would have to be rewritten. But if each user logs in with their own Windows account, MP1 can...
    Are different people taking turns watching the same thing on the same HTPC? For me, separating users in MP2 is a drawback, as is...
    Hello, Is there a way to integrate a multi-user interface in MP1 where you can create different end users, similar to MP2? A...
    Replies
    2
    Views
    1K
    maybe setting loglevel to debug might pinpoint the difference between normal and stuck? Preferable with as much disabled as possible also try to see if anything is happening during stuck for the mediaportal process(resource monitor, disk activity, cpu usage, anything) maybe other programs competing for resouces?
    maybe setting loglevel to debug might pinpoint the difference between normal and stuck? Preferable with as much disabled as...
    Since over a year my MP sometimes stucks while showing the welcome screen. It started once a week now it happens every second time...
    Replies
    4
    Views
    1K
    Top Bottom