ColingoXO: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 19: Line 19:
==Interface description==
==Interface description==


The comboboxes at the top allow one to simply switch the language or select a phrase. Typing some words directly into the phrase box will simply filter out the results. The video bank on the left contains all of the videos which match the filter in the toolbar for language and phrase. It scrolls for easy navigation, and holds up to 15 clips before needing to scroll at all.
The comboboxes at the top allow one to simply switch the language or select a phrase. Typing some words directly into the phrase box will simply filter out the results. The video bank on the left contains all of the videos which match the filter in the [[toolbar]] for language and phrase. It scrolls for easy navigation, and holds up to 15 clips before needing to scroll at all.


The timeline is the main interactive component, since it defines the
The timeline is the main interactive component, since it defines the
dialogue for the session. It is shown as using a standard (not quite
dialogue for the session. It is shown as using a standard (not quite
finished) Tray control, which will automatically provide drag'n'drop
finished) [[Tray control]], which will automatically provide drag'n'drop
support, reordering, paging, and assist in supporting networked
support, reordering, paging, and assist in supporting networked
collaboration on the timeline. This will make it easy for kids to
collaboration on the timeline. This will make it easy for kids to
Line 38: Line 38:
the phrase being spoken during playback.
the phrase being spoken during playback.


==Specifications==
=Specifications=
There are four programmatic arenas we must focus on in developing ColingoXO: how the user interacts with the XO, how one XO interacts with other XOs, how an XO interacts with the XS, and how the XS interacts with the rest of the world. Our primary focus right now is on the user interface on the XO and how the XO interacts with the server. Our secondary focus is on how the XOs interact with one another, and our tertiary focus is on how the XS interacts with the rest of the world.
There are four programmatic arenas we must focus on in developing ColingoXO: how the user interacts with the XO, how one XO interacts with other XOs, how an XO interacts with the XS, and how the XS interacts with the rest of the world. Our primary focus right now is on the user interface on the XO and how the XO interacts with the server. Our secondary focus is on how the XOs interact with one another, and our tertiary focus is on how the XS interacts with the rest of the world.


==Broadly==
===User -> XO===
===User -> XO===
From a programmatic perspective, the interface for the user must:
From a programmatic perspective, the interface for the user must:
Line 72: Line 73:
*XS should be able to pull content (videos) from colingo.org to share with the students.
*XS should be able to pull content (videos) from colingo.org to share with the students.
*XS should be able to share their metadata (ie translations, associations of clips with languages) with one another and colingo.org to build a global decentralized database.
*XS should be able to share their metadata (ie translations, associations of clips with languages) with one another and colingo.org to build a global decentralized database.

==More Specifically==

*The ability for a user to create media clips tagged with metadata
**Taking advantage of the XO's built in video camera and microphone, users will be able to make videos, still photos, or audio recordings. The idea being that each clip would be of a student saying a short phrase.
**The user would be able to tag the clip with information such as the language of the clip, the phrase, translations of that phrase into any other language, creative commons licensing information and information about the creator of the clip.
**The metadata for each clip would be stored in a database on the school servers, as well as Colingo's servers on the internet
*The ability to tag additional translation metadata to clips
**Anybody with access to the library would be able to add additional translation metadata to any clip (similar to dotSub's method for video translation).
*The ability to store and retrieve clips to and from the school server as well as Colingo's servers on the internet.
**ColingoXO will make calls first to the school server to see what clips are available on the local network.
***If a particular clip is requested, the metadata would be sent to the client with XML, and the video would be streamed from the school server
***If a particular clips is not available on the school server, but is available and retrievable from the internet and/or other school servers, the clip would be downloaded to and streamed to the client from the school server.
**Due to the XO's limited storage capacity, clips as well as the Colingos will be stored primarily on the school server.
***If the school server has a connection to the internet, the clips will also be uploaded to Colingo's servers.
*The ability to search the Colingo library for clips as well as Colingos across languages
**The user would be able to enter a phrase or category in a particular language, and specify what language to return associated clips in.
**The school server would be queried and would search through the library for relevant clips, looking first at associated phrases from the metadata, and then using translation tools to return associated clips
***The school server would then query other school servers and the Colingo servers, if they were accessible.
*The ability to use these clips (retrieved clips and locally created clips) to build narratives
**Users would be able to drag/drop clips onto a timeline, creating an interactive playlist
**The integrated video player would playback the mashup of videos
*The ability for multiple XO users on the local mesh network to collaboratively create Colingos
*Users will be able to share clips or mashups with anyone they specify – locally or on the internet, if access is available.


==Activity vs Content Bundle==
==Activity vs Content Bundle==
There are two ways to develop for OLPC:
There are two ways to develop for OLPC:
* Creating an [[activity]]
* Creating an [[activity]]
** ColingoXO is our activity. Activities are robust,[[python]] frameworks that let developers [[record with gStreamer]], create databases with [[SQLite]], etc.
** ColingoXO is our activity. Activities are robust, [[python]] frameworks that enable [[programming the camera]], creating databases with [[SQLite]], etc.
* Creating [[content bundles]].
* Creating [[content bundles]]
** A content bundle is a curated collection of content viewable from the [[library]]. They are limited in functionality and primarily intedended to house content.
** A content bundle is a curated collection of content viewable from the [[library]]. They are limited in functionality and primarily intended to house content.
===Our content bundles===
===Our content bundles===
On November 2, 2007, Colingo released four content bundles:
On November 2, 2007, Colingo released four content bundles:
Line 213: Line 238:
==See also==
==See also==
*[[Shtooka Project]]
*[[Shtooka Project]]
{{Activity page
|icon=Image:Colingo-sugar.svg
|genre=Language Learning
|short description=ColingoXO creates a platform for constructivist language-learning by letting children splice video clips to create and share video narratives. Children will be able to use all video clips from the Colingo video library or alternatively record new clips with the XO camera and microphone.
|contact person=Unknown
|related project=Shtooka_Project
}}

Latest revision as of 20:41, 6 August 2008

Colingo-sugar.svg
Site: colingo
colingo.org sources in colingo
OlpcProject.png Ben Lowenstein, Eben Eliason
Translate-icon-55px.svg Localization
.POT file NEEDED

see more templates or propose new


Colingo is developing an activity for Sugar called ColingoXO. ColingoXO creates a platform for constructivist language-learning by letting children splice video clips to create and share video narratives. Children will be able to use all video clips from the Colingo video library or alternatively record new clips with the XO camera and microphone.

Beyond its role as a simple video editor, ColingoXO will focus on taking advantage of the XO's mesh capabilities. Videos will not be housed on individual XO's, but rather be housed and streamed from the School server. Video narratives, which are essentially XSPF playlists, will be kept locally in the Journal and be easily passed through the mesh due to their lightweight, text-based format.

Interface

This interface design is by Eben Eliason, a lead UI designer for the OLPC project and the primary author of the OLPC Human Interface Guidelines. Please post comments on the discussion page, or ping lionstone in #olpc-content.

Colingoxo.5.png

Interface description

The comboboxes at the top allow one to simply switch the language or select a phrase. Typing some words directly into the phrase box will simply filter out the results. The video bank on the left contains all of the videos which match the filter in the toolbar for language and phrase. It scrolls for easy navigation, and holds up to 15 clips before needing to scroll at all.

The timeline is the main interactive component, since it defines the dialogue for the session. It is shown as using a standard (not quite finished) Tray control, which will automatically provide drag'n'drop support, reordering, paging, and assist in supporting networked collaboration on the timeline. This will make it easy for kids to actually create back and forth dialogue with each other, alternately selecting video clips, and in the end having a record of that conversation which they can play back in any language.

The video consumes the rest of the screen, and is a fair bit larger.

Beneath the video there are some basic controls. The play/stop button is obvious. The next and previous buttons will skip to the various video clips in the sequence, like tracks on a CD. Finally, the text beneath the video updates in real time to provide the written form of the phrase being spoken during playback.

Specifications

There are four programmatic arenas we must focus on in developing ColingoXO: how the user interacts with the XO, how one XO interacts with other XOs, how an XO interacts with the XS, and how the XS interacts with the rest of the world. Our primary focus right now is on the user interface on the XO and how the XO interacts with the server. Our secondary focus is on how the XOs interact with one another, and our tertiary focus is on how the XS interacts with the rest of the world.

Broadly

User -> XO

From a programmatic perspective, the interface for the user must:

  • read/display available video files
  • search the library of videos based on a user's specified language, and return appropriate videos in the specified language
  • create/save video clips
  • create/save playlists built by dragging/dropping videos onto a "timeline"
  • specify videos/playlists as shareable or private
  • playback individual videos and playlists
  • allow control via keyboard, mouse and integrated gamepad

XO -> XS

Like the XO, the XS is still undergoing heavy development, and not all of the software that will run on these machines has been wholly settled on just yet. This makes our task a little more difficult, but it should push us to build our software with greater flexibility in mind. We are still trying to determine which SQL driven database will be running on the XS (we have been told that it will probably be MySQL), and how/where on the XS videos will be stored/streamed is undetermined. Regardless, our specs are as follows:

  • XO must be able to write and read video files/playlists to/from the XS
  • XS must be able to stream the same video(s) simultaneously to multiple XOs
  • XS will host a database containing metadata about each video clip, including bridging videos about the same thing across all languages
  • XS and its database must have support for any character set (from Arabic to Zapotec!)

XO -> XO

The collaborative aspect of the XOs is where these machines really shine. Our activity should embody an ethos of collaboration and take full advantage of the mesh networking capabilities of the XO.

  • Read/write shared files
  • Collaborate in realtime on shared playlists
  • Support more than one XO on one XO - groups of XOs collaborating on one project
  • Provide visual signatures on clips/playlists (perhaps a watermark of the student's colored XO character)
  • Some form of communication beyond just manipulating files (ie bridge with the chat activity)

XS -> World

Each XS will host its own library of videos developed by the students, as well as initial seeded content provided by Colingo. On the OLPC wiki, there is talk about regional XSs talking with one another, as well as XSs connected with the internet sharing content to the world.

  • XSs should be able to share video content and playlists with the rest of the world.
  • Video content from the XSs should be available to colingo.org, which will be the portal through which these videos are shared.
  • XS should be able to pull content (videos) from colingo.org to share with the students.
  • XS should be able to share their metadata (ie translations, associations of clips with languages) with one another and colingo.org to build a global decentralized database.

More Specifically

  • The ability for a user to create media clips tagged with metadata
    • Taking advantage of the XO's built in video camera and microphone, users will be able to make videos, still photos, or audio recordings. The idea being that each clip would be of a student saying a short phrase.
    • The user would be able to tag the clip with information such as the language of the clip, the phrase, translations of that phrase into any other language, creative commons licensing information and information about the creator of the clip.
    • The metadata for each clip would be stored in a database on the school servers, as well as Colingo's servers on the internet
  • The ability to tag additional translation metadata to clips
    • Anybody with access to the library would be able to add additional translation metadata to any clip (similar to dotSub's method for video translation).
  • The ability to store and retrieve clips to and from the school server as well as Colingo's servers on the internet.
    • ColingoXO will make calls first to the school server to see what clips are available on the local network.
      • If a particular clip is requested, the metadata would be sent to the client with XML, and the video would be streamed from the school server
      • If a particular clips is not available on the school server, but is available and retrievable from the internet and/or other school servers, the clip would be downloaded to and streamed to the client from the school server.
    • Due to the XO's limited storage capacity, clips as well as the Colingos will be stored primarily on the school server.
      • If the school server has a connection to the internet, the clips will also be uploaded to Colingo's servers.
  • The ability to search the Colingo library for clips as well as Colingos across languages
    • The user would be able to enter a phrase or category in a particular language, and specify what language to return associated clips in.
    • The school server would be queried and would search through the library for relevant clips, looking first at associated phrases from the metadata, and then using translation tools to return associated clips
      • The school server would then query other school servers and the Colingo servers, if they were accessible.
  • The ability to use these clips (retrieved clips and locally created clips) to build narratives
    • Users would be able to drag/drop clips onto a timeline, creating an interactive playlist
    • The integrated video player would playback the mashup of videos
  • The ability for multiple XO users on the local mesh network to collaboratively create Colingos
  • Users will be able to share clips or mashups with anyone they specify – locally or on the internet, if access is available.

Activity vs Content Bundle

There are two ways to develop for OLPC:

  • Creating an activity
  • Creating content bundles
    • A content bundle is a curated collection of content viewable from the library. They are limited in functionality and primarily intended to house content.

Our content bundles

On November 2, 2007, Colingo released four content bundles:

Please help test our content bundles, and see known issues with them. You can also watch an online demo if your web browser can handle OGG theora video.

Get involved!

We need your help to create a revolutionary educational tool completely in line with the XO's constructivist educational philosophy. If you are committed the ideals of Free Software and are interested in helping to develop a platform for global language exchange, please say hello in IRC, check out our dev environment and learn how to become a Colingo developer.

Code

Checking out code from Colingo

Note (8/23/07): We are currently hosting ColingoXO code on the Colingo development server. Please see the instructions about how to check out code from the ColingoXO repository.

Our sugarized SVG activity icon

Colingo-sugar.svg Integrates cleanly into the activity bar and the Home view activity ring.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<!-- by Ben Lowenstein 10-08-07 -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
        <!ENTITY fill_color "#FFFFFF">
        <!ENTITY stroke_color "#000000">
]>
<svg
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   version="1.0"
   width="55"
   height="55"
   viewBox="0 0 55 55"
   id="svg2160"
   xml:space="preserve"><defs
     id="defs2183">
</defs><line
     style="fill:none;stroke:&stroke_color;;stroke-width:3.38274455;stroke-linecap:round;stroke-linejoin:round;display:inline"
     id="line2174"
     y2="34.398335"
     y1="41.699673"
     x2="28.363632"
     x1="32.03511"
     display="inline" /><path
     d="M 80.538794,14.634424 A 3.7837837,5.7432432 0 0 1 82.360937,3.919944"
     transform="matrix(4.5103261,1.9208816,0,1.503442,-344.36635,-144.93321)"
     style="fill:none;fill-opacity:1;stroke:&stroke_color;;stroke-width:1.99899995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
     id="path4147" /><path
     d="M 80.538794,14.634424 A 3.7837837,5.7432432 0 0 1 82.360937,3.919944"
     transform="matrix(-4.5103261,-1.9208816,0,-1.503442,401.38327,199.09105)"
     style="fill:none;fill-opacity:1;stroke:&stroke_color;;stroke-width:1.99899995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
     id="path5118" /><line
     display="inline"
     x1="35.277481"
     x2="28.57617"
     y1="30.112953"
     y2="34.113159"
     id="line5120"
     style="fill:none;stroke:&stroke_color;;stroke-width:3.38274455;stroke-linecap:round;stroke-linejoin:round;display:inline" /><line
     display="inline"
     x1="25.064001"
     x2="28.735477"
     y1="12.559251"
     y2="19.86059"
     id="line5122"
     style="fill:none;stroke:&stroke_color;;stroke-width:3.38274455;stroke-linecap:round;stroke-linejoin:round;display:inline" /><line
     style="fill:none;stroke:&stroke_color;;stroke-width:3.38274455;stroke-linecap:round;stroke-linejoin:round;display:inline"
     id="line5124"
     y2="20.145765"
     y1="24.145969"
     x2="28.522943"
     x1="21.82163"
     display="inline" /></svg>

A script for DV capture automagic

This should help OLPC video content creators running linux (only tested on Debian Etch) who have:

  • dvgrab
  • ffmpeg2theora
  • ffmpeg

installed. The shell script will:

  1. Connect to an attached firewire camera
  2. Capture all footage on tape and break footage by timestamp
  3. save all files as oggs (optimized for XO playback), dv, and flv
  4. #!/bin/bash
    
    ## Script to take a raw DV file and split it by timestamp
    ## Robin Walsh 10/2007
    
    echo "Please input the series title. The resulting files will be placed"
    echo "in a subdirectory by this name."
    read -e seriestitle;
    
    echo "Now please give me a filename prefix for the DV files I'm about to split up."
    read -e prefix;
    
    ## First, let's create the directory structure.
    mkdir -p $seriestitle/dv $seriestitle/flv $seriestitle/ogg
    
    ## Next, lets's grab the DV from the camera and split it by timestamp into AVI files.
    dvgrab --autosplit --timestamp --format dv2 $seriestitle/dv/$prefix- 
    
    echo "I can wait here while you check for needed video adjustments."
    echo "Just hit return when you're ready to convert the grabbed DV into ogg and flv."
    read -e waiting;
    
    
    ## Here's the for loop that will convert the original AVI files into .flv
    for f in `ls $seriestitle/dv`
     do
      filenameflv=`basename $f .avi`
      ffmpeg -i $seriestitle/dv/$f -s 320x240 -ar 44100 -r 12 $seriestitle/flv/$filenameflv.flv
     done
    
    ## Here's the for loop that will convert the original AVI files into .ogg
    for i in `ls $seriestitle/dv`
     do
      filenameogg=`basename $i .avi`
      ffmpeg2theora -x 240 -y 160 -v 5 -a -1 -o $seriestitle/ogg/$filenameogg.ogg $seriestitle/dv/$i
     done
    

    See also

    Activity Summary

    Icon: Sugar icon::Image:Colingo-sugar.svg
    Genre: Activity genre::Language Learning
    Activity group: ,|x|Activity group::x}}
    Short description: [[Short description::ColingoXO creates a platform for constructivist language-learning by letting children splice video clips to create and share video narratives. Children will be able to use all video clips from the Colingo video library or alternatively record new clips with the XO camera and microphone.]]
    Description:
    Maintainers: ,|x|Contact person::x}}
    Repository URL:
    Available languages: ,|x|Available languages::x}}
    Available languages (codes): ,|x|Language code::x}}
    Pootle URL:
    Related projects: Related projects,|x|Related projects::x}}
    Contributors: ,|x|Team member::x}}
    URL from which to download the latest .xo bundle Activity bundle::
    Last tested version number:
    The releases with which this version of the activity has been tested. ,|x|Software release::x}}
    Development status:
    Ready for testing (development has progressed to the point where testers should try it out): ,|x|Ready for testing::x}}
    smoke tested :
    test plan available :
    test plan executed :
    developer response to testing :