Author: duncan
Date: Sun May  6 17:04:43 2007
New Revision: 9550

Modified:
   branches/rel-1/freevo/freevo_config.py
   branches/rel-1/freevo/src/video/plugins/mplayer.py
   branches/rel-1/freevo/src/video/videoitem.py

Log:
[ 1713801 ] XVMC/Interlaced Video Configuration
Patch from Jim Torelli applied


Modified: branches/rel-1/freevo/freevo_config.py
==============================================================================
--- branches/rel-1/freevo/freevo_config.py      (original)
+++ branches/rel-1/freevo/freevo_config.py      Sun May  6 17:04:43 2007
@@ -1920,3 +1920,9 @@
 MPLAYER_DEBUG = 0
 
 TIME_DEBUG = 0
+
+# Instruct player to use XVMC for playback
+USE_XVMC = 0
+
+# Pass field dominance paramenter to MPlayer
+FIELD_DOMINANCE = 0

Modified: branches/rel-1/freevo/src/video/plugins/mplayer.py
==============================================================================
--- branches/rel-1/freevo/src/video/plugins/mplayer.py  (original)
+++ branches/rel-1/freevo/src/video/plugins/mplayer.py  Sun May  6 17:04:43 2007
@@ -141,12 +141,12 @@
             return '%s\nnot found' % os.path.basename(url)
        
         set_vcodec = False
-        if item['xvmc'] and item['type'][:6] in ['MPEG-1','MPEG-2']:
+        if item['xvmc'] and item['type'][:6] in ['MPEG-1','MPEG-2','MPEG-T']:
             set_vcodec = True
 
         # Build the MPlayer command
         command = [ '--prio=%s' % config.MPLAYER_NICE, config.MPLAYER_CMD ]
-        command += [ '-slave', ]
+        command += [ '-slave' ]
         command += config.MPLAYER_ARGS_DEF.split(' ')
         command += [ '-ao'] + config.MPLAYER_AO_DEV.split(' ')
 

Modified: branches/rel-1/freevo/src/video/videoitem.py
==============================================================================
--- branches/rel-1/freevo/src/video/videoitem.py        (original)
+++ branches/rel-1/freevo/src/video/videoitem.py        Sun May  6 17:04:43 2007
@@ -52,8 +52,7 @@
 class VideoItem(Item):
 
     def __init__(self, url, parent, info=None, parse=True):
-        #self.autovars = [ ('deinterlace', 0), ('xvmc', config.USE_XVMC), 
('field-dominance', config.FIELD_DOMINANCE) ]
-        self.autovars = [ ('deinterlace', 0), ('xvmc', 0), ('field-dominance', 
0) ]
+        self.autovars = [ ('deinterlace', 0), ('xvmc', config.USE_XVMC), 
('field-dominance', config.FIELD_DOMINANCE) ]
         Item.__init__(self, parent)
 
         self.type = 'video'
@@ -175,8 +174,7 @@
                self.image = image
                self.files.image = image
 
-        if config.VIDEO_INTERLACING and self.info['interlaced'] \
-               and not self['deinterlace']:
+        if config.VIDEO_INTERLACING and self.info['interlaced']:
             # force deinterlacing
             self['deinterlace'] = 1
         else:

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to