Hauppauge HD-PVR & Colossus Support (2 Viewers)

Klairic

Portal Member
May 15, 2011
10
4
Home Country
Canada Canada
Hey mm, is it possible for me to get a patch file for the work you did on the digital audio already? As far as I know, you only posted a dll file.

I think that would help me get started on this. I'm just starting to figure out where a few things are, so I think it would cut down on my research time.
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Absolutely... except that I'm at work right now. It is about 12:30 in the afternoon here so it'll be six hours or so before I get home. :(
    Theoretically a hack modification for the wait should be an easy one. Just do a Thread.Sleep(4000); call in HDPVRChannel.WaitForPmt() *before* the call to _eventPMT.Wait(), or before the call to SetupPmtGrabber(). That will cause the TV Server to wait 4 seconds for the effect of blasting to be seen in the stream. If you need my changes for testing too then I can post a patch tonight with a DLL that includes general 1.2.0rc fixes, the audio crossbar fix, the detection fix and your HDMI support patch...
     

    WileECoyote

    MP Donator
  • Premium Supporter
  • October 14, 2008
    1,156
    220
    Cary, NC
    Home Country
    United States of America United States of America
    Absolutely... except that I'm at work right now. It is about 12:30 in the afternoon here so it'll be six hours or so before I get home. :(
    Theoretically a hack modification for the wait should be an easy one. Just do a Thread.Sleep(4000); call in HDPVRChannel.WaitForPmt() *before* the call to _eventPMT.Wait(), or before the call to SetupPmtGrabber(). That will cause the TV Server to wait 4 seconds for the effect of blasting to be seen in the stream. If you need my changes for testing too then I can post a patch tonight with a DLL that includes general 1.2.0rc fixes, the audio crossbar fix, the detection fix and your HDMI support patch...

    Scratch my post... I read mm's post too quick...
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Hi everyone

    As promised, I'm attaching my two patches along with a combined patch containing all fixes relevant to the Colossus and/or HDPVR since 1.2.0b. I've included a delay of 3 seconds for PMT. For those who find it easier, binaries are also available - technically these are for the latest SVN (27923), but they are also compatible with 1.2.0b.
     

    Attachments

    • All_Colossus_HDPVR_Patch.zip
      910.5 KB

    GoldenEye

    MP Donator
  • Premium Supporter
  • October 26, 2005
    300
    26
    Switzerland
    Home Country
    Switzerland Switzerland
    Hi everyone

    As promised, I'm attaching my two patches along with a combined patch containing all fixes relevant to the Colossus and/or HDPVR since 1.2.0b. I've included a delay of 3 seconds for PMT. For those who find it easier, binaries are also available - technically these are for the latest SVN (27923), but they are also compatible with 1.2.0b.

    Thanks, mm

    I tested your patch. Here's what I did /what happens (logs attached):

    - Starting MP, Accessing TV, Accessing EPG
    - Turning to channel 'Sixx' (Audio according to ShowBizz capture: AAC 2 channels)
    - Tuning to channel 'Discovery HD' (Audio: Dolby Digital (AC3) 5.1-channels) --> MP says Program/channel not found
    - Tuning to channel 'History HD' (Audio: AAC 2 channels)
    - Tuning back to the 5.1 channel 'Discovery HD' --> Picture shows up but no sound
    - Going back to home and closing MP

    Thanks a lot

    G.
     

    tenuhseegeek

    Portal Member
    May 2, 2011
    14
    1
    TN
    Home Country
    United States of America United States of America
    mm1352000
    Ok, got it! Downloaded patched .dll and set for SPIDF #2 and WORKS! now is there an easier way to change all those channels to SPIDF #1 from automatic other than taking 1/4 of my life away? LOL I set a few channels for testing and now testing a recording. It is so nice to see the help and hear the audio! I am going to clear out logs so I have a base to start from for anything else we find. Kudos!
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    @mm1352000
    Ok, got it! Downloaded patched .dll and set for SPIDF #2 and WORKS! now is there an easier way to change all those channels to SPIDF #1 from automatic other than taking 1/4 of my life away? LOL I set a few channels for testing and now testing a recording. It is so nice to see the help and hear the audio! I am going to clear out logs so I have a base to start from for anything else we find. Kudos!

    Short of writing a DB script, I'm afraid not. The script would be quite simple though. Something like:

    Code:
    UPDATE TuningDetail SET audioSource = <pin number of audio pin on crossbar> WHERE channelType = 0

    That should work for anyone that doesn't have other analog channels. With the pin number, you can start from 0 and work your way up until it works if you really have to! ;)
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Hi GoldenEye

    Thanks for testing. :)

    - Starting MP, Accessing TV, Accessing EPG
    - Turning to channel 'Sixx' (Audio according to ShowBizz capture: AAC 2 channels)
    According to the logs, also AAC... :)

    - Tuning to channel 'Discovery HD' (Audio: Dolby Digital (AC3) 5.1-channels) --> MP says Program/channel not found
    TsWriter log shows detection as AC3, but it looks like a timeout on tuning interrupted things. With the 3 seconds of waiting for PMT you might need to increase the timeouts in the general section of TV Server configuration, in particular, the tune and PMT ones.

    - Tuning to channel 'History HD' (Audio: AAC 2 channels)
    Again, detected as AAC.

    - Tuning back to the 5.1 channel 'Discovery HD' --> Picture shows up but no sound
    Also detected as AAC -> problem. About half a second later TsWriter realises it is actually AC3. :(

    @everyone: I just have a bit of a hunch here. Can someone please try one of the attached builds. Just replace the TVLibrary I posted with one of these. Any one will do. Try and get into a situation where there is no audio, and then right click to get the TV context menu and see whether the appropriate audio track is available.
     

    Attachments

    • TVLibrary[1.2.0b_Colossus_HDPVR_3s].zip
      159.4 KB
    • TVLibrary[1.2.0b_Colossus_HDPVR_3.5s].zip
      159.4 KB
    • TVLibrary[1.2.0b_Colossus_HDPVR_4s].zip
      159.4 KB
    • TVLibrary[1.2.0b_Colossus_HDPVR_5s].zip
      159.4 KB

    WileECoyote

    MP Donator
  • Premium Supporter
  • October 14, 2008
    1,156
    220
    Cary, NC
    Home Country
    United States of America United States of America
    @everyone: I just have a bit of a hunch here. Can someone please try one of the attached builds. Just replace the TVLibrary I posted with one of these. Any one will do. Try and get into a situation where there is no audio, and then right click to get the TV context menu and see whether the appropriate audio track is available.

    Hey mm,
    I tried the "3s" version and I could not get it to fail. Although the audio worked correctly on every channel, the change times were at times extremely long, 15+ seconds (see attached logs.)

    Thanks!
    Wile E.
     

    Klairic

    Portal Member
    May 15, 2011
    10
    4
    Home Country
    Canada Canada
    The patch file he posted has a Sleep() in there, that's the one you can play with.

    I'm using 4 seconds, and haven't had any problems. I think I have a different problem though. I'm using For The Record to record shows, and I think it's using a different way of changing channels, because the delay isn't used.

    I'm not sure what to do yet, but I'm going to take a look. There needs to be a way to work with FTR. I don't watch much live TV, and can't see myself recording with the built in recording features.
     

    Users who are viewing this thread

    Top Bottom