I use an nVidia TV-Out card (a cheap one) on my freevo box.  I had
been running at 800x600, but that's no good if you're dealing with
playback of NTSC interlaced video.  So I set myself to work to improve
this.
        
After a couple of days of trying different things, here's what I've
come up with.  My freevo is from CVS earlier in the week.

1. Set up a 720x480 TV mode.  I haven't tweaked the size of this on
   the TV yet.  Remember, the nvidia driver includes a builtin 800x600
   for TV-Out already, and it works in 30-50 / 60. 

      Section "Monitor"

          Identifier "TV-0"
          VendorName "Sony"
          ModelName  "WEGA"

          HorizSync  30-50
          VertRefresh 60

          # 720x480 @ 60 Hz on a TV
          Modeline "720x480" 27.000 720 736 800 856 480 489 495 525 -hsync -vsync

      EndSection

   Also, set the Virtual desktop size to 800x600.  Start up in 800x600
   by default so the freevo skins all fit on the screen.

2. Two tunables in local_conf.py.  No other configured mplayer arguments.

      MPLAYER_ARGS_DEF     = (('-fs -vm -screenw 720 -screenh 480'))
      OSD_STOP_WHEN_PLAYING = 1

   The screenw and screenh are required because X will say that the
   screen is 800x600 (which it _is_) but the display mode is only
   720x480.  So we tell mplayer this.

   We have to turn off the _extra_ freevo OSD or it resets the video
   mode on us.  Some work could probably happen here to tell freevo
   the "playback resolution" and so on, but that's not important to me
   at the moment.
      
3. I set the mplayer audio and video modes system wide for this box in
   /etc/mplayer/mplayer.conf: 

      vo=xv,sdl,x11,  
      ao=oss,

   Otherwise, I guess you'd set them in the usual spots in freevo's
   config. 

4. Disable the mplayer post-processing freevo turns on (this step is
   key, since otherwise playback is jerky and CPU usage doubles from
   ~27% to ~50% on my Athlon 1000 MHz).

Index: ./src/video/plugins/mplayer.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/video/plugins/mplayer.py,v
retrieving revision 1.58
diff -u -p -r1.58 mplayer.py
--- ./src/video/plugins/mplayer.py      13 Jan 2004 15:03:45 -0000
1.58
+++ ./src/video/plugins/mplayer.py      17 Jan 2004 17:12:55 -0000
@@ -245,12 +245,12 @@ class MPlayer:
         if item.selected_audio:
             additional_args += [ '-aid', item.selected_audio ]

-        if self.version >= 1 and item.deinterlace:
-            additional_args += [ '-vf',  'pp=de/fd' ]
-        elif item.deinterlace:
-            additional_args += [ '-vop', 'pp=fd' ]
-        elif self.version >= 1:
-            additional_args += [ '-vf',  'pp=de' ]
+#        if self.version >= 1 and item.deinterlace:
+#            additional_args += [ '-vf',  'pp=de/fd' ]
+#        elif item.deinterlace:
+#            additional_args += [ '-vop', 'pp=fd' ]
+#        elif self.version >= 1:
+#            additional_args += [ '-vf',  'pp=de' ]

         mode = item.mimetype
         if not config.MPLAYER_ARGS.has_key(mode):

I suggest that step 4 become an option in the config.

After doing this, I get nVidia 720x480 NTSC output with perfect
interlace handling (i.e. by the TV) and it is as smooth as silk.  All
of the OSD driven by mplayer works (so no volume indicator).  Perhaps
if OSD_STOP_WHEN_PLAYING is on, it should use mplayer strings instead
of freevo fonts?

One tiny thing.. Very rarely, mplayer fails to get the video mode.  I
think that's a timing issue or nvidia driver problem, but I have only
seen it under freevo (and I've run it outside freevo like 1000 times).

Thanks to Rob Shortt for his assistance during all of this.

-- 
----------------------------------------------------------------
Brad Spencer - [EMAIL PROTECTED] - "It's quite nice..."
"S.M.A.K.I.B.B.F.B." - A.J. Rimmer | http://jacknife.org/


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to