home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Installation, configuration support
1.3.0 Final and Digital Channel Scans
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mm1352000" data-source="post: 990088" data-attributes="member: 82144"><p>Hello again</p><p> </p><p></p><p>Yes this is expected, as per my comment above...</p><p></p><p> </p><p> </p><p></p><p>AIUI that setting is not a control of how many digits show.</p><p>For example, if your channel numbers were all 2 digits long and the setting was 4, I wouldn't expect MP to pad the numbers out to 4 digits.</p><p>(Does it do that? At work, so can't check...)</p><p>What it is meant to be is an indicator for the zapping code so once you enter x number of digits MP will know to change channel without applying the zap delay.</p><p>For example, changing to channel "2" with the setting value "3" is faster when you enter "002".</p><p>Make sense?</p><p> </p><p> </p><p> </p><p></p><p>Right, so it scanned as unknown on physical 7 but found the names on physical 35. Possibly this:</p><p><a href="http://mantis.team-mediaportal.com/view.php?id=3707" target="_blank">http://mantis.team-mediaportal.com/view.php?id=3707</a></p><p> </p><p> </p><p> </p><p></p><p>Hmmm, okay.</p><p>In binary terms those numbers are really close.</p><p>65 = 0b1000001</p><p>257 = 0b100000001</p><p> </p><p>Let me see... what does TsWriter do:</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/master/DirectShowFilters/TsWriter/source/VirtualChannelTableParser.cpp#153" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/master/DirectShowFilters/TsWriter/source/VirtualChannelTableParser.cpp#153</a></p><p> </p><p> </p><p>...with reference to ATSC A/65:</p><p><a href="http://www.atsc.org/cms/standards/a_65-2009.pdf" target="_blank">http://www.atsc.org/cms/standards/a_65-2009.pdf</a></p><p>(page 32 table 6.4)</p><p> </p><p>And there we see a bug. Code is:</p><p>[code] int major_channel =((buf[start ]&0xf)<<8) + (buf[start+1]>>2);</p><p> int minor_channel =((buf[start+1]&0x3)<<8) + buf[start+2];[/code]</p><p> </p><p>Code should be:</p><p>[code=c#] int major_channel =((buf[start ]&0xf)<<6) + (buf[start+1]>>2);</p><p> int minor_channel =((buf[start+1]&0x3)<<8) + buf[start+2];[/code]</p><p>[edit: bolding doesn't work with code! Note the 6 instead of the 8 in the first statement.]</p><p> </p><p>And this bug would have precisely the effect that you described. It only affects major channel numbers greater than 63.</p><p> </p><p>mm</p></blockquote><p></p>
[QUOTE="mm1352000, post: 990088, member: 82144"] Hello again Yes this is expected, as per my comment above... AIUI that setting is not a control of how many digits show. For example, if your channel numbers were all 2 digits long and the setting was 4, I wouldn't expect MP to pad the numbers out to 4 digits. (Does it do that? At work, so can't check...) What it is meant to be is an indicator for the zapping code so once you enter x number of digits MP will know to change channel without applying the zap delay. For example, changing to channel "2" with the setting value "3" is faster when you enter "002". Make sense? Right, so it scanned as unknown on physical 7 but found the names on physical 35. Possibly this: [url]http://mantis.team-mediaportal.com/view.php?id=3707[/url] Hmmm, okay. In binary terms those numbers are really close. 65 = 0b1000001 257 = 0b100000001 Let me see... what does TsWriter do: [url]https://github.com/MediaPortal/MediaPortal-1/blob/master/DirectShowFilters/TsWriter/source/VirtualChannelTableParser.cpp#153[/url] ...with reference to ATSC A/65: [url]http://www.atsc.org/cms/standards/a_65-2009.pdf[/url] (page 32 table 6.4) And there we see a bug. Code is: [code] int major_channel =((buf[start ]&0xf)<<8) + (buf[start+1]>>2); int minor_channel =((buf[start+1]&0x3)<<8) + buf[start+2];[/code] Code should be: [code=c#] int major_channel =((buf[start ]&0xf)<<6) + (buf[start+1]>>2); int minor_channel =((buf[start+1]&0x3)<<8) + buf[start+2];[/code] [edit: bolding doesn't work with code! Note the 6 instead of the 8 in the first statement.] And this bug would have precisely the effect that you described. It only affects major channel numbers greater than 63. mm [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Installation, configuration support
1.3.0 Final and Digital Channel Scans
Contact us
RSS
Top
Bottom