advene-1.0/0000755000175200017520000000000011674131750012511 5ustar oaubertoaubertadvene-1.0/advene_pad.xml0000644000175200017520000006223011674127432015326 0ustar oaubertoaubert 3.01 Apimac PAD Editor v1.0.2 Portable Application Description, or PAD for short, is a data set that is used by shareware authors to dissemminate information to anyone interested in their software products. To find out more go to http://www.asp-shareware.org/pad Advene LIRIS - Universite Lyon 1 UFR Informatique VILLEURBANNE 69622 France http://www.advene.org/ Olivier Aubert olivier.aubert@liris.cnrs.fr Olivier Aubert advene@liris.cnrs.fr advene@liris.cnrs.fr advene@liris.cnrs.fr advene@liris.cnrs.fr Advene 1.0 12 22 2011 0 Freeware New Release Install and Uninstall Linux,Mac OS X,Windows2000,Windows2003,WinXP English,Esperanto,French 62659874FIXME 61191FIXME 59FIXME N See the changelog at http://svn.gna.org/viewcvs/advene/trunk/CHANGES.txt Audio & Multimedia::Video Tools Advene, Video, Annotation, View generation, templates Annotate Digital Videos, Exchange on the NEt The cross-platform Advene application allows users to easily create comments and analyses of video documents, through the definition of time-aligned annotations and their mobilisation into automatically-generated or user-written comment views. The Advene application allows users to define time-aligned annotations which can be used to create comments and also modify the rendition of the audiovisual document, thus providing virtual montage, captioning, navigation... capabilities. Users can exchange their comments/analyses in the form of Advene packages, independently from the video itself. Advene (Annotate Digital Video, Exchange on the NEt) is an ongoing project in the LIRIS laboratory (UMR 5205 CNRS) at University Claude Bernard Lyon 1. It aims at providing a model and a format to share annotations about digital video documents (movies, courses, conferences...), as well as tools to edit and visualize the hypervideos generated from both the annotations and the audiovisual documents. Teachers, moviegoers, etc. can use them to exchange multimedia comments and analyses about video documents. The project also aims at studying the way that communities of users (teachers, moviegoers, students...) will use these self-publishing tools to share their audiovisual readings, and to envision new editing and viewing interfaces for interactive comment and analysis of audiovisual content. The cross-platform Advene application allows users to easily create comments and analyses of video comments, through the definition of time-aligned annotations and their mobilisation into automatically-generated or user-written comment views (HTML documents). Annotations can also be used to modify the rendition of the audiovisual document, thus providing virtual montage, captioning, navigation... capabilities. Users can exchange their comments/analyses in the form of Advene packages, independently from the video itself. http://www.advene.org/ http://www.advene.org/download.html http://www.advene.org/screenshots/advene-1.0.png http://www.advene.org/img/icon_advene32.png http://www.advene.org/advene_pad.xml http://download.gna.org/advene/win32/setup_advene_1.0.exe The Advene program is free software, licensed under the terms of the GNU General Public License version 2 or later. GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. advene-1.0/scripts/0000755000175200017520000000000011642631321014172 5ustar oaubertoaubertadvene-1.0/scripts/update_version0000755000175200017520000000070411547023676017164 0ustar oaubertoaubert#! /bin/sh LANG=C export LANG svnrev='Unknown' if [ -d .svn ] then if [ -x ${HOME}/bin/svn ] then SVN=${HOME}/bin/svn else SVN=svn fi svnrev=`${SVN} info | awk '/Revision/{print $2}'` elif [ -d .git ] then svnrev=`git show HEAD | perl -lne 'print $1 if /git-svn-id.+advene.trunk@(\d+)/'` fi builddate=`date +%Y%m%d` perl -pi -e "s/date=.+/date='$builddate'/; s/svn=.+/svn='$svnrev'/" lib/advene/core/version.py advene-1.0/scripts/package_sorter.py0000755000175200017520000001011711642631321017540 0ustar oaubertoaubert#! /usr/bin/python # # This file is part of Advene. # # Advene is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # Advene is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Foobar; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # """Process an Advene XML package in order to get annotations ordered by timestamp, and all other elements ordered by id. """ import sys import xml.etree.ElementTree as ET from xml.etree.ElementTree import parse, Element, ElementTree, QName import string def tag(name): """Return the namespaced tag. """ return '{%s}%s' % (ns, name) def cmp_id(a, b): """Compare id """ return cmp(a.attrib['id'], b.attrib['id']) def sort_id(source): """Sort the source Element elements along their id. Returns a new Element """ dest=Element(source.tag) dest.attrib.update(source.attrib) res=[ e for e in source ] res.sort(cmp_id) for e in res: dest.append(e) return dest def cmp_time(a, b): """Compare time """ return cmp(a._begin, b._begin) def sort_time(source): """Sort the source Element elements along their time (for annotations) and id (for relations). Returns a new Element """ dest=Element(source.tag) dest.attrib.update(source.attrib) antag=tag('annotation') reltag=tag('relation') rel=[ e for e in source if e.tag == reltag ] rel.sort(cmp_id) an=[ e for e in source if e.tag == antag ] # Pre-parse begin times for a in an: f=a.find(tag('millisecond-fragment')) if f is not None: a._begin = long(f.attrib['begin']) else: print "Error: cannot find begin time for ", a.attrib['id'] a._begin = 0 an.sort(cmp_time) for e in an: dest.append(e) for e in rel: dest.append(e) return dest # Namespace handling ns='http://experience.univ-lyon1.fr/advene/ns' ET._namespace_map[ns]='' ET._namespace_map['http://purl.org/dc/elements/1.1/']='dc' ET._namespace_map['http://experience.univ-lyon1.fr/advene/ns/advenetool']='advenetool' # Hack into elementtree to generate a readable (namespace-prefix-wise) # Advene package def my_fixtag(tag, namespaces): # given a decorated tag (of the form {uri}tag), return prefixed # tag and namespace declaration, if any if isinstance(tag, QName): tag = tag.text namespace_uri, tag = string.split(tag[1:], "}", 1) prefix = namespaces.get(namespace_uri) if prefix is None: prefix = ET._namespace_map.get(namespace_uri) if prefix is None: prefix = "ns%d" % len(namespaces) namespaces[namespace_uri] = prefix if prefix == "xml": xmlns = None elif prefix == '': # Empty prefix from _namespace_map, assume it is the # default xmlns = ('xmlns', namespace_uri) else: xmlns = ("xmlns:%s" % prefix, namespace_uri) else: xmlns = None if prefix == '': return tag, xmlns else: return "%s:%s" % (prefix, tag), xmlns # Hook into elementtree ET.fixtag = my_fixtag tree = parse(sys.argv[1]) source = tree.getroot() dest=Element(source.tag) dest.attrib.update(source.attrib) for e in source: if e.tag == tag('meta') or e.tag == tag('imports'): dest.append(e) elif e.tag in [ tag(n) for n in ('queries', 'schemas', 'views') ]: # Sort along id dest.append(sort_id(e)) elif e.tag == tag('annotations'): dest.append(sort_time(e)) else: print "Unknown tag", e.tag tree=ElementTree(dest) tree.write(open(sys.argv[2], 'w'), encoding='utf-8') advene-1.0/scripts/glade2py0000755000175200017520000000035511341717663015644 0ustar oaubertoaubert#! /usr/bin/perl while (<>) { if (/\b(on_\w+)/) { $callback = $1; print <<"EOF"; def ${callback} (self, button=None, data=None): print "${callback} activated (%s, %s, %s)" % (self, button, data) return True EOF } } advene-1.0/scripts/seq2package.py0000755000175200017520000000226611341717663016755 0ustar oaubertoaubert#! /usr/bin/env python """Convert a sequence to advene annotations. Simple script to convert a sequence of annotation as a text file to an advene package part. The text file has the following format : 0:15 1:57 Matin 1:58 4:49 Mme Arpel fait le menage 4:50 5:59 Embouteillages 6:00 13:14 Derriere l'usine. 13:15 16:05 Sortie de l'ecole 16:06 19:19 Visite a Mme Arpel 19:20 20:42 Soir. M. Arpel rentre. 20:43 22:59 Lendemain matin, les enfants courent vers l'ecole. 23:00 25:14 Usine Plastac 25:15 25:59 Hulot arrive a l'usine 26:00 28:31 Hulot marche dans la peinture blanche 28:32 37.19 Villa Arpel 37:20 38:19 Hulot et son neveu arrivent dans le vieux quartier. """ import re import sys def ts2ms(ts): (m,s) = ts.split(":") m = long(m) s = long(s) return (60*m + s) * 1000 filename=sys.argv[0] f=open(filename, 'r') regexp=re.compile('(\d+:\d+)\s(\d+:\d+)\s(.*)') for l in f: m=regexp.match(l) if m: (t1, t2, data) = m.groups() begin=ts2ms(t1) end=ts2ms(t2) print """ %s """ % (begin, end, begin, end, data) advene-1.0/scripts/fix_glade0000755000175200017520000000030311341717663016050 0ustar oaubertoaubert#! /bin/sh if [ -z "$1" ] then echo "Syntaxe: $0 file.glade" else # Fixes the directories for pixmaps perl -pi -e 's!"pixbuf">!"pixbuf">pixmaps/!;' -e 's!"icon">!"icon">pixmaps/!;' $1 fiadvene-1.0/scripts/update_doc0000755000175200017520000000137711404175025016237 0ustar oaubertoaubert#! /bin/bash SCRIPTDIR=`dirname $0` ADVENEHOME=`dirname $SCRIPTDIR` output=${ADVENEHOME}/share/web/user.html shortcuts=${ADVENEHOME}/share/web/shortcuts.html if [ ! -d "${ADVENEHOME}/doc" ] then echo "Unable to find the Advene directory" exit 1 fi # Shortcuts wget --quiet 'http://liris.cnrs.fr/advene/wiki/index.php/AdveneShortcuts' -O $shortcuts if [ $? == 0 ] then perl -pi -e 's/<(style|link|script).+?<\/\1>//; s///; s/
//; s/.+siteSub.+//; s!!!; exit(0) if /Retrieved/' $shortcuts echo "Shortcuts help updated in $shortcuts" else echo "Wget error. $shortcuts is now corrupted." fi advene-1.0/scripts/version0000755000175200017520000000062111341717663015616 0ustar oaubertoaubert#! /usr/bin/env python """Return the version number of the current advene tree. """ import sys import os dir=os.path.abspath( os.path.dirname(os.path.dirname(sys.argv[0]) ) ) if not os.path.exists(os.path.join( dir, "lib", "advene", "core", "version.py" )): print "N/C" sys.exit(1) sys.path.insert(0, os.path.join( dir, "lib" )) import advene.core.version print advene.core.version.version advene-1.0/setup.py0000755000175200017520000002364011642670265014237 0ustar oaubertoaubert#!/usr/bin/python import sys from distutils.core import setup from distutils.extension import Extension import os import string import re import sys # We define the main script name here (file in bin), since we have to change it for MacOS X SCRIPTNAME='advene' def check_changelog(maindir, version): """Check that the changelog for maindir matches the given version.""" f=open(os.path.join( maindir, "CHANGES.txt" ), 'r') l=f.readline() f.close() if not l.startswith('advene (' + version + ')'): print "The CHANGES.txt does not seem to match version " + version print l print "Update either the CHANGES.txt or the lib/advene/core/version.py file" sys.exit(1) return True def get_plugin_list(*package): """Return a plugin list from the given package. package is in fact a list of path/module path elements. No recursion is done. """ package= [ 'advene' ] + list(package) path=os.path.sep.join(package) prefix='.'.join(package) plugins=[] d=os.path.join('lib', path) if not os.path.exists(d): raise Exception("%s does not match a directory (%s does not exist)" % (prefix, d)) for n in os.listdir(d): name, ext = os.path.splitext(n) if ext != '.py': continue # Poor man's grep. if [ l for l in open(os.path.join(d, n)).readlines() if 'def register' in l ]: # It may be a plugin. Include it. plugins.append('.'.join((prefix, name))) return plugins def get_version(): """Get the version number of the package.""" maindir = os.path.dirname(os.path.abspath(sys.argv[0])) if os.path.exists(os.path.join(maindir, "setup.py")): # Chances are that we were in a development tree... libpath=os.path.join(maindir, "lib") sys.path.insert (0, libpath) import advene.core.version version=advene.core.version.version else: raise Exception("Unable to determine advene version number.") check_changelog(maindir, version) return version _version=get_version() platform_options={} if sys.platform == 'win32': import py2exe # to be able to import gst import pygst pygst.require('0.10') platform_options['windows'] = [ "bin/advene" ] platform_options['options'] = { "py2exe": { "includes": "email.header,pango,pangocairo,cairo,atk,gtk,gio,pygst,gst,gtk.keysyms,gobject,encodings,encodings.latin_1,encodings.utf_8,encodings.cp850,encodings.cp437,encodings.cp1252,encodings.utf_16_be," + ",".join( get_plugin_list('plugins') + get_plugin_list('gui', 'plugins') + get_plugin_list('gui', 'views') + get_plugin_list('gui', 'edit') ), "excludes": [ "Tkconstants","Tkinter","tcl" ], "dll_excludes": ["libgstvideo-0.10.dll","libgstpbutils-0.10.dll","libgstinterfaces-0.10.dll","libgstdataprotocol-0.10.dll","libgstbase-0.10.dll","libgstnet-0.10.dll","libgstcontroller-0.10.dll","libgstaudio-0.10.dll","libgsttag-0.10.dll","libgstreamer-0.10.dll","libvlc.dll","libvlc-control.dll", "libglade-2.0-0.dll"], # ["iconv.dll","intl.dll","libatk-1.0-0.dll", # "libgdk_pixbuf-2.0-0.dll","libgdk-win32-2.0-0.dll", # "libglib-2.0-0.dll","libgmodule-2.0-0.dll", # "libgobject-2.0-0.dll","libgthread-2.0-0.dll", # "libgtk-win32-2.0-0.dll","libpango-1.0-0.dll", # "libpangowin32-1.0-0.dll"], } } elif sys.platform == 'darwin': import py2app SCRIPTNAME='advene_gui.py' platform_options['app'] = [ 'bin/%s' % SCRIPTNAME ] platform_options['options'] = dict(py2app=dict( iconfile='mac/Advene.icns', #includes=",".join( [ l.strip() for l in open('mac_includes.txt') ]), includes="AppKit,_hashlib,hashlib,email.header,pango,cairo,ctypes,gtk,gtk.keysyms,atk,gobject,encodings,encodings.latin_1,encodings.utf_8,encodings.cp850,encodings.cp437,encodings.cp1252,encodings.utf_16_be,cPickle,optparse,sets,pprint,cgi,webbrowser,sgmllib,zipfile,shutil,sched,imghdr,BaseHTTPServer,Cookie,ConfigParser,xmlrpclib,Queue,csv,filecmp," + ",".join( get_plugin_list('plugins') + get_plugin_list('gui', 'plugins') + get_plugin_list('gui', 'views') + get_plugin_list('gui', 'edit') ), argv_emulation=True, site_packages=True, #frameworks='Cairo.framework,Glib.framework,Gtk.framework', plist=dict( CFBundleName = "Advene", CFBundleShortVersionString = _version, # must be in X.X.X format CFBundleGetInfoString = "Advene " + _version, CFBundleExecutable = "Advene", CFBundleIdentifier = "com.oaubert.advene", ), ) ) def get_packages_list(): """Recursively find packages in lib. Return a list of packages (dot notation) suitable as packages parameter for distutils. """ l=[] def ispackage(pl, dirname, fnames): if 'linux' in sys.platform and ('cherrypy' in dirname or dirname.endswith('simpletal')): # On linux (at least, Debian and Ubuntu), cherrypy and # simpletal are packaged. So do not consider them in the # packages list. fnames[:]=[] elif '__init__.py' in fnames: l.append(dirname) os.path.walk('lib', ispackage, l) res=[ ".".join(name.split(os.path.sep)[1:]) for name in l ] return res def generate_data_dir(dir_, prefix="", postfix=""): """Return a structure suitable for datafiles from a directory. It will return a sequence of (directory, files) corresponding to the data in the given directory. prefix and postfix are dumbly added to dirname, so do not forget the trailing / for prefix, and leading / for postfix if necessary. """ l = [] installdir=prefix+dir_+postfix def store(pl, dirname, fnames): if dirname.find('.svn') < 0 and fnames: if dirname.startswith(dir_): installdirname=dirname.replace(dir_, installdir, 1) pl.append((installdirname, [ absf for absf in [ os.path.sep.join((dirname,f)) for f in fnames ] if not os.path.isdir(absf) ])) os.path.walk(dir_, store, l) return l def generate_data_files(): # On Win32, we will install data files in # \Program Files\Advene\share\... # On MacOS X, it will be in Advene.app/Contents/Resources # On Unix, it will be # /usr/share/advene/... if sys.platform == 'win32' or sys.platform == 'darwin': prefix='' postfix='' else: prefix="share"+os.path.sep postfix=os.path.sep+"advene" r=generate_data_dir("share", postfix=postfix) r.extend(generate_data_dir("doc", prefix=prefix, postfix=postfix)) if os.path.isdir("locale"): r.extend(generate_data_dir("locale", prefix=prefix)) else: print """**WARNING** You should generate the locales with "cd po; make mo".""" if sys.platform.startswith('linux'): # Install specific data files r.append( ( 'share/applications', [ 'debian/advene.desktop' ] ) ) return r myname = "Olivier Aubert" myemail = "olivier.aubert@liris.cnrs.fr" setup (name = "advene", version = _version, description = "Annotate DVds, Exchange on the NEt", keywords = "dvd,video,annotation", author = "Advene project team", author_email = "advene@liris.cnrs.fr", maintainer = myname, maintainer_email = myemail, url = "http://www.advene.org/", license = "GPL", long_description = """Annotate DVds, Exchange on the NEt The Advene (Annotate DVd, Exchange on the NEt) project is aimed towards communities exchanging discourses (analysis, studies) about audiovisual documents (e.g. movies) in DVD format. This requires that audiovisual content and hypertext facilities be integrated, thanks to annotations providing explicit structures on audiovisual streams, upon which hypervideo documents can be engineered. . The cross-platform Advene application allows users to easily create comments and analyses of video comments, through the definition of time-aligned annotations and their mobilisation into automatically-generated or user-written comment views (HTML documents). Annotations can also be used to modify the rendition of the audiovisual document, thus providing virtual montage, captioning, navigation... capabilities. Users can exchange their comments/analyses in the form of Advene packages, independently from the video itself. . The Advene framework provides models and tools allowing to design and reuse annotations schemas; annotate video streams according to these schemas; generate and create Stream-Time Based (mainly video-centred) or User-Time Based (mainly text-centred) visualisations of the annotations. Schemas (annotation- and relation-types), annotations and relations, queries and views can be clustered and shared in units called packages. Hypervideo documents are generated when needed, both from packages (for annotation and view description) and DVDs (audiovisual streams). """, package_dir = {'': 'lib'}, packages = get_packages_list(), scripts = [ 'bin/%s' % SCRIPTNAME ], data_files = generate_data_files(), classifiers = [ 'Environment :: X11 Applications :: GTK', 'Environment :: Win32 (MS Windows)', 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: GNU General Public License (GPL)', 'Programming Language :: Python', 'Intended Audience :: End Users/Desktop', 'Operating System :: OS Independent', 'Topic :: Multimedia :: Video :: Non-Linear Editor' ], **platform_options ) advene-1.0/README.txt0000644000175200017520000000537411674127432014222 0ustar oaubertoaubertPurpose of the software ======================= The Advene project (Annotate Digital Video, Exchange on the NEt) aims at providing a model and a format to share annotations about digital video documents (movies, courses, conferences...), as well as tools to edit and visualize the hypervideos generated from both the annotations and the audiovisual documents. With the Advene software, teachers, moviegoers, etc. can exchange multimedia comments and analyses about video documents. The project also aims at studying the way that communities of users (teachers, moviegoers, students...) will use these self-publishing tools to share their audiovisual "readings", and to envision new editing and viewing interfaces for interactive comment and analysis of audiovisual content. Design ====== The software consists in a graphical user interface, integrating a video player and an embedded webserver. The graphical user interface is both the authoring and visualisation environment for hypervideos. The application allows to : - create annotations linked to specific fragments of a video - link annotations through relations - structure annotations and relations through user-defined annotation-types and relation-types - query the annotations - specify rendering templates (called views) for the metadata and audiovisual document, which qualify as hypervideos. All necessary metadata is stored in files called packages, that can be exchanged independently from the audiovisual document. Three categories of hypervideos are available in Advene: static views, dynamic views and adhoc-views. Static views are X(HT)ML templates that, applied on the annotations, generate a HTML document. The HTML document is served through the embedded webserver to a standard web browser. Snapshots from the video (extracted on the fly) can be used in the template. It is also possible to control the application (video player control, adhoc view opening...) though URLs. Dynamic views are augmented video renderings, guided by the annotations. It is possible to caption the video, control the video behaviour (pause, change position...), etc according to the annotations. Adhoc-views are programmed views available from the GUI. Among available views are a timeline, a transcription view synchronized with the video... Basic use ========= Sample packages are provided on the Advene website: http://liris.cnrs.fr/advene/examples.html Both the Nosferatu analysis and the Ted Nelson speech analysis can be used as tutorials to go through the Advene features. A user manual is also available at: http://liris.cnrs.fr/advene/wiki/index.php/Main_Page Copyright Information ===================== This software is covered by the GNU General Public Licence (version 2, or if you choose, a later version). advene-1.0/CHANGES.txt0000644000175200017520000015434611674127432014341 0ustar oaubertoaubertadvene (1.0) unstable; urgency=low * This release marks the end of a series that has been stable for a long time, but never earned its major release number. This version now enters a maintenance state, while development focuses on the next major version (new data model, interface revamp to handle simultaneous analysis of multiple video files...). * See the following 0.47 notes for more details about changes from previous release. -- Olivier Aubert Tue, 20 Dec 2011 16:31:19 +0100 advene (0.48) unstable; urgency=low * New stable release, candidate for 1.0. See the following 0.47 notes for more details. -- Olivier Aubert Wed, 14 Dec 2011 15:54:20 +0100 advene (0.47) unstable; urgency=low * Main GUI: * Left-clicking on the video slider jumps to the designated position. * Note-taking view - new shortcut: Ctrl-C to convert to annotations * Timeline: * The annotation inspector can be locked on an annotation by clicking on it. Clicking on the lock icon or in the timeline background unlocks the inspector. The annotation content can be edited through the inspector, and validated either with an icon, or with the Control-Return shortcut. * Annotation table view: * Annotation contents can be modified from the table view. * New shortcut: Ctrl-Return to play current annotation. * Transcription view - new shortcut: Ctrl-Return to play current annotation. * Importers: * WebVTT files can be imported. * Speech recognition has been implemented through the pocketsphinx speech recognition software. The pocketsphinx software is not bundled with Advene and has to be installed separately to enable this feature. See http://cmusphinx.sourceforge.net/wiki/gstreamer for details. * The additional videoplayer offset can be customized by drag and drop of an annotation. * The popup menu on screenshot and annotations now offers to save the screenshot as a PNG file. If the player supports it, the screenshot will be in video-resolution. -- Olivier Aubert Thu, 13 Oct 2011 14:29:49 +0200 advene (0.46) unstable; urgency=low * Stable release. See the following 0.45 notes for more details. -- Olivier Aubert Tue, 04 Oct 2011 17:14:25 +0200 advene (0.45) unstable; urgency=low * Main GUI: * Timecode display: add HH:MM:SSfNN (frame number) display format in preferences. The same syntax can be used for timecode input too. Note that it uses 25 fps by default (smpte-25), this can be modified in the Time-related preferences (it does not yet get this information from each video file). * The snapshotter activity can be monitored and controlled through a green icon in the lower right-hand corner of the main window. * The imagecache can be reset from the Player menu. * Undo behaviour: implement Undo for annotation/query/view creation. * Allow storage of binary data in XML. * New menuitems "Create a montage from the relations" and "Create a dynamic view following relations" in relation-type popup menu. * The comment editor proposes multiple presentation modalities for dragged annotation-types. * Timeline: * Click twice on an annotation will not start playing anymore. This caused confusion with double clicks to edit. * Define generic relation types (from any annotation type to any type) when creating new relation types. * Exporters: * Two new json exporters. * Importers: * Advene2 (Cinelab) importer and AIFF (Final Cut Pro) importer * Audio/video extraction importers: sound enveloppe, sound detection, new shot detection algorithm, feature extraction (face, eyes...). The extraction importers can be invoked through the File/Process video menu. * Options can be specified from the GUI for each import filter * For developers: the import framework has been simplified. If you want to import data from an external application, use util.importer.ExternalAppImporter (and see plugins/shotdetectapp.py for an example). * Braille table: * Long text can be scrolled with left/right buttons in scroll mode. * Actions: * New parameters (balance, volume) for PlaySound / PlaySoundClip actions -- Olivier Aubert Tue, 05 Apr 2011 18:00:00 +0200 advene (0.44) unstable; urgency=low * Stable release. See the following 0.43 notes for more details. -- Olivier Aubert Mon, 13 Sep 2010 17:54:23 +0200 advene (0.43) unstable; urgency=low * Timecode display can be customized through Edit/Preferences/Time-related * Timecodes can be entered as milliseconds (12300), seconds (12.300 -> floating point values) or complete timestamps (00:00:12.300) * Website export can now automatically generate HTML5