IgorPlug+MP (1 Viewer)

and-81

Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    Sorry guys, I'm going to sort this out. I've just been snowed under lately.

    I've got too many projects on the go at once.

    I'll try to get onto this this week.
     

    TMarik

    Portal Member
    July 9, 2007
    12
    0
    61
    Home Country
    Germany Germany
    I have installed it but it did not get connection to the IgorUSB. I tried the Igor demo and it sees my remote control commands, but not the MP plugin.
     

    and-81

    Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    Sorry,

    I was never able to get this plugin working. I can't test it myself and have been working on other projects for some time now.

    If another developer would like to pick up the source code and make it work they can find it in the MediaPortal plugin SVN.

    If someone could send me an IgorPlug device I could probably get it going. But I wont have any time to work on it for a few weeks.

    Cheers,
     

    troky

    Portal Member
    July 30, 2007
    18
    1
    Home Country
    Croatia Croatia
    Hi Aaron,

    I've checked you plugin code from SVN and here are issues:

    - you are trying to call DoGetInfrared function from dll (IgorPLug.dll) which is indeed girder plugin. correct dll would be IgorUSB.dll that comes with driver and is placed in Windows\ folder
    - IgorUSB.dll is written in Delphi and for some reason it doesn't work with C#... throws exceptions all the time
    - DoGetInfrared function returns timediagram which needs to be converted to code. It is luck to get two exact time diagrams of one key pressed in a row.


    Since I have source of IgorUSB.dll I made little utility in Visual C# that reads IR codes and it doesn't need any DLL... it talks directly to driver!
    Porting from Delphi (or C/C++) to C# is really pain for me because this is my firstencounter with C# ;)

    So, when I finish that utility I will merge my code with your plugin and that should be fine.

    Regards,
    Troky
     

    and-81

    Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    Excellent,

    Thanks troky.

    If you want any help let me know. I'm still here to help if I can.

    Do you have any documentation for the IgorUSB.dll file?

    I would like to see exactly how it does the timecode information. I've already got C# code written that can get detect the IR protocol and get the codes from MCE remote time code information for RC5, RC6, RCA, Sony, Sharp, JVC and NEC protocols. So maybe I can save you from porting yours?

    Cheers,
     

    troky

    Portal Member
    July 30, 2007
    18
    1
    Home Country
    Croatia Croatia
    Timecode is array of pulses/spaces in 85.3us steps. Documentation says that the last element of timecode array is SPACE but from my experience (when timecode.lenght is odd) that is not true. First element is aways PULSE.
    Problem is that I use IgorUSB with 90s2323 uC that has max. timecode length limted to 36. That should be enough for RC5,6, SONY... but not for NEC protocol (AFAIK)... But NEC code can be extracted because we have LAST 36 timecodes.

    Since time resolution is 85.3us some time margins must be used.
    Currently, I have finished RC5 decoding only and trying to do SONY/NEC(partial).

    I would really like to see IR protocol detection routines because I am having problems with it. My detection algo is pretty primitive: if there are long pulses and long spaces in timecode then it is RC5, if there are only long pulses it is SONY and if only long spaces it is NEC :D

    Another issue is key repeating... but later about that ;)
     

    and-81

    Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    Mine's fairly primitive too :)

    Sounds like you're all over it though.

    I'll be interested to see what you come up with.

    The MCE device uses 50usec timing resolution. I convert the raw timing into useconds and then run my detection algorithms over that. So I think we could probably just use my code to do the ir decoding ...

    If you want to make the changes to get the code that is in the SVN to work with the right Dll then I could tack on my ir decoding source and we'd be on a winner ...

    My ir decoding source is still a work in progress. There are not enough comments and it is a bit of a mess. I'm hoping to clean it up this week and include it the next version of some of my plugins.

    I can send you a copy, but you'd need to give me some time to clean it up.

    Cheers,
     

    troky

    Portal Member
    July 30, 2007
    18
    1
    Home Country
    Croatia Croatia
    Well, I need to clean up my code, too.... and familiarize with C# better. It is real miracle that my app compiles without errors and warnings while using kernel32 calls to driver :D

    When I finish my work I'll send you source and we'll see what next.
     

    Users who are viewing this thread

    Similar threads

    It should work, but the error is in something else, but it is not yet clear what.
    It should work, but the error is in something else, but it is not yet clear what.
    I have MP1 TV Server 1.30 installed on Windows Server 2012R2 (with some bits added for tuner support). MP Server versions have...
    Replies
    5
    Views
    964
    MP has adjustable audio delay. I don't know whether this works for all video formats, but it certainly works for TS files, and may work for MP4 files. There is a slider that allows you to adjust the audio delay while playing a video. Press the INFO button on the remote control to display the OSD, select the "Audio" icon, and then...
    MP has adjustable audio delay. I don't know whether this works for all video formats, but it certainly works for TS files, and may...
    This is not an audio/video out of sync issue but a delay in audio in playback I have been using MP for years and noticed their...
    Replies
    1
    Views
    832
    I've updated dlls in first post. Fixes: Summary / Overview was always empty Collections were not filtered to official ones Studios were not populated Fallback to english tagline didn't work Score / Popularity now empty instead of dummy rating and unknown popularity numbers Also I've tried to compile plugin against MP 1.34 x64 and...
    I've updated dlls in first post. Fixes: Summary / Overview was always empty Collections were not filtered to official ones Studios...
    Hi! TheTVDB.com has movies in their API now. API itself looks ok now so I decided to add TVDB to Moving Pictures. Check it if you...
    Replies
    2
    Views
    811
    When I tested MP 2.5 some months ago using TVE3.5, I found that "scan for channels" failed to find any channels when I selected a DVB-T2 tuner (a TBS 6284) :(, but succeeded when I used a DVB-T tuner (a Pinnacle 2000i) :). Obviously the Pinnacle found only those channels broadcast in DVB-T MUXes (in the UK we have both DVB-T MUXes and...
    When I tested MP 2.5 some months ago using TVE3.5, I found that "scan for channels" failed to find any channels when I selected a...
    Hi all Running 1.7.1.0 TV Server as part of a full upgrade to MP2 2.5 setup After some problems with retuning (solved -...
    Replies
    3
    Views
    796
    MP1 MP2 MP2 - V2.5 No Thumbnails for TV recordings DE
    I know, missing thumbnails for TV recordings have been discussed before. But even after tryping to follow possible solutions provided by the forum, the problem persists. In short, I am running MP 2.5 on a Win11 system with the skin blue vision (I also tried WMC but same issue). When recording TV shows no thumbnails are created. I have...
    I know, missing thumbnails for TV recordings have been discussed before. But even after tryping to follow possible solutions...
    I know, missing thumbnails for TV recordings have been discussed before. But even after tryping to follow possible solutions...
    Replies
    0
    Views
    127
    Top Bottom