Record more than 45 seconds of audio or video on the XO - OPLC laptop

Brian has a new OLPC, so that means he's going to be hacking it a lot... He writes -


240Seconds

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.

Hackszine.com: Record more than 45 seconds of audio or video on the XO laptop - Link.


Recent Entries

Leave a comment


Subscribe to MAKE!Subscribe to MAKE Magazine!

Subscribe today, save 42% and get web access to MAKE free. MAKE Digital Edition is available only to subscribers.

$34.95 / 1 year
(4 Quarterly Issues)

Subscribe now


Void your warranty, violate a user agreement, fry a circuit, blow a fuse, poke an eye out. Make: The risk-takers, the doers, the makers of things... Welcome to Make: Online!


CRAFT Maker Shed Maker Faire MAKE television




Check out more videos from MAKE.

MZ_Jameco-RobotBuild_RR.gif
MZ_DIYMovieMaking-RR.gif
Maker SHED

Connect with MAKE

Be a MAKE fan on Facebook MAKE on Facebook
Visit our Facebook page and become a fan of MAKE!
MAKE on Twitter MAKE on Twitter
Follow our MAKE tweets!
MAKE Flickr Pool MAKE on Flickr
Join our MAKE Flickr Pool!
    make_tips on Twitter



    MAKE Archives

    Make: Money

    Make: Science Room
    Subscribe to MAKE Magazine!

    Make: Online editors and authors!

    Gareth BranwynGareth Branwyn
    Editor-in-Chief


    Phillip TorronePhillip Torrone
    Senior Editor
    | Web | Twitter


    Becky SternBecky Stern
    Associate Editor
    | AIM | Twitter


    Marc de VinckMarc de Vinck
    Contributing Writer
    | AIM | Twitter


    John ParkJohn Park
    Contributing Writer
    | Twitter


    Sean RaganSean Ragan
    Contributing Writer
    | Twitter


    Matt MetsMatt Mets
    Contributing Writer
    | AIM | Twitter


    Dale DoughertyDale Dougherty
    Editor & Publisher
    | Twitter


    Shawn ConnallyShawn Connally
    Managing Editor
    | Twitter


    Goli MohammadiGoli Mohammadi
    Associate Managing Editor

    Kip KayKip Kay
    Weekend Projects
    | AIM | Twitter


    Collin CunninghamCollin Cunningham
    Contributing Writer
    | AIM | Twitter

    Adam FlahertyAdam Flaherty
    Contributing Writer
    | AIM | Twitter


    John BaichtalJohn Baichtal
    Contributing Writer
    | AIM | Twitter



    More contributors: Mark Frauenfelder (Editor-in-Chief, MAKE magazine), Kipp Bradford (Technical Consultant/Writer), Chris Connors (Education), Diana Eng (Guest Author), Peter Horvath (Intern), Brian Jepson (O'Reilly Media), Robert Bruce Thompson (Science Room)

    Suggest a Site!

    Advertise here with FM.

    Why advertise on MAKE?
    Read what folks are saying about us!

    Click here to advertise on MAKE!



    Current Podcast

    itunesdl.gif John Park in the Maker Shed: tinyCylon kit build They let me loose in the Maker Shed, so I grabbed a tinyCylon Kit, built it, and embedded it in a busted Nerf gun! More...

    Get the Make: Online sent via email
    Enter your email to receive Make: Online each day:



    Sign up for the Make: Newsletter

    Our Make: Newsletter covers news from maker Media, has original columns, Shed deals, and more! You can also read the archives of past issues.


     



    MAKE Fascination video series brought to you by Dow

    Make: Education
    MAKE: en EspaƱol MAKE: Japan
    Important please read


    Subscribe to MAKE Magazine!

    Recent Posts from the Craft: Blog