Update of /cvsroot/freevo/freevo/src/tv/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv12918/src/tv/plugins

Modified Files:
        ivtv_record.py 
Log Message:
Further suport for ivtv based cards.  Now you can set the bitrate to encode at or the 
stream type to use.


Index: ivtv_record.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/plugins/ivtv_record.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ivtv_record.py      29 May 2003 12:08:46 -0000      1.2
--- ivtv_record.py      1 Jun 2003 16:05:40 -0000       1.3
***************
*** 11,14 ****
--- 11,17 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.3  2003/06/01 16:05:40  rshortt
+ # Further suport for ivtv based cards.  Now you can set the bitrate to encode at or 
the stream type to use.
+ #
  # Revision 1.2  2003/05/29 12:08:46  rshortt
  # Make sure we close the device when done.
***************
*** 48,52 ****
  
  import config
! import tv_util, v4l2
  import childapp 
  import plugin 
--- 51,55 ----
  
  import config
! import tv_util, ivtv
  import childapp 
  import plugin 
***************
*** 123,127 ****
                  v_norm = string.upper(v_norm)
  
!                 v = v4l2.Videodev(v_dev)
  
                  print 'Setting chanlist to %s' % v_clist
--- 126,131 ----
                  v_norm = string.upper(v_norm)
  
!                 # v = v4l2.Videodev(v_dev)
!                 v = ivtv.IVTV(v_dev)
  
                  print 'Setting chanlist to %s' % v_clist
***************
*** 160,167 ****
                  print "Read Frequency: %i" % v.getfreq()
  
                  now = time.time()
                  stop = now + self.prog.rec_duration
  
!                 v_in  = open('/dev/video0', 'r')
                  v_out = open(video_save_file, 'w')
  
--- 164,182 ----
                  print "Read Frequency: %i" % v.getfreq()
  
+                 codec = v.getCodecInfo()
+                 codec.bitrate = config.IVTV_BITRATE
+                 codec.bitrate_peak = config.IVTV_BITRATE + 1
+                 codec.stream_type = config.IVTV_STREAM_TYPE
+ 
+                 v.setCodecInfo(codec)
+                 codec = v.getCodecInfo()
+                 print 'CODEC::bitrate: %s' % codec.bitrate
+                 print 'CODEC::bitrate_peak: %s' % codec.bitrate_peak
+                 print 'CODEC::stream_type: %s' % codec.stream_type
+ 
                  now = time.time()
                  stop = now + self.prog.rec_duration
  
!                 v_in  = open(v_dev, 'r')
                  v_out = open(video_save_file, 'w')
  




-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to