[mythtv] Request: please fix channel up/down and watch live TV defaults forDVB:HD tuners

Mudit Wahal mwahal at gmail.com
Thu Jun 2 22:29:35 UTC 2005


Well, I'm impatinet man :-)

So I just build the mythfrontend with some debugs in
mythcontext:GetSettings function. I wanted to know what is being
passed as ChannelOrder default value !

I see everything being queried except the ChannelOrder ! Go figure !

But with 0.18.1 frontend, the behaviour is different ! (Someone fixed
a booboo ?? I dont see channum+0 in the sql query .. come on .. fess
up .. who fixed it in 0.18.1... and was still silent while I was being
thrashed left and right by Sir Isaac !!!!!!)

My starting channel is 5_1 and the sorting order is still alphanumeric.
Here is sql log (we go from 5_1 to 65_1, and then to 65_2, 65_3, and so on)

=============
 389 Query       SELECT channum FROM channel,capturecard,cardinput
WHERE channel.channum = "5_1" AND channel.sourceid =
cardinput.sourceid AND cardinput.cardid = capturecard.cardid AND
capturecard.cardid = "1" AND capturecard.hostname = "mythtvbe"
                    389 Query       SELECT channel.channum,
channel.chanid FROM channel,capturecard,cardinput WHERE
channel.channum > "5_1"  AND cardinput.cardid = capturecard.cardid AND
capturecard.cardid = "1" AND capturecard.hostname = "mythtvbe" AND
cardinput.sourceid = channel.sourceid  ORDER BY channel.channum  LIMIT
1
                    389 Query       SELECT NULL
                    389 Query       SELECT chanid, serviceid, mplexid
FROM channel,cardinput,capturecard WHERE channel.channum='65_1' AND
cardinput.sourceid = channel.sourceid AND cardinput.cardid = '1' AND
capturecard.cardid = cardinput.cardid AND capturecard.cardtype = 'DVB'

=====

2005-06-02 15:13:59.146 DVB#0 Trying to tune to channel 5_1.
2005-06-02 15:15:14.645 DVB#0 Trying to tune to channel 65_1.
2005-06-02 15:16:09.420 DVB#0 Trying to tune to channel 65_2.
2005-06-02 15:16:20.913 DVB#0 Trying to tune to channel 65_3.


I'm wondering why did it skip 7_1 ? Does "65_1" < "7_1" in strings comparions ?
I'm testing across VNC so the response is very very slow. Will try to
do channel flips at home and gather complete info.

But, seriously guys (and gals), DVB + HD needs some ironing out for
channel changing/tuning/etc.

Thanks
Mudit
(p.s.: just one more block from the mythingarten !!!!!)
On 6/2/05, Mudit Wahal <mwahal at gmail.com> wrote:
> Hopefully other DEVs and users are reading (I know I'm on Isaac's
> ignore list, tell him that I'm still waiting in line to enroll in
> mythingarten :-)
> 
> I did set the channel to alpha numeric from the
> frontend->setup->general. etc etc...TV.. menu.
> 
> The  settings.data becomes "channum" when you set it to alpha numeric
> (otherwise its set to channum+0 if you set to sort by channel number).
> 
> ======================
> 050602 12:49:00     365 Connect     mythtv at localhost on mythconverg
>                     365 Query       UPDATE settings SET value =
> 'ChannelOrdering', data = 'channum', hostname = 'mythtvbe' WHERE value
> = 'ChannelOrdering' AND hostname = 'mythtvbe'
>                     365 Quit
> 050602 12:49:03     366 Connect     mythtv at localhost on mythconverg
>                     366 Query       SELECT * FROM settings WHERE value
> = 'ChannelOrdering' AND hostname = 'mythtvbe'
>                     366 Quit
> ========================
> 
> Now trying to tune the channel number (starting channel is 5_1 in my lineup).
> 
> 2005-06-02 13:09:47.964 DVB#0 Trying to tune to channel 7_1.
> 2005-06-02 13:10:17.782 DVB#0 Trying to tune to channel 9_1.
> 2005-06-02 13:10:44.949 DVB#0 Trying to tune to channel 11_2.
> 2005-06-02 13:11:52.138 DVB#0 Trying to tune to channel 20_2.
> =================
> 
> 
> 
> 050602 13:09:47     356 Query       SELECT NULL
>                     356 Query       SELECT channum + 0 FROM
> channel,capturecard,cardinput WHERE channel.channum = "5_1" AND
> channel.sourceid = cardinput.sourceid AND cardinput.cardid =
> capturecard.cardid AND capturecard.cardid = "1" AND
> capturecard.hostname = "mythtvbe"
>                     356 Query       SELECT channel.channum,
> channel.chanid FROM channel,capturecard,cardinput WHERE
> channel.channum + 0 > "5"  AND cardinput.cardid = capturecard.cardid
> AND capturecard.cardid = "1" AND capturecard.hostname = "mythtvbe" AND
> cardinput.sourceid = channel.sourceid  ORDER BY channel.channum + 0
> LIMIT 1
>                     356 Query       SELECT NULL
>                     356 Query       SELECT chanid, serviceid, mplexid
> FROM channel,cardinput,capturecard WHERE channel.channum='7_1' AND
> cardinput.sourceid = channel.sourceid AND cardinput.cardid = '1' AND
> capturecard.cardid = cardinput.cardid AND capturecard.cardtype = 'DVB'
>                     355 Query       SELECT NULL
> 050602 13:10:17     356 Query       SELECT NULL
>                     356 Query       SELECT channum + 0 FROM
> channel,capturecard,cardinput WHERE channel.channum = "7_1" AND
> channel.sourceid = cardinput.sourceid AND cardinput.cardid =
> capturecard.cardid AND capturecard.cardid = "1" AND
> capturecard.hostname = "mythtvbe"
>                     356 Query       SELECT channel.channum,
> channel.chanid FROM channel,capturecard,cardinput WHERE
> channel.channum + 0 > "7"  AND cardinput.cardid = capturecard.cardid
> AND capturecard.cardid = "1" AND capturecard.hostname = "mythtvbe" AND
> cardinput.sourceid = channel.sourceid  ORDER BY channel.channum + 0
> LIMIT 1
>                     356 Query       SELECT NULL
>                     356 Query       SELECT chanid, serviceid, mplexid
> FROM channel,cardinput,capturecard WHERE channel.channum='9_1' AND
> cardinput.sourceid = channel.sourceid AND cardinput.cardid = '1' AND
> capturecard.cardid = cardinput.cardid AND capturecard.cardtype = 'DVB'
>                     355 Query       SELECT NULL
>                     355 Query       SELECT frequency, modulation,
> sistandard FROM dtv_multiplex,cardinput,capturecard WHERE mplexid=9
> AND dtv_multiplex.sourceid = cardinput.sourceid AND
> capturecard.cardid=1
> 050602 13:10:44     356 Query       SELECT NULL
>                     356 Query       SELECT channum + 0 FROM
> channel,capturecard,cardinput WHERE channel.channum = "9_1" AND
> channel.sourceid = cardinput.sourceid AND cardinput.cardid =
> capturecard.cardid AND capturecard.cardid = "1" AND
> capturecard.hostname = "mythtvbe"
>                     356 Query       SELECT channel.channum,
> channel.chanid FROM channel,capturecard,cardinput WHERE
> channel.channum + 0 > "9"  AND cardinput.cardid = capturecard.cardid
> AND capturecard.cardid = "1" AND capturecard.hostname = "mythtvbe" AND
> cardinput.sourceid = channel.sourceid  ORDER BY channel.channum + 0
> LIMIT 1
>                     356 Query       SELECT NULL
>                     356 Query       SELECT chanid, serviceid, mplexid
> FROM channel,cardinput,capturecard WHERE channel.channum='11_2' AND
> cardinput.sourceid = channel.sourceid AND cardinput.cardid = '1' AND
> capturecard.cardid = cardinput.cardid AND capturecard.cardtype = 'DVB'
>                     355 Query       SELECT NULL
> 050602 13:11:52     356 Query       SELECT NULL
>                     356 Query       SELECT channum + 0 FROM
> channel,capturecard,cardinput WHERE channel.channum = "11_2" AND
> channel.sourceid = cardinput.sourceid AND cardinput.cardid =
> capturecard.cardid AND capturecard.cardid = "1" AND
> capturecard.hostname = "mythtvbe"
>                     356 Query       SELECT channel.channum,
> channel.chanid FROM channel,capturecard,cardinput WHERE
> channel.channum + 0 > "11"  AND cardinput.cardid = capturecard.cardid
> AND capturecard.cardid = "1" AND capturecard.hostname = "mythtvbe" AND
> cardinput.sourceid = channel.sourceid  ORDER BY channel.channum + 0
> LIMIT 1
>                     356 Query       SELECT NULL
>                     356 Query       SELECT chanid, serviceid, mplexid
> FROM channel,cardinput,capturecard WHERE channel.channum='20_2' AND
> cardinput.sourceid = channel.sourceid AND cardinput.cardid = '1' AND
> capturecard.cardid = cardinput.cardid AND capturecard.cardtype = 'DVB'
>                     355 Query       SELECT NULL
> =========================================
> 
> By looking at the sql logs above, the sql query still uses channum + 0
> and not channum. Seems like the sort by alpha is being totally ignored
> by the frontend.
> 
> I've build the 0.18.1 frontend, will probably debug in the weekend.
> 
> Thanks
> 
> Mudit
> 
> On 6/2/05, Daniel Kristjansson <danielk at cat.nyu.edu> wrote:
> > On Thu, 2005-06-02 at 12:16 -0400, Isaac Richards wrote:
> > > On Thursday 02 June 2005 10:23 am, Daniel Kristjansson wrote:
> > > > On Thu, 2005-06-02 at 09:28 -0400, Isaac Richards wrote:
> > > > > On Wednesday 01 June 2005 11:44 pm, Mudit Wahal wrote:
> > > > > > If I modify the channum from 2_1 to 21, 2_2 to 22, 5_1 to 52 and so
> > > > > > on, then I can click thru every single channel in my line up ! But it
> > > > > > breaks the mythfilldatabase as its looking for channel numbers 2_1,
> > > > > > 2_2 and not for 21, 22.
> > > > >
> > > > > mythfilldatabase doesn't do anything with the channum field, except fill
> > > > > it in when creating a channel.  You're quite free to change it to
> > > > > whatever you want, and in the case of HD channels, I'd assume most people
> > > > > would want to due to the lack of a _ key on most remotes.
> > > >
> > > > mythfilldatabase doesn't care, but hdtvrecorder does. If Mudit wanted to
> > > > go back to using the v4l drivers then he'd want the "_" character in his
> > > > channel names.
> > >
> > > Speaking of which, when are we deprecating the hdtvrecorder stuff?  Doesn't
> > > make sense to support two different drivers for the same hardware to me,
> > > especially when one (ie, DVB) is much more of a standard.
> >
> > I still have problems recording multiple audio streams with the DVB
> > code, and the DVB driver hasn't been modified to support analog
> > recording. So I'm still maintaining the hdtvrecorder at least until
> > those two issues are addressed.
> >
> > I'm planning to look at the audio problem at some point as that is
> > the only thing really preventing me from using the DVB drivers, and
> > my understanding is that someone is looking making the DVB driver
> > function along with the analog driver.
> >
> > As for supporting sub-channels on the hdtvrecorder without the "_"
> > character, that should be 2 liner, I just haven't gotten around
> > to it yet.
> >
> > -- Daniel
> >
> >
> >
> > _______________________________________________
> > mythtv-dev mailing list
> > mythtv-dev at mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> >
> >
> >
>


More information about the mythtv-dev mailing list