Update of /cvsroot/freevo/freevo/src/record/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16825/src/record/plugins

Modified Files:
        ivtv_record.py 
Log Message:
Clean comments and add one.


Index: ivtv_record.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/record/plugins/ivtv_record.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ivtv_record.py      8 Aug 2004 19:07:08 -0000       1.2
--- ivtv_record.py      9 Aug 2004 11:58:15 -0000       1.3
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.3  2004/08/09 11:58:15  rshortt
+ # Clean comments and add one.
+ #
  # Revision 1.2  2004/08/08 19:07:08  rshortt
  # The first new recording plugin:
***************
*** 18,54 ****
  # -Will handle recordings on multiple devices.
  #
- # Revision 1.1  2004/08/05 17:35:40  dischi
- # move recordserver and plugins into extra dir
- #
- # Revision 1.28  2004/07/26 18:10:19  dischi
- # move global event handling to eventhandler.py
- #
- # Revision 1.27  2004/07/10 12:33:42  dischi
- # header cleanup
- #
- # Revision 1.26  2004/06/28 18:23:34  rshortt
- # I guess this shouldn't be in here since its back in recordserver.
- #
- # Revision 1.25  2004/06/23 19:07:05  outlyer
- # The snapshot in the event doesn't work. I've tried it numerous times, and it
- # is being killed before completing.
- #
- # Did no one else actually try this change?
- #
- # Revision 1.24  2004/06/22 01:05:51  rshortt
- # Get the filename from tv_util.getProgFilename().
- #
- # Revision 1.23  2004/06/10 02:32:17  rshortt
- # Add RECORD_START/STOP events along with VCR_PRE/POST_REC commands.
- #
- # Revision 1.22  2004/06/07 16:46:00  rshortt
- # Didn't mean to add partial support for multiple recording plugins yet.
- #
- # Revision 1.21  2004/06/07 16:10:51  rshortt
- # Change 'RECORD' to plugin.RECORD.
- #
- # Revision 1.20  2004/05/28 01:48:22  outlyer
- # Florian Demmer's patch for consecutive recordings and a patch to move the
- # snapshot to after we set the flag to idle, just to be safe.
  #
  # -----------------------------------------------------------------------
--- 21,24 ----
***************
*** 93,98 ****
  DEBUG = config.DEBUG
  
  CHUNKSIZE = 65536
! #CHUNKSIZE = 450000
  
  class IVTVRecordSession:
--- 63,74 ----
  DEBUG = config.DEBUG
  
+ # XXX:  Calculate CHUNKSIZE based on the configured ivtv bitrate/max bitrate
+ #       and the poll_interval of the plugin.  The size of the ivtv encoding 
+ #       buffer (in the driver or card) does matter here.  If we don't read
+ #       enough data on each poll() it will overflow, if we read too much the
+ #       plugin will block for too long.  The value of 65536 is working quite
+ #       well for me with a constant bitrate of 4.5 Mb/sec and 0.1 sec poll().
  CHUNKSIZE = 65536
! 
  
  class IVTVRecordSession:
***************
*** 111,115 ****
                  
          elif self.mode == 'stop':
-             # do stopping stuff
              self.v_in.close()
              self.v_out.close()
--- 87,90 ----
***************
*** 157,161 ****
  
              buf = self.v_in.read(CHUNKSIZE)
-             #buf = self.v_in.read()
              self.v_out.write(buf)
  
--- 132,135 ----



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to