Record more than 45 seconds of audio or video on the XO laptop
If you go into the Record activity on the XO laptop, you'll find that you can only record a maximum of 45 seconds of video and audio. But since almost everything in this little green wonder is written in Python, it's very easy to fix this. Open up the Terminal activity, cd to /usr/share/activities/Record.activity, and then use su to become root:
$ cd /usr/share/activities/Record.activity $ su #
Now, make a backup copy of constants.py:
# cp constants.py constants.py.orig
Open constants.py in vi, and look for these lines:
DURATION_15 = 15 DURATION_30 = 30 DURATION_45 = 45
Add the following line right after the DURATION_45 line (you can put whatever you want instead of 240--this is the number of seconds):
DURATION_240 =240
Next, find these lines:
DURATIONS.append(DURATION_15) DURATIONS.append(DURATION_30) DURATIONS.append(DURATION_45)
And add the following line right after the DURATION_45 line:
DURATIONS.append(DURATION_240)
Stop the Record activity if it's already running, restart it, and you'll now have an option to record for more than 45 seconds.
Posted by Brian Jepson |
Dec 19, 2007 05:05 PM
Education, Linux, olpc |
Permalink
| Comments (1)
Recent Entries
Bloggers
Welcome to the Hacks Blog!
Categories
- Ajax
- Amazon
- AppleTV
- Astronomy
- BlackBerry
- Blogging
- Body
- Cars
- Cryptography
- Data
- Education
- Electronics
- Energy
- Events
- Excel
- Excerpts
- Firefox
- Flash
- Flickr
- Flying Things
- Food
- Gaming
- Gmail
- Google Earth
- Google Maps
- Government
- Greasemonkey
- Hacks Series
- Hackszine Podcast
- Halo
- Hardware
- Home
- Home Theater
- iPhone
- iPod
- IRC
- iTunes
- Java
- Kindle
- Knoppix
- Language
- LEGO
- Life
- Lifehacker
- Linux
- Linux Desktop
- Linux Multimedia
- Linux Server
- Mac
- Mapping
- Math
- Microsoft Office
- Mind
- Mind Performance
- Mobile Phones
- Music
- MySpace
- MySQL
- NetFlix
- Network Security
- olpc
- OpenOffice
- Outdoor
- Parenting
- PDAs
- Perl
- Philosophy
- Photography
- PHP
- Pleo
- Podcast
- Podcasting
- Productivity
- PSP
- Retro Computing
- Retro Gaming
- Science
- Screencasts
- Shopping
- Skype
- Smart Home
- Software Engineering
- Sports
- SQL
- Statistics
- Survival
- TiVo
- Transportation
- Travel
- Ubuntu
- Video
- Virtualization
- Visual Studio
- VoIP
- Web
- Web Site Measurement
- Windows
- Windows Server
- Wireless
- Word
- World
- Xbox
- Yahoo!
- YouTube
Archives
Recent Posts
- Poromenos' hello world curve
- USB CapsLocker and Sun keyboard simulation
- Robosapien has a coil gun
- Faster Windows shutdown
- Assign USB drives to a folder
- Little drummer bot
- CSS ad blocking for Firefox and Safari
- Design Coding: web standards rap
- Shredz64: Guitar Hero for C64
- BATMAN: adhoc mesh routing
www.flickr.com
|





Leave a comment