[mythtv] How to edit the gui? (And some profile related stuff)
ijr at po.cwru.edu
Tue Sep 9 17:51:07 EDT 2003
On Tuesday 09 September 2003 04:33 pm, Bruce Markey wrote:
> I don't think hostname is a relevant distinction. Recordid
> clearly isn't the right answer and sourceid and cardinput
> aren't the right thing either (if I had both coax and s-video
> into a PVR and into a bttv card I wouldn't want to distinguish
> codecparams per cardinput). I think cardid is the right
> distinction. If card 1 is a PVR and cards 2 and 3 are bttv
> the codecparams should be associated with the cardid
> regardless of the hostname, sourceid, show title, or ranking.
Fast machine with bttv and slow machine with bttv. Need to distinguish
between them.. I don't see a need to associate different profiles with
similar type cards on the same machine, is what I was getting at.
> > Hmm.. it'd probably be easier to enumerate the available hosts
> > (and card types per host) and allow the user to select a default profile
> > group or set it autodetect. Be really similar to the capture card input
> > mapping screen in setup, that way.
> I had suggested before that the groups should be created on
> the recording profile page. Upon further review this clearly
> belongs in the backend setup. I was thinking that there could
> be a spinbox under step 2 "Capture Cards" to declare the card
> type. But, hey, it's already there! 'capturecard.cardtype' plus
> 'record.profile' could be used to determine 'codecparams.profile'.
Well, yes, that's what I meant by 'have it autoselect' between the existing
> So, clear the white board. Proposal for a simple but effective
> solution for profiles with multiple card types:
> 1) Use the existing cardtype selected in setup step 2. Additional
> cardtypes could be added as needed otherwise no code changes here.
> 2) Add a table to map 'capturecard.cardtype' plus 'record.profile'
> to specific 'codecparams.profile' numbers.
Don't really need this, since we can do it in the source just as easily..
> 3) Modify the top page of TV-Settings->Recording to remove
> "(Create new profile)" and show the four predefined profile names
> for each unique value in 'capturecard.cardtype'. For most people
> this would show four lines but there would be eight lines if
> you had two card types. Codecparams would need to be initialized
> if a new cardtype appears.
I think a better way would be to add a top level list with the various groups,
and the ability to add a new group (and define a type (bttv, pvr), and
optionally associate it with backends) there, and then have that drill down
to a screen similar to what you describe, but with only the 4 recording
levels for that profile shown.
More information about the mythtv-dev