On 2/17/06, <b class="gmail_sendername">R. G. Newbury</b> &lt;<a href="mailto:newbury@mandamus.org">newbury@mandamus.org</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Michael Haan wrote:<br>&gt; On 2/17/06, *R. G. Newbury* &lt;<a href="mailto:newbury@mandamus.org">newbury@mandamus.org</a><br>&gt; &lt;mailto:<a href="mailto:newbury@mandamus.org">newbury@mandamus.org</a>&gt;&gt; wrote:<br>
&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Take a look at the channel table. There must be an mplexid entry<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; for<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; channel 213 (as well as a serviceid). You will need to do:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; update channnel set mplexid = 'x', serviceid='y' where channum='213';
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Geoff<br>&gt;<br>&gt;<br>&gt; Yeah, I'm just curious why the scan didn't do that.&nbsp;&nbsp;From the table<br>&gt; above, how do I know which mplexid to set?&nbsp;&nbsp;And where do I find the<br>&gt; service ids?<br>Because the scan doesn't. Although it will now import a 
channel.conf<br>file and it may massage that file sufficiently to do that.<br><br>I'm not going to repeat things at great length yet again. Go to gossamer<br>threads and search on a subject title &quot;pcHDTV Sweet...&quot;
<br><br>This thread is specifically for&nbsp;&nbsp;North American HTDV on cable using<br>QAM_256.&nbsp;&nbsp;It may help with other setups however.<br><br>You will need some programs referred to in that thread:&nbsp;&nbsp;atscscan and<br>azap. and mplayer for testing.
<br><br>atscscan will tune all the standard frequencies and read the stream for<br>video id, audio id and program id information. It may or may not be able<br>to parse the channel name and it will not generally find out the cable
<br>channel number.<br><br>You will get a list of usable outputs, which will make up your<br>channels.conf. These are &quot;channels&quot;.. and many are in fact music (audio<br>only) feeds. With my cableco I get numbers up to about 800 . Most of the
<br>audio streams are usable btw.<br>You can tune each channel with azap in one console and capture the<br>stream with 'cat /dev/dvb/adapter0/dvr0 &gt; test.mpg' in another console<br>then play it back with 'mplayer test.mpg
'.<br>Someone posted a script which will do the things on the above line<br>automagically and find the unencrypted streams.<br>You can also tune with azap in one console and use mplayer -vid x -aid y<br>/dev/dvb/adapter0/dvr0 where x and y are the video and audio ids found
<br>with the scan.<br><br>Each frequency carries multiple streams. Each frequency is uniquely<br>differentiated by its mplexid in the dtv_multiplex table (together with<br>the modulation and other simliar details which all of the streams have
<br>for that frequency.<br><br>The channel table then needs entries for the mplexid, to know the<br>freqeuency and the serviceid to know which stream to capture for channel<br>213. Along the way, the system also knows that this channel is in the
<br>sourceid=x group and therefor that it can use the tuners which are<br>matched to that sourceid.<br><br>The particular problem is that, at least around here, cableco's do not<br>have to send channel name information in the stream. They (also)
<br>determine the 'channel number' which is just a convenient and unique<br>marker for the channel. It does not have any relevance to the tuning<br>problem. And, the cableco can and does change the program id (or<br>serviceid) for channel streams..
<br><br>All of which make it damn difficult to scan for and extract the proper data.<br><br>Geoff<br><br><br><br><br>--<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; R. Geoffrey Newbury<br>&nbsp;&nbsp;&nbsp;&nbsp; Barrister and Solicitor<br> Suite 106, 150 Lakeshore Road West<br>
&nbsp;&nbsp;&nbsp;&nbsp;Mississauga, Ontario, L5H 3R2<br><br>&nbsp;&nbsp;905-271-9600&nbsp;&nbsp;Fax 905-271-1638<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:newbury@mandamus.org">newbury@mandamus.org</a><br><br>_______________________________________________<br>mythtv-users mailing list
<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></blockquote></div>
<br>Right, to be clear, I'm not asking for assistance doing this the manual way - I've done that successfully several times before.&nbsp; I was just trying figure out if the scan was broken or not.&nbsp; From your post, it seems that it is not - so, good.&nbsp; Thanks for all the responses.
<br>