![]() |
|
SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
QAM channel scan unreliable, reports DTV-x-y; testers wanted
For as long as I've been running Sage7, doing a channel scan with any internal tuner (Hauppauge HVR 1250, 1600, 1800, 2250, etc) on my cable system (Suddenlink, which uses clear QAM) has never worked correctly.
The channel scan **usually** reported almost all program names as "DTV-x-y" instead of, e.g. "KCRA". It would often skip some channels. Subsequent channel scans almost always reported a huge number of changes since the last scan (nearly half of the 110-channel cable system), even if it was only minutes ago. It was impossible to get a stable set of scans. The presence of multiple tuners using the same channel lineup made the problem even worse. This meant a huge effort to manually identify and remap almost all of the 110 channels. The problem didn't exist in Sage6. Sadly, SageTv was bought by Google before the problem could be reported to the developers. With the cable co's frequent changes to the channel lineup, it drove me to dump my internal Hauppauge tuners and replace them with SiliconDust HDHRs several years ago. But I'd like to return to using the Hauppauge tuners. With Sage now open source, it's been possible to track down the problem and produce a fix. It's been tested using my 4 different Hauppauge tuners as well as the HDHRs, with both OTA/ATSC and my cable co (SL). A pull request has been submitted and should be in the master repo soon. Due to the nature of the underlying problem (and the "interesting" implementations of various program providers), it would be useful to see the fix tested on other cable systems and DVB (satellite). Please consider testing the fix even if you didn't experience the problem; that'll give confidence that we haven't regressed. Feedback from other Suddenlink users is also useful. To try the channel-scan fix, simply replace TSSplitter.ax on your (Windows) SageTv server. I've provided 2 versions of this file. Use the Sage7 one with official Sage7 binaries (or a hybrid of mostly Sage7 files + the few Sage9 .exe's from here http://forums.sagetv.com/forums/showthread.php?t=62531). Otherwise, the Sage9 .ax file is the one to use if you're running the Sage9 open source code you compiled under vs2015. 1. Download and rename (not unzip) the appropriate .ax file (they're not really .zip files; the .zip extension is just to avoid a forum limitation). 2. Shut down SageTv and stop the SageTv service, if it's running. 3. Backup the entire Sage program folder. The fix shouldn't affect your existing recordings or wiz.bin, but it may affect the existing sage.properties file when you do a channel scan. 4. Replace the existing TSSplitter.ax in SageTv\Common. 5. In the SageTv\SageTv folder, create a file NATIVE_LOG.ENABLE (this turns on debug logging). 6. Restart SageTv. 7. Do a channel scan, either a full or update scan. 8. Review the results. 9. Do another channel scan. 10. Review the results. They should be reasonably consistent with the previous scan. 11. Stop SageTv, remove the NATIVE_LOG.ENABLE file (to disable the debug logging) and restart Sage. 12. Please report your results and include the Native.log file from SageTv/SageTv. This will help determine if additional tweeks are still needed.
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. Last edited by JustFred; 01-19-2016 at 09:06 PM. Reason: replaced .ax file for Sage7 (references correct libraries) |
#2
|
|||
|
|||
My machine says the zip files are invalid?
|
#3
|
|||
|
|||
Re-read step 1 in the post above yours. |
#4
|
|||
|
|||
Directions? What are those? Ooops
![]() |
#5
|
||||
|
||||
If there's some way to export a QAM scan then I've already got a mechanism in the Schedules Direct JSON service to incorporate QAM data to make scanning / correlating potentially simpler for other's that are on the same headend.
|
#6
|
|||
|
|||
Has anyone tried out this fix? We were hoping to get some user feedback prior to pulling the change into the open-source repo.
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. |
#7
|
||||
|
||||
I try it and dosen't work with my WinTV-dualHD TV Tuner
Last edited by SHS; 01-06-2016 at 11:24 AM. |
#8
|
|||
|
|||
@shs: The errors in the logs are unrelated to the code-change for channel scan. Any chance the wrong TSSplitter.ax file (v9 vs. v7) was used? Which version of Sage are you running? Can you include the Native.log file?
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. |
#9
|
||||
|
||||
Quote:
All that in it is 01/06/2016 18:28:11 QAM Cache is disabled 01/06/2016 18:28:11 Channel is open (ver 3.0.4) Now I was to restore the stock TSSplitter.ax that come with SageTV it come with 01/06/2016 18:29:50 QAM Cache is disabled 01/06/2016 18:29:50 Channel is open (ver 3.0.4) 01/06/2016 18:29:50 Create Remuxer 01/06/2016 18:29:50 TS Filter created ( ver.2.0.9 ) 01/06/2016 18:29:50 PSI Filter created ( ver.2.0.1 ) 01/06/2016 18:29:50 PSI format Unknown 01/06/2016 18:29:50 TS Parser is created version 2.0.4 . 01/06/2016 18:29:50 Maxium PAT number:6 PMT number:80 Packet length:188 01/06/2016 18:29:50 PTSFIX threshold:0:0:5.000'000.0 01/06/2016 18:29:51 Open slot 0. 01/06/2016 18:29:51 PS Builder is created version 2.0.1 ZQ.. 01/06/2016 18:29:51 Set default EPG language "eng". 01/06/2016 18:29:51 Set default audio language "eng". 01/06/2016 18:29:51 'Hauppauge WinTV-dualHD TS Capture.par' is not exist. 01/06/2016 18:29:51 Set parser delay time 500 on 'Hauppauge WinTV-dualHD TS Capture'. Last edited by SHS; 01-06-2016 at 06:33 PM. |
#10
|
|||
|
|||
No idea what's causing the failure. The log shows that it doesn't even get to the point of executing my new code.
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. |
#11
|
||||
|
||||
I guest I could dig the my HVR 2250 and test it
|
#12
|
||||
|
||||
That still go with HVR 2250 in my Server
There have be some thing miss May be some you have that we don't Install Have test on system that only has SageTV install and Java with no other apps |
#13
|
||||
|
||||
Bingo after hex editing your file I fig out what up you forgot to add one very Super IMPORTANT Note: that WE need to install the Visual C++ 2015 Redistributable for your file to work
![]() Last edited by SHS; 01-07-2016 at 11:54 PM. |
#14
|
||||
|
||||
It dose better then stock SageTV TSSplitter.ax filter but no where near as good as WinTV when it should be only pick up 105 channel and not any local as they are not viewable
Here three set of logs |
#15
|
|||
|
|||
It's expected that the TSSplitter.ax for v9 requires the vs2015 redistributable run-time libraries. Anyone running the "full" set of Sage v9 binaries that they compiled would need these libraries. The v9 .ax file is only for use with the full set of v9 native binaries. Microsoft says that these runtime libraries are inherently present in Win10, but I haven't verified this myself.
On the other hand, the v7 .ax file shouldn't have been referencing the VS2015 libraries and was intended to work using the libraries already present for Sage7. It looks like there's a problem with my build environment (compiler configuration) used to build the v7 version. The v7 version was successfully tested on two of my Sage7 boxes, so I need to look further into this. The good news: Looking at your logs, the channel scan fix is working correctly with your cable company (which doesn't seem to present any unexpected program stream pkts). Like you, I've also noticed that Hauppauge's WinTv channel scan generally does a much better job than does Sage. WinTv is also much faster: approx 30 seconds vs. Sage's 30 minutes, in my case. My current fix doesn't attempt to address anything other than Sage's inability to report the correct channel names. One thing at a time.
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. |
#16
|
||||
|
||||
It not in Windows 10 that sure as it on my laptop system that was using Hauppauge WinTV-dualHD on.
Ok sound good Last edited by SHS; 01-08-2016 at 11:50 PM. |
#17
|
|||
|
|||
@shs: Can you give me some more details about what you found using the hex editor on the v7 file? I see only the expected references to the msvcr120-vintage runtime libraries that Sage7 uses.
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. |
#18
|
||||
|
||||
Quote:
I haven't look at v7 dll |
#19
|
||||
|
||||
Quote:
SageTV vintage runtime libraries is base on Visual C++ 2005 Last edited by SHS; 01-13-2016 at 12:16 PM. |
#20
|
|||
|
|||
I fixed the compiler problem that caused the Sage 7 .ax file to reference the wrong runtime libraries. The new binary has been verified on several Sage systems. Posting #1 in this thread has been updated with the new download.
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. Last edited by JustFred; 01-20-2016 at 04:53 PM. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sagetv V7 unable to scan channels while HD homerun config reports no issues? | jmcomp124 | Hardware Support | 7 | 09-06-2011 09:17 AM |
DVB-T Channel Scan | logsvp | SageTV Beta Test Software | 0 | 05-21-2010 01:02 PM |
Channel scan or build channel list by hand? | bmac.to | SageTV Software | 4 | 02-26-2010 06:11 PM |
Satellite Channel Scan Error: Can't do C-Band and Ku-Band Providers in the same scan | Kiwi_Tim | Hardware Support | 0 | 09-16-2009 05:19 AM |
SageTV no scan channel | Yele | Hardware Support | 1 | 10-11-2007 01:38 PM |