Hi,
I really wanted to watch live TV in freevo with my saa7134 based TV card. I 
made this work with the patch below. In additon, I had to add
        -tv driver=v4l2
to the "tv" section of MPLAYER_ARGS in local_conf.py. I can imagine that this 
should work with other TV cards, too.
Cheers,
        Thorsten 
 

--- freevoCVS/freevo/src/tv/plugins/mplayer.py  2005-08-06 16:50:33.000000000 
+0200
+++ freevosrc/tv/plugins/mplayer.py     2005-08-22 22:17:57.000000000 +0200
@@ -74,10 +74,15 @@
         """
         For now, just handle ivtv and dvb
         """
+        #PFE BEGIN
+        log.debug('MPlayer plugin rating: %s' % device)
         if device.startswith('ivtv'):
             return 2
         if device.startswith('dvb'):
             return 2
+        if device.startswith('tv'):
+            return 2
+        #PFE END
         return 0
 
@@ -105,11 +112,16 @@
                 command += config.MPLAYER_ARGS['ivtv'].split(' ')
             command += [ self.device.vdev ]
 
-        if isinstance(self.device, DVBCard):
+        elif isinstance(self.device, DVBCard):
             if config.MPLAYER_ARGS.has_key('dvb'):
                 command += config.MPLAYER_ARGS['dvb'].split(' ')
             command += [ 'dvb://' + uri ]
-
+        
+        else:
+            if config.MPLAYER_ARGS.has_key('tv'):
+                command += config.MPLAYER_ARGS['tv'].split(' ')
+            command += [ 'tv://' + uri ]
+        #PFE 
         log.info('mplayer.play(): Starting cmd=%s' % command)
 
         self.show()


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to