#4983 NORM Never A: Why is video recording limited to 45 seconds?

Zarro Boogs per Child bugtracker at laptop.org
Fri Nov 16 18:13:52 EST 2007


#4983: Why is video recording limited to 45 seconds?
------------------------------+---------------------------------------------
  Reporter:  cjb              |       Owner:  erikb         
      Type:  defect           |      Status:  new           
  Priority:  normal           |   Milestone:  Never Assigned
 Component:  camera-activity  |     Version:                
Resolution:                   |    Keywords:                
  Verified:  0                |  
------------------------------+---------------------------------------------

Comment(by cjb):

 > We compress afterwards, and need to make sure we have the space to
 compress.

 Right, but my suggestion was that oggenc will return an error *when* it
 runs of diskspace, and that you can catch that error and delete the file
 and this seems like reasonable behavior.

 > What is the best way to query the available disk space / journal space?

 I did this before, for the script that backs up /home on upgrade.  Here's
 the relevant part:

 {{{
     import os, statvfs

     # Then, find size of free space.
     stat = os.statvfs("/home")
     freebytes  = stat[statvfs.F_BSIZE] * stat[statvfs.F_BAVAIL]
     freekb = freebytes / 1024
 }}}

 I don't think we have a more principled way of determing free journal
 space than this yet.

-- 
Ticket URL: <http://dev.laptop.org/ticket/4983#comment:5>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list