[mythtv] New profile group bugs

Geoffrey Hausheer ou401cru02 at sneakemail.com
Sun Oct 26 21:48:51 EST 2003


Okay, I'll look at it again.  I guess I missed that last step.

You do know that hitting 'd' from the profile-group menu lets you delete
profile groups, so you don't need to delete profiles and groups manually,
right?

Can you try 
delete from recordingprofiles where profile = '0'
See if it gets re-created, or if the behaviour is better once it is gone?

.Geoff

On Sun, 26 Oct 2003 17:18:30 -0800, "Bruce Markey bjm-at-lvcm.com
|mythtv/1.0-Allow|" <2obvhk58d70t at sneakemail.com> said:
> Geoffrey Hausheer wrote:
> > I'll look into this.  I don't think it'll be hard to 
> 
> Thanks. "cmisip" reported his problems with creating groups
> on the myth-users list. I saw the problem and was hoping to
> facilitate by defining the reproducable steps. Don't shoot
> the messanger ;-)
> 
> > On Sun, 26 Oct 2003 12:20:31 -0800, "Bruce Markey bjm-at-lvcm.com
> > |mythtv/1.0-Allow|" <2obvhk58d70t at sneakemail.com> said:
> > 
> >>I think there are two bugs here. First, if the list of profiles
> >>should be presented immediately after a new profile group is
> >>created, the group name and profile names need to be set properly.
> >>However, I believe that clicking "Finish" from the group creation
> >>page should go back up to the list of groups then the user should
> >>select the newly created group name to edit the profiles.
> > 
> > If the new group is created successfuly, we should go directly to the
> > profile-editor window, otherwise, we'll return to the profile-group
> > window.
> 
> I think that would be okay...
> 
> > I just tried this on my box, and it behaves correctly (I create
> > a profile called 'test', and it shows me the 4 profiles (Default,
> > LowQ,HighQ,TV).  The profile-group name 'test' shows up correctly at the
> > top of my screen.
> 
> And I see the same thing 8-). The problem is in the next step
> when you try to edit one of these profiles:
> 
> "Press enter. The page title says "test->Profile" and the
> "Profile name:" field is blank. (I'm not sure what would happen
> if params were set at this point)."
> 
> Appearantly "cmisip" did try to set these profiles but it
> appears that all the recordingprofiles.profilegroup values
> got set to "0".
> 
> 
> >>Second, the group creation page should not appear when selecting
> >>a custom group. It should go to the list of profiles just like the
> >>pre-defined profile group names.
> > 
> > Nope, this is intentional.  Custom groups can be modified to belong to
> > different hosts.  It is just a click-through.  On my system, clicking
> > 'test(hostname)' shows 'test' in the 'Profile Group Name' field.  Hitting
> > enter again brings up the profile list (again, wuth 'test' as the name at
> > the top of the screen).
> 
> For both cmisip and myself, "Finish" went back up to the list
> of profile groups.
> 
> > There are two poossibilities here:
> > 1) I am not running the latest CVS code, so perhaps someone mucked with
> > something that inadvertantly screwed up the profile groups
> > 
> > 2) Something in your setup is hosed.
> > 
> > I can test (1) by updating and rebuilding.  If I still can't reproduce
> > it, then I'd need to see what is in your DB for the profiles and
> > profile-groups.  If I can reproduce, I'll fix it and send a patch.
> > 
> > ....
> > 
> > Okay, I just updated my CVS, and I can't reproduce any of the issues you
> > are seeing with the latest CVS.  can you send the contents of
> > recordingprofiles, profilegroups , and capturecard
> 
> mysql> delete from codecparams where profile > 22;
> Query OK, 0 rows affected (0.00 sec)
> 
> mysql> delete from recordingprofiles where profilegroup > 6;
> Query OK, 0 rows affected (0.00 sec)
> 
> mysql> delete from profilegroups where id > 6;
> Query OK, 0 rows affected (0.00 sec)
> 
> [I create a new group "test" for hostname "moktoo". On the next
> page, I select "Default". The next page has "Profile name:" and
> the box is most certainly blank (I would expect "Default"). I set
> the "Width to 496 to distingush this then accecpt the defaults on
> the remaining pages. I do not set the other 3 profiles and exit
> at this point.
> 
> The group list now includes "test (moktoo)" and I select this. The
> page with group name, card-type and hostname appears. "Finish"
> is highlighted and I press Enter. I am then returned to the list
> of groups without ever seeing the list of profile names for this
> group.]
> 
> mysql> select * from profilegroups;
> +----+----------------------------------------------------------+-----------+------------+----------+
> | id | name                                                     |
> cardtype  | is_default | hostname |
> +----+----------------------------------------------------------+-----------+------------+----------+
> |  1 | Software Encoders (v4l based)                            | V4L    
>   |          1 | NULL     |
> |  2 | MPEG-2 Encoders (PVR-250, PVR-350)                       | MPEG   
>   |          1 | NULL     |
> |  3 | Hardware MJPEG Encoders (Matrox G200-TV, Miro DC10, etc) | MJPEG  
>   |          1 | NULL     |
> |  4 | Hardware HDTV                                            | HDTV   
>   |          1 | NULL     |
> |  5 | Hardware DVB Encoders                                    | DVB    
>   |          1 | NULL     |
> |  6 | Transcoders                                              |
> TRANSCODE |          1 | NULL     |
> | 10 | test                                                     | V4L    
>   |          0 | moktoo   |
> +----+----------------------------------------------------------+-----------+------------+----------+
> 7 rows in set (0.00 sec)
> 
> [The "id" is at 10 because 7-9 were used in previous tests.]
> 
> mysql> select * from recordingprofiles;
> +----+--------------+------------+------------+--------------+
> | id | name         | videocodec | audiocodec | profilegroup |
> +----+--------------+------------+------------+--------------+
> |  1 | Default      | MPEG-4     | MP3        |            1 |
> |  2 | Live TV      | MPEG-4     | MP3        |            1 |
> |  3 | High Quality | MPEG-4     | MP3        |            1 |
> |  4 | Low Quality  | MPEG-4     | MP3        |            1 |
> |  5 | Default      | NULL       | NULL       |            2 |
> |  6 | Live TV      | NULL       | NULL       |            2 |
> |  7 | High Quality | NULL       | NULL       |            2 |
> |  8 | Low Quality  | NULL       | NULL       |            2 |
> |  9 | Default      | NULL       | NULL       |            3 |
> | 10 | Live TV      | NULL       | NULL       |            3 |
> | 11 | High Quality | NULL       | NULL       |            3 |
> | 12 | Low Quality  | NULL       | NULL       |            3 |
> | 13 | Default      | NULL       | NULL       |            4 |
> | 14 | Live TV      | NULL       | NULL       |            4 |
> | 15 | High Quality | NULL       | NULL       |            4 |
> | 16 | Low Quality  | NULL       | NULL       |            4 |
> | 17 | Default      | NULL       | NULL       |            5 |
> | 18 | Live TV      | NULL       | NULL       |            5 |
> | 19 | High Quality | NULL       | NULL       |            5 |
> | 20 | Low Quality  | NULL       | NULL       |            5 |
> | 21 | RTjpeg/MPEG4 | NULL       | NULL       |            6 |
> | 22 | MPEG2        | NULL       | NULL       |            6 |
> | 37 | High Quality | NULL       | NULL       |           10 |
> | 35 | Default      | NULL       | NULL       |           10 |
> | 36 | Live TV      | NULL       | NULL       |           10 |
> | 38 | Low Quality  | NULL       | NULL       |           10 |
> | 39 | NULL         | RTjpeg     | MP3        |            0 |
> +----+--------------+------------+------------+--------------+
> 27 rows in set (0.01 sec)
> 
> [Note that recordingprofile 39 has profilegroup "0"! The "Default"
> that I should have been editing for this new group is 35.]
> 
> mysql> select * from codecparams where profile > 22;
> +---------+--------------------------+-----------+
> | profile | name                     | value     |
> +---------+--------------------------+-----------+
> |      39 | mpeg2audvolume           | 90        |
> |      39 | mpeg2audbitratel2        | 384       |
> |      39 | mpeg2audbitratel1        | 448       |
> |      39 | mpeg2audtype             | Layer II  |
> |      39 | mp3quality               | 7         |
> |      39 | samplerate               | 32000     |
> |      39 | mpeg2maxbitrate          | 6000      |
> |      39 | mpeg2bitrate             | 4500      |
> |      39 | mpeg2aspectratio         | 4:3       |
> |      39 | mpeg2streamtype          | MPEG-2 PS |
> |      39 | hardwaremjpegvdecimation | 4         |
> |      39 | hardwaremjpeghdecimation | 4         |
> |      39 | hardwaremjpegquality     | 100       |
> |      39 | mpeg4option4mv           | 0         |
> |      39 | mpeg4optionvhq           | 0         |
> |      39 | mpeg4scalebitrate        | 1         |
> |      39 | mpeg4qualdiff            | 3         |
> |      39 | mpeg4minquality          | 15        |
> |      39 | mpeg4maxquality          | 2         |
> |      39 | mpeg4bitrate             | 2200      |
> |      39 | rtjpegchromafilter       | 0         |
> |      39 | rtjpeglumafilter         | 0         |
> |      39 | rtjpegquality            | 170       |
> |      39 | height                   | 480       |
> |      39 | width                    | 496       |
> |      39 | autotranscode            | 0         |
> +---------+--------------------------+-----------+
> 26 rows in set (0.00 sec)
> 
> [width=496. This is the profile I edited but profile 39
> is profilegroup 0 rather than profile 35 in profilegroup 10.]
> 
> [Next, I select "test (moktoo)" again. This time I modify
> the name to be "test1" then select "Finish". This time I am
> shown the list of profiles
> 
> 	High Quality
> 	Default
> 	Live TV
> 	Low Quality
> 
> exactly in that order. I select Default and set the width to
> "512" then accept all the defaults. This time 35 is correctly
> edited.]
> 
> 
> mysql> select * from profilegroups;
> +----+----------------------------------------------------------+-----------+------------+----------+
> | id | name                                                     |
> cardtype  | is_default | hostname |
> +----+----------------------------------------------------------+-----------+------------+----------+
> |  1 | Software Encoders (v4l based)                            | V4L    
>   |          1 | NULL     |
> |  2 | MPEG-2 Encoders (PVR-250, PVR-350)                       | MPEG   
>   |          1 | NULL     |
> |  3 | Hardware MJPEG Encoders (Matrox G200-TV, Miro DC10, etc) | MJPEG  
>   |          1 | NULL     |
> |  4 | Hardware HDTV                                            | HDTV   
>   |          1 | NULL     |
> |  5 | Hardware DVB Encoders                                    | DVB    
>   |          1 | NULL     |
> |  6 | Transcoders                                              |
> TRANSCODE |          1 | NULL     |
> | 10 | test1                                                    | V4L    
>   |          0 | moktoo   |
> +----+----------------------------------------------------------+-----------+------------+----------+
> 7 rows in set (0.00 sec)
> 
> mysql> select * from recordingprofiles;
> +----+--------------+------------+------------+--------------+
> | id | name         | videocodec | audiocodec | profilegroup |
> +----+--------------+------------+------------+--------------+
> |  1 | Default      | MPEG-4     | MP3        |            1 |
> |  2 | Live TV      | MPEG-4     | MP3        |            1 |
> |  3 | High Quality | MPEG-4     | MP3        |            1 |
> |  4 | Low Quality  | MPEG-4     | MP3        |            1 |
> |  5 | Default      | NULL       | NULL       |            2 |
> |  6 | Live TV      | NULL       | NULL       |            2 |
> |  7 | High Quality | NULL       | NULL       |            2 |
> |  8 | Low Quality  | NULL       | NULL       |            2 |
> |  9 | Default      | NULL       | NULL       |            3 |
> | 10 | Live TV      | NULL       | NULL       |            3 |
> | 11 | High Quality | NULL       | NULL       |            3 |
> | 12 | Low Quality  | NULL       | NULL       |            3 |
> | 13 | Default      | NULL       | NULL       |            4 |
> | 14 | Live TV      | NULL       | NULL       |            4 |
> | 15 | High Quality | NULL       | NULL       |            4 |
> | 16 | Low Quality  | NULL       | NULL       |            4 |
> | 17 | Default      | NULL       | NULL       |            5 |
> | 18 | Live TV      | NULL       | NULL       |            5 |
> | 19 | High Quality | NULL       | NULL       |            5 |
> | 20 | Low Quality  | NULL       | NULL       |            5 |
> | 21 | RTjpeg/MPEG4 | NULL       | NULL       |            6 |
> | 22 | MPEG2        | NULL       | NULL       |            6 |
> | 37 | High Quality | NULL       | NULL       |           10 |
> | 35 | Default      | RTjpeg     | MP3        |           10 |
> | 36 | Live TV      | NULL       | NULL       |           10 |
> | 38 | Low Quality  | NULL       | NULL       |           10 |
> | 39 | NULL         | RTjpeg     | MP3        |            0 |
> +----+--------------+------------+------------+--------------+
> 27 rows in set (0.01 sec)
> 
> mysql> select * from codecparams where profile > 22;
> +---------+--------------------------+-----------+
> | profile | name                     | value     |
> +---------+--------------------------+-----------+
> |      35 | hardwaremjpegquality     | 100       |
> |      35 | mpeg4option4mv           | 0         |
> |      35 | mpeg4optionvhq           | 0         |
> |      35 | mpeg4scalebitrate        | 1         |
> |      35 | mpeg4qualdiff            | 3         |
> |      35 | mpeg4minquality          | 15        |
> |      35 | mpeg4maxquality          | 2         |
> |      35 | mpeg4bitrate             | 2200      |
> |      35 | rtjpegchromafilter       | 0         |
> |      35 | rtjpeglumafilter         | 0         |
> |      35 | rtjpegquality            | 170       |
> |      35 | height                   | 480       |
> |      35 | width                    | 512       |
> |      35 | autotranscode            | 0         |
> |      39 | mpeg2audvolume           | 90        |
> |      39 | mpeg2audbitratel2        | 384       |
> |      39 | mpeg2audbitratel1        | 448       |
> |      39 | mpeg2audtype             | Layer II  |
> |      39 | mp3quality               | 7         |
> |      39 | samplerate               | 32000     |
> |      39 | mpeg2maxbitrate          | 6000      |
> |      39 | mpeg2bitrate             | 4500      |
> |      39 | mpeg2aspectratio         | 4:3       |
> |      39 | mpeg2streamtype          | MPEG-2 PS |
> |      39 | hardwaremjpegvdecimation | 4         |
> |      39 | hardwaremjpeghdecimation | 4         |
> |      39 | hardwaremjpegquality     | 100       |
> |      39 | mpeg4option4mv           | 0         |
> |      39 | mpeg4optionvhq           | 0         |
> |      39 | mpeg4scalebitrate        | 1         |
> |      39 | mpeg4qualdiff            | 3         |
> |      39 | mpeg4minquality          | 15        |
> |      39 | mpeg4maxquality          | 2         |
> |      39 | mpeg4bitrate             | 2200      |
> |      39 | rtjpegchromafilter       | 0         |
> |      39 | rtjpeglumafilter         | 0         |
> |      39 | rtjpegquality            | 170       |
> |      39 | height                   | 480       |
> |      39 | width                    | 496       |
> |      39 | autotranscode            | 0         |
> |      35 | hardwaremjpeghdecimation | 4         |
> |      35 | hardwaremjpegvdecimation | 4         |
> |      35 | mpeg2streamtype          | MPEG-2 PS |
> |      35 | mpeg2aspectratio         | 4:3       |
> |      35 | mpeg2bitrate             | 4500      |
> |      35 | mpeg2maxbitrate          | 6000      |
> |      35 | samplerate               | 32000     |
> |      35 | mp3quality               | 7         |
> |      35 | mpeg2audtype             | Layer II  |
> |      35 | mpeg2audbitratel1        | 448       |
> |      35 | mpeg2audbitratel2        | 384       |
> |      35 | mpeg2audvolume           | 90        |
> +---------+--------------------------+-----------+
> 52 rows in set (0.01 sec)
> 
> --  bjm
> 
> 


More information about the mythtv-dev mailing list