MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » Help on Development » Development


Development You want to code something for the TV-Server? Share it in here!

Reply
 
Thread Tools Display Modes
Old 2008-09-07, 13:40   #1 (permalink)
Portal Developer
 
misterd's Avatar
 
Join Date: Apr 2006
Posts: 1,137
Thanks: 27
Thanked 38 Times in 26 Posts

Country:


Help us Test bugfix for HVR-4000 and HVR-2200 analog part

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.

for testing.

MisterD


edit: The patch is now in SVN.

Last edited by misterd; 2008-09-29 at 22:05. Reason: Removed patch
misterd is offline   Reply With Quote
Old 2008-09-07, 14:30   #2 (permalink)
Portal User
 
Join Date: Sep 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

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.
Attached Files
File Type: zip logs.zip (1.4 KB, 4 views)
Kristensen is offline   Reply With Quote
Old 2008-09-07, 14:53   #3 (permalink)
Portal Developer
 
misterd's Avatar
 
Join Date: Apr 2006
Posts: 1,137
Thanks: 27
Thanked 38 Times in 26 Posts

Country:


Default

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
misterd is offline   Reply With Quote
Old 2008-09-07, 15:01   #4 (permalink)
Portal User
 
Join Date: Sep 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

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.

Last edited by Kristensen; 2008-09-07 at 15:34. Reason: instead of making another post again.
Kristensen is offline   Reply With Quote
Old 2008-09-08, 14:03   #5 (permalink)
Portal Member
 
mcraenz's Avatar
 
Join Date: Jul 2007
Location: Auckland
Posts: 487
Thanks: 2
Thanked 17 Times in 15 Posts

Country:

My System

Default

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.
__________________
Intel DP35DP / c2d E8400 (3.0Ghz) / NVIDIA 8600GT / 4GB DDR800 / HVR-2200 / SkyStar 2 / Techotrend S1500+CI / PVR-150

New Zealander's don't forget to check out the NZ Wiki Page
mcraenz is offline   Reply With Quote
Old 2008-09-09, 08:17   #6 (permalink)
Portal Member
 
Join Date: Dec 2004
Location: Venice
Age: 42
Posts: 71
Thanks: 9
Thanked 2 Times in 2 Posts

Country:


Default

Quote:
Originally Posted by misterd View Post
Hi all,
as some of you already know the analog part of the HVR-4000 stopped working
Sorry, your patch don't work.

Regards,
xavier.
Attached Files
File Type: zip MediaPortalLogs_09_09_08.zip (353.4 KB, 3 views)
xavier is online now   Reply With Quote
Old 2008-09-09, 09:25   #7 (permalink)
Portal Developer
 
misterd's Avatar
 
Join Date: Apr 2006
Posts: 1,137
Thanks: 27
Thanked 38 Times in 26 Posts

Country:


Default

Quote:
Originally Posted by mcraenz View Post
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.

Quote:
Originally Posted by xavier View Post
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
misterd is offline   Reply With Quote
Old 2008-09-12, 11:34   #8 (permalink)
Portal Member
 
mcraenz's Avatar
 
Join Date: Jul 2007
Location: Auckland
Posts: 487
Thanks: 2
Thanked 17 Times in 15 Posts

Country:

My System

Default

Quote:
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
__________________
Intel DP35DP / c2d E8400 (3.0Ghz) / NVIDIA 8600GT / 4GB DDR800 / HVR-2200 / SkyStar 2 / Techotrend S1500+CI / PVR-150

New Zealander's don't forget to check out the NZ Wiki Page
mcraenz is offline   Reply With Quote
Old 2008-09-12, 13:06   #9 (permalink)
Portal Developer
 
misterd's Avatar
 
Join Date: Apr 2006
Posts: 1,137
Thanks: 27
Thanked 38 Times in 26 Posts

Country:


Default

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
misterd is offline   Reply With Quote
Old 2008-09-17, 09:40   #10 (permalink)
Portal Tester
 
ronilse's Avatar
 
Join Date: Jul 2005
Posts: 3,393
Thanks: 23
Thanked 99 Times in 84 Posts

Country:

My System

Default

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
ronilse is online now   Reply With Quote
Reply

Bookmarks

Tags
analog, bugfix, hvr2200, hvr4000, part, test

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HVR-4000 problem with analog TV dmkbox General Support 11 2008-11-03 21:47
TVServer service crashes on analog tuning with Hauppauge HVR-2200 janm 1.0 RC2 and SVN Builds 19 2008-09-15 00:27
Analog Support for HVR-2200 mcraenz Get Support 12 2008-09-07 14:03
No Analog with Hauppauge HVR 4000 Flapoly 1.0 RC1 and SVN Builds 14 2008-09-07 13:55
Poor video quality on analog TV with HVR 4000 kronwerk General Support 1 2008-04-15 18:09


All times are GMT +1. The time now is 10:28.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden