[MPlayer-users] Little patch (or hack?) to play deinterlaced DVDs from gmplayer

Guillaume Pratte koijur at altern.org
Sun Feb 2 18:25:20 CET 2003


Hello,

I am sharing this little patch I use with gmplayer to be able to play DVDs 
deinterlaced. I have no intent to propose this for official inclusion into 
mplayer, but it may be usefull to others.

Diff is made against latest CVS version.

$ cvs diff Gui/interface.c
Index: Gui/interface.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/interface.c,v
retrieving revision 1.77
diff -u -3 -p -r1.77 interface.c
--- Gui/interface.c     1 Feb 2003 16:41:39 -0000       1.77
+++ Gui/interface.c     2 Feb 2003 17:28:16 -0000
@@ -722,7 +722,13 @@ int guiGetEvent( int type,char * arg )
         }
 #endif
 // ---
-       if ( gtkVopPP ) add_vop( "pp" );
+       if ( gtkVopPP ) {
+               if ( STREAMTYPE_DVD == guiIntfStruct.StreamType ) {
+                       add_vop( "pp=lb" );
+               } else {
+                       add_vop( "pp" );
+               }
+       }
         else remove_vop( "pp" );

If you have post processing enabled in the preferences of gmplayer, the linear 
blend filter (lb) will be loaded when DVDs are played.

--
Guillaume Pratte
http://www.soireevideo.org/



More information about the MPlayer-users mailing list