[mythtv] Re: Yet more on Teletext

Martin Moeller martin at martinm-76.dk
Sat Jul 26 20:45:43 EDT 2003


lør, 2003-07-26 kl. 19:28 skrev Michael Greb:
[request for feedback on different size CC/teletext fonts]
> Martin Moeller said:
> > I think I know why TV Avisen was crunched and Hit med Sangen was okay.
> > It seems the font size is calculated based on the recorded resolution of
> > the program.
> >
> > Isn't the OSD/Captioning done *after* the video has been scaled to fit
> > the TV/Monitor and if so, why use the videos resolution in stead of the
> > TV/Monitor's?
> >
> > It captioning is actually done before the scaling then shouldn't the
> > text be more pixelated and not just smaller?
> >
> > Have anyone experienced similar scenarios recording at different
> > resolutions with closed captioning?
> I have experienced a similar condition with closed captioning.  However,
> in my situation the shows were recording with the same recording profile. 
> It hasn't been a fluke, the same shows seem to be consistently large or
> small.  This perplexed me some as I have never seen TV's change the size. 
> I didn't try to look into it very much, just thought it was an oddity and
> dismissed it.  I'm sure someone out there could fill both of us in a bit
> better as to what is happening.
> 
> Incidentally, I have enjoyed your frequent status updates :-)
> 
> Michael
Thanks :)

I have found that changing fontsize in SetDefaults in osd.cpp gives me
the setup I wanted (but whether it fits Isaacs line of though will have
to be seen). 

The value 480 is frequently used as is 640 and my 'good' show was
recorded as 480x480, so I decided to try this:

martin at monsterpc:~/mythtv/mythtv/libs/libmythtv> cvs diff -u osd.cpp
Index: osd.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/osd.cpp,v
retrieving revision 1.69
diff -u -r1.69 osd.cpp
--- osd.cpp     23 Jul 2003 19:58:27 -0000      1.69
+++ osd.cpp     26 Jul 2003 17:40:52 -0000
@@ -101,7 +101,8 @@
     if (!ccfont)
     {
         QString name = "cc_font";
-        int fontsize = vid_height / 27;
+//        int fontsize = vid_height / 27;
+        int fontsize = 480 / 27;
         fontsize = (int)(fontsize * hmult);

         ccfont = LoadFont(ccfontname, fontsize);

... And it works for me. I haven't seen any ill effects on any other OSD
fonts from doing this. It would seem to me that this is as it should be
and most people haven't noticed since they record at higher (i.e. about
480) resolutions than I usually do.

If you feel brave Michael, do you care to try out the above change and
see if the fonts are now always the same size?

/Martin.
-- 
Martin Moeller <martin at martinm-76.dk>



More information about the mythtv-dev mailing list