Test bugfix for HVR-4000 and HVR-2200 analog part (3 Viewers)

misterd

Retired Team Member
  • Premium Supporter
  • April 4, 2006
    1,597
    314
    Home Country
    Germany Germany
    Hi all,
    as some of you already know the analog part of the HVR-4000 stopped working when we added support for the analog part of the HVR-2200. The main reason is that both need a different graph building.
    During the last weeks I tried to find a solution to support both cards without adding completely new features to the TvServer.

    Finally I found a solution, but I need owners of both cards to verify that both are working with this way of graph building. So please test the attached modified TvLibrary.dll with latest SVN.

    Instructions for testing
    1. Stop TvServer
    2. Backup TvLibrary.dll which is located in the installation directory of TvServer
    3. Replace it with the attached one.
    4. Start TvServer again

    If the file isn't working you can simply restore the backup and please post your logs here so I can try to find a better solution.

    :D for testing.

    MisterD


    edit: The patch is now in SVN.
     

    Kristensen

    New Member
    September 7, 2008
    4
    0
    Home Country
    Denmark Denmark
    It dosen't work for me, after replacing the dll, the tv server says that the tuners on my hvr 4000 are of unknown type and after a reboot the server part in config were empty, so I returned to the original dll and it came back, so tried again without rebooting to get some fresh logs for you. Hope they help.
     

    misterd

    Retired Team Member
  • Premium Supporter
  • April 4, 2006
    1,597
    314
    Home Country
    Germany Germany
    I can see from your logs that you are not using latest SVN, but you have to use latest SVN, otherwise the attached dll can't work, because it doesn't fit to the rest of the TvServer.

    So you have to update to latest SVN, if you want to test the bugfix.

    MisterD
     

    Kristensen

    New Member
    September 7, 2008
    4
    0
    Home Country
    Denmark Denmark
    Oh sorry, I just downloaded today, so thoug that it was the newest, but can now see that other link on the main page, will try it out later today.

    EDIT:
    Ive downloaded the latest SVN and replaced the dll, it seems like it works, atleast its finding channels now, haven't been able to get it to do that before, looks like it can take it a while to get that done tho.
     

    mcraenz

    MP Donator
  • Premium Supporter
  • July 28, 2007
    647
    46
    Auckland
    Home Country
    New Zealand New Zealand
    HVR2200, Seems to work ok but I get a bluescreen sometimes (Not blue screen of death crash) just a blue screen when I tune the analog side of the 2200, it's almost like the blue screen you get when your VCR is not tuned in. i.e. blue background instead of showing static.
     

    misterd

    Retired Team Member
  • Premium Supporter
  • April 4, 2006
    1,597
    314
    Home Country
    Germany Germany
    HVR2200, Seems to work ok but I get a bluescreen sometimes (Not blue screen of death crash) just a blue screen when I tune the analog side of the 2200, it's almost like the blue screen you get when your VCR is not tuned in. i.e. blue background instead of showing static.
    Does this also happen without the patch? Could you please provide some logs, so I can look if it is related to the patch. :D

    Sorry, your patch don't work.

    Regards,
    xavier.
    Can you give me some more details please, what exactly has happened? For me it looks like the tvserver crashed when you try to use the analog part of your HVR-4000. Unfortunately I can't see any error message from the server in your logs. All error messages are from SetupTV.

    Regards,
    MisterD
     

    mcraenz

    MP Donator
  • Premium Supporter
  • July 28, 2007
    647
    46
    Auckland
    Home Country
    New Zealand New Zealand
    Does this also happen without the patch? Could you please provide some logs, so I can look if it is related to the patch.
    Sorry for the late reply, I suspect this is not related to the patch, I'm sure I've seen it before. It happened again today and I was able to grab logs while it was broken.

    Here some interesting excerpts from tv.log it seems like it doesn't tune properly:

    Code:
    Bad:Tuning analog channel "Prime" just displays/records "blue":
    
    2008-09-12 21:04:11.928324 [16]: card: CardTune 6 Prime NewView2:6:-1
    2008-09-12 21:04:11.928324 [16]: card: Tune 6 to Prime
    2008-09-12 21:04:11.928324 [16]: card: user: NewView2:6:-1 tune tv:Prime Freq:0 Channel:316 Country:New Zealand Tuner:Cable Video:Tuner
    2008-09-12 21:04:11.932230 [16]: analog:  Tune:tv:Prime Freq:0 Channel:316 Country:New Zealand Tuner:Cable Video:Tuner
    2008-09-12 21:04:11.932230 [16]: analog:GetNewSubChannel:0 #0
    2008-09-12 21:04:11.934183 [16]: analog subch:0 OnGraphStart
    2008-09-12 21:04:11.934183 [16]: analog: RunGraph
    2008-09-12 21:04:12.364820 [16]: analog subch:0 OnGraphStarted
    2008-09-12 21:04:12.365796 [16]: analog subch:0 OnBeforeTune
    2008-09-12 21:04:12.532778 [16]: Analog: Tuned to country:64 video:0 Hz audio:0 Hz locked:False
    2008-09-12 21:04:12.533754 [16]: analog subch:0 OnAfterTune
    2008-09-12 21:04:12.533754 [16]: card: tuned user: NewView2 subchannel: 0
    2008-09-12 21:04:12.533754 [16]: user:NewView2 add
    2008-09-12 21:04:12.702689 [16]: card: Tuner locked: False
    2008-09-12 21:04:12.703665 [16]: **************************************************
    2008-09-12 21:04:13.038605 [16]: ***** SIGNAL LEVEL: 0, SIGNAL QUALITY: 0 *****
    2008-09-12 21:04:13.038605 [16]: **************************************************
    2008-09-12 21:04:13.038605 [16]: card2:NewView2 6 0
    2008-09-12 21:04:13.039581 [16]: Controller: NewView2 6 0
    2008-09-12 21:04:13.039581 [16]: control2:NewView2 6 0
    2008-09-12 21:04:13.040558 [16]: Controller: delete timeshift files T:\Timeshift\live6-0.ts
    2008-09-12 21:04:13.041534 [16]: Controller:   delete T:\Timeshift\live6-0.ts.tsbuffer
    2008-09-12 21:04:13.041534 [16]: Controller:   delete T:\Timeshift\live6-0.ts.tsbuffer1.ts
    2008-09-12 21:04:13.043487 [16]: card: StartTimeShifting 6 T:\Timeshift\live6-0.ts 
    2008-09-12 21:04:13.043487 [16]: analog: Encoder mode setting to ConstantBitRate
    2008-09-12 21:04:13.383309 [16]: analog: Encoder mode set to ConstantBitRate
    2008-09-12 21:04:13.383309 [16]: analog: Encoder BitRate setting to Default
    2008-09-12 21:04:13.396004 [16]: analog: Encoder BitRate Min 0 Max 6000000 Delta 1
    2008-09-12 21:04:13.773909 [16]: analog: Encoder BitRate set to 2000000
    2008-09-12 21:04:13.773909 [16]: analog:SetTimeShiftFileName:T:\Timeshift\live6-0.ts
    2008-09-12 21:04:13.774886 [16]: analog:SetTimeShiftFileName: uses .ts
    2008-09-12 21:04:13.777815 [16]: card: WaitForUnScrambledSignal
    2008-09-12 21:04:13.777815 [16]: card:   return not scrambled
    2008-09-12 21:04:13.778792 [16]: card: WaitForTimeShiftFile
    2008-09-12 21:04:13.778792 [16]: card: WaitForUnScrambledSignal
    2008-09-12 21:04:13.779768 [16]: card:   return not scrambled
    2008-09-12 21:04:13.779768 [16]: card: WaitForTimeShiftFile - waiting _eventAudio & _eventVideo
    2008-09-12 21:04:16.547169 [17]: PID seen - type = Audio
    2008-09-12 21:04:16.547169 [17]: audioVideoEventHandler Audio
    2008-09-12 21:04:16.548146 [17]: PID seen - type = Video
    2008-09-12 21:04:16.548146 [17]: audioVideoEventHandler Video
    2008-09-12 21:04:16.548146 [16]: card: WaitForTimeShiftFile - start of the video & audio is seen
    2008-09-12 21:04:16.749305 [16]: user:NewView2 card:6 sub:0 add stream:T:\Timeshift\live6-0.ts.tsbuffer
    2008-09-12 21:04:16.749305 [16]: RTSP: add stream stream6.0 file:T:\Timeshift\live6-0.ts.tsbuffer
    2008-09-12 21:04:16.750281 [16]: Controller: StartTimeShifting started on card:6 to T:\Timeshift\live6-0.ts.tsbuffer

    Code:
    Good:After restarting TVService analog channel "Prime" tunes and display correctly:
    
    2008-09-12 21:06:39.561453 [8]: card: CardTune 6 Prime NewView2:6:-1
    2008-09-12 21:06:39.561453 [8]: card: Tune 6 to Prime
    2008-09-12 21:06:39.562430 [8]: card: user: NewView2:6:-1 tune tv:Prime Freq:0 Channel:316 Country:New Zealand Tuner:Cable Video:Tuner
    2008-09-12 21:06:39.565359 [8]: analog:  Tune:tv:Prime Freq:0 Channel:316 Country:New Zealand Tuner:Cable Video:Tuner
    2008-09-12 21:06:39.565359 [8]: analog:GetNewSubChannel:0 #0
    2008-09-12 21:06:39.566336 [8]: analog subch:0 OnGraphStart
    2008-09-12 21:06:39.566336 [8]: analog: RunGraph
    2008-09-12 21:06:39.845615 [8]: analog subch:0 OnGraphStarted
    2008-09-12 21:06:39.845615 [8]: analog subch:0 OnBeforeTune
    2008-09-12 21:06:40.015526 [8]: Analog: Tuned to country:64 video:775250000 Hz audio:780750000 Hz locked:True
    2008-09-12 21:06:40.015526 [8]: analog subch:0 OnAfterTune
    2008-09-12 21:06:40.016502 [8]: card: tuned user: NewView2 subchannel: 0
    2008-09-12 21:06:40.016502 [8]: user:NewView2 add
    2008-09-12 21:06:40.185437 [8]: card: Tuner locked: True
    2008-09-12 21:06:40.186413 [8]: **************************************************
    2008-09-12 21:06:40.515494 [8]: ***** SIGNAL LEVEL: 100, SIGNAL QUALITY: 100 *****
    2008-09-12 21:06:40.515494 [8]: **************************************************
    2008-09-12 21:06:40.515494 [8]: card2:NewView2 6 0
    2008-09-12 21:06:40.516470 [8]: Controller: NewView2 6 0
    2008-09-12 21:06:40.516470 [8]: control2:NewView2 6 0
    2008-09-12 21:06:40.517447 [8]: Controller: delete timeshift files T:\Timeshift\live6-0.ts
    2008-09-12 21:06:40.517447 [8]: Controller:   delete T:\Timeshift\live6-0.ts.tsbuffer
    2008-09-12 21:06:40.518423 [8]: Controller:   delete T:\Timeshift\live6-0.ts.tsbuffer1.ts
    2008-09-12 21:06:40.519400 [8]: card: StartTimeShifting 6 T:\Timeshift\live6-0.ts 
    2008-09-12 21:06:40.520376 [8]: analog: Encoder mode setting to ConstantBitRate
    2008-09-12 21:06:40.872893 [8]: analog: Encoder mode set to ConstantBitRate
    2008-09-12 21:06:40.872893 [8]: analog: Encoder BitRate setting to Default
    2008-09-12 21:06:40.885587 [8]: analog: Encoder BitRate Min 0 Max 6000000 Delta 1
    2008-09-12 21:06:41.233221 [8]: analog: Encoder BitRate set to 2000000
    2008-09-12 21:06:41.233221 [8]: analog:SetTimeShiftFileName:T:\Timeshift\live6-0.ts
    2008-09-12 21:06:41.233221 [8]: analog:SetTimeShiftFileName: uses .ts
    2008-09-12 21:06:41.236151 [8]: card: WaitForUnScrambledSignal
    2008-09-12 21:06:41.237127 [8]: card:   return not scrambled
    2008-09-12 21:06:41.237127 [8]: card: WaitForTimeShiftFile
    2008-09-12 21:06:41.238104 [8]: card: WaitForUnScrambledSignal
    2008-09-12 21:06:41.238104 [8]: card:   return not scrambled
    2008-09-12 21:06:41.239080 [8]: card: WaitForTimeShiftFile - waiting _eventAudio & _eventVideo
    2008-09-12 21:06:43.592445 [16]: PID seen - type = Audio
    2008-09-12 21:06:43.592445 [16]: audioVideoEventHandler Audio
    2008-09-12 21:06:43.592445 [16]: PID seen - type = Video
    2008-09-12 21:06:43.593422 [16]: audioVideoEventHandler Video
    2008-09-12 21:06:43.593422 [8]: card: WaitForTimeShiftFile - start of the video & audio is seen
    2008-09-12 21:06:43.794581 [8]: user:NewView2 card:6 sub:0 add stream:T:\Timeshift\live6-0.ts.tsbuffer
    2008-09-12 21:06:43.794581 [8]: RTSP: add stream stream6.0 file:T:\Timeshift\live6-0.ts.tsbuffer
    2008-09-12 21:06:43.795557 [8]: Controller: StartTimeShifting started on card:6 to T:\Timeshift\live6-0.ts.tsbuffer

    Anyhow I'll see if I can't reproduce it and get the VS debugger on to it :)
     

    misterd

    Retired Team Member
  • Premium Supporter
  • April 4, 2006
    1,597
    314
    Home Country
    Germany Germany
    It is possible that in some circumstances the tuner doesn't know if it is locked or not. It than reports than this state and the program can decide how to handle this. This isn't very helpful as this state can mean that the tuner is locked or not. I don't know why this happens, but it is possible.

    MisterD
     

    ronilse

    Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    283
    Moss
    Home Country
    Norway Norway
    Hi,
    Misterd, it doesn't work here but it could be some mismatch with vista x64 & hauppauge/mainconcept encoder, however i can build graph in graphedit & play it there.
    We can see more on this when you log on to irc ;)

    Regards
    Roy
     

    Users who are viewing this thread

    Top Bottom