[mythtv] [Preliminary patch[ Add profile groups

Geoffrey Hausheer ou401cru02 at sneakemail.com
Thu Sep 11 11:33:57 EDT 2003


In case anyone was wondering, here are the results of my efforts at
building profile groups.  This patch is not quite ready yet, but I
thought I'd get it out there, and see if anyone has any suggestions.

What works:
The patch appears to be fully functional.  As far as I can tell, normal
recording works as it should.
The User interface changes are mostly complete
A card can only exist in one profile-group
A card which is already in the current group is marked with a '*'
profile groups that have cards associated with them are marked 'IN USE'
(I should probably swap this, and make unused groups marked 'EMPTY')
There are 4 profiles (Default, Live TV, Low-Quality, High-Quality). 
These can be easily changed by modifying availProfiles in
recordingprofile.cpp (but if you change Default or Live TV, other things
need to be changed too)

What needs to be done:
Transcoding is broken.  I havn't given any thought as to how to fix it
yet, but it shouldn't be too hard to fix.

The database-update is very poor.  I can't figure out a way to clone the
current profiles, so I just delete them all.  You'll need to re-define
all of your profiles.  If anyone has ideas for mysql magic to do a better
job, I'm open to suggestions.

There is basically no error checking in the current code.  It should work
fine if everything is set up correctly, but if a card isn't associated
with a profile, or a profile group doesn't have a required profile, all
bets are off.

There is no way to rename or delete a profile-group (and the profiles
associated with it)

The card-chooser will be perfectly happy to allow you to put an MPEG2 and
bttv card in the same group.  Thi shouldn't be allowed.

When creating the new profiles, we should automatically choose a relevant
encoding type (MPEG2, MJPEG, etc) based on the cards in the group.  There
should be some way to update them if the cards in the group change type.
 
The code needs to be cleaned up a bit, as this is my first crack at any
significant GUI changes, I've made a mess.

I'm kinda busy with other stuff at the moment, but I'll try to take care
of most of these issues and submit a new patch this weekend.

Thanks,
.Geoff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: profile1.patch.gz
Type: application/x-gzip
Size: 5633 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20030911/dbbc049b/profile1.patch-0001.bin


More information about the mythtv-dev mailing list