[mythtv] Dual tuners, LiveTV, why must LiveTV always be interrupted?

Derek Atkins warlord at MIT.EDU
Mon Oct 13 15:54:01 EDT 2003


Personally I'd like it to work in reverse, too..  I have
multiple tuners that have duplicate channels in some
but DIFFERENT channels elsewhere.  I'd like to be able
to jump to different encoders during LiveTV when I tune
to a channel that is on a different encoder OR a different
input.

For example, let's say I have two tuners and "three"
inputs (two input types):

Encoder 0, Tuner0 -> Analog Cable  (2-97)
Encoder 1, Tuner0 -> Analog Cable  (2-97)
Encoder 2, Composite0 -> Digital Cable (100-151)

Clearly I can get the "Analog Cable" channels on either encoder 0 or
encoder 1.  I can only get the "Digital Cable" channels on encoder 1.
I'd like LiveTV to be able to reset the input device completely based
on the channel I select.

If I select channel 150 during LiveTV, I'd like it to put me on
Encoder 1, Composite 0 (provided encoder 1 isn't busy with something
else), even if I HAD been watching on encoder 0.

In other words, I think the algorithm for channel changing live-tv
should be the following:

   If the new channel...

   1) is on the same encoder and input, retune directly
   2) is on the same encoder and another input, change the input and retune
   3) is on another availabl encoder, change to that encoder, set the
      input, and tune the channel
   4) is only on other, unavailable encoders then pop up a dialog
      letting the user know that their channel is temporarily unavailable.

Note that this behavior is similar to, but different from, the
behavior you want for recording programs...  The algorithms are
somewhat similar, but the options at each state are different.

-derek

Joe Votour <joevph at yahoo.com> writes:

> This is what I was afraid of, and why I was asking for
> input.
> 
> I only have a basic system of two tuners using analog
> cable.  The algorithm is really simple:
> - If the tuner for the scheduled recording is busy,
> then find the next free tuner.
> - If there are no free tuners, then use the scheduled
> tuner (and pop up the dialog box as normal).
> 
> So, I guess the question then, is how do you manually
> specify a tuner in the GUI (or are you editing the
> database manually)?  In looking at the conflict
> resolution screen, I found a number (1 or 2 on my
> system), which seems to correspond to a tuner number,
> but I couldn't figure out how to change this.  Or is
> this something that is done during the initial "setup"
> program?  Looking at some of the advanced
> configuration options, I can also venture a guess that
> maybe it's in the recording profile as well.  Please
> clarify this for me.
> 
> One thing that I was thinking of is putting it in the
> configuration options, so that you can enable it if it
> makes sense for you (like me, I really love this fix,
> and it's only about 10 lines), or if you have a system
> where you assign tuners specifically, then it can be
> disabled.
> 
> Definitely I'm looking for input and trying to make
> this as compatible as possible.
> 
> -- Joe
> 
> --- Kevin Hjelden <mythtv at burntpopcorn.net> wrote:
> > Be careful about how you implement this. I've got
> > two tuners as well and 
> > they aren't connected to the same input source (one
> > is hooked to comcast 
> > basic cable, and the other to my directv tuner).
> > Will your code be able 
> > to adjust for this?
> > 
> > I just wanted to bring up something because you
> > might not be thinking 
> > about it.
> > 
> > Kevin
> > 
> > Joe Votour wrote:
> > > Isaac,
> > > 
> > > Thanks for the pointer in the right direction. 
> > Just
> > > by messing around with the value of
> > > nextRecording->cardid (just set it to 2, rather
> > than
> > > 1), I've been able to watch LiveTV while recording
> > > another program (well, something recorded, I need
> > to
> > > make sure it's the right thing), without being
> > asked
> > > to change the channel.
> > > 
> > > This is up for debate, but I'd like some ideas
> > (from
> > > you, and other people on the list) as to how this
> > > situation should be handled...  Should it be
> > automatic
> > > that in a multi-tuner system that the recording be
> > > done on the second tuner when watching LiveTV?  Or
> > > would people like to have this seen as a
> > configuration
> > > option?
> > > 
> > > At any rate, don't expect this in before the
> > release
> > > of 0.12, I want to make sure that I do it right
> > and
> > > test it fully (which means that I'll even rip a
> > tuner
> > > out of  my MythTV machine to make sure it works
> > with
> > > only one tuner).  That, and I pretty much only get
> > > weekends to code.
> > > 
> > > Thanks,
> > > Joe
> > > 
> > > 
> > > --- Isaac Richards <ijr at po.cwru.edu> wrote:
> > > 
> > >>On Thursday 09 October 2003 02:12 am, Joe Votour
> > >>wrote:
> > >>
> > >>>I guess this question is mainly aimed at Isaac,
> > >>
> > >>but
> > >>
> > >>>where should I look to fix this?  I've been
> > >>
> > >>playing
> > >>
> > >>>around in tv_play.cpp and tv_rec.cpp
> > >>
> > >>You'll want to look in
> > >>programs/mythbackend/scheduler.cpp, as that
> > >>determines 
> > >>what gets scheduled where.
> > >>
> > >>Isaac
> > 
> > > _______________________________________________
> > mythtv-dev mailing list
> > mythtv-dev at mythtv.org
> >
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the mythtv-dev mailing list