~ubuntu-branches/ubuntu/precise/pitivi/precise

« back to all changes in this revision

Viewing changes to pitivi/check.py

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Bicha
  • Date: 2011-08-15 02:32:20 UTC
  • mfrom: (1.5.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110815023220-x2n5l0i4deiqn7dn
Tags: 0.14.2-0ubuntu1
* New upstream version.
  - New Mallard format help
* debian/control:
  - Add gnome-doc-utils to build-depends
  - Bump pygtk minimum to 2.24
* debian/patches/01_lpi.patch
  - Move LPI items below User Manual in Help menu
* debian/watch: Watch for 0.14.* tar.bz2

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
from pitivi.instance import PiTiVi
32
32
from pitivi.configure import APPNAME, PYGTK_REQ, PYGST_REQ, GST_REQ, GNONLIN_REQ, PYCAIRO_REQ
33
33
 
 
34
global soft_deps
 
35
soft_deps = {}
 
36
 
34
37
 
35
38
def initiate_videosinks():
36
39
    """
158
161
    if not __try_import__("pkg_resources"):
159
162
        return (_("Could not import the distutils modules"),
160
163
                _("Make sure you have the distutils Python module installed."))
 
164
 
 
165
    # The following are soft dependencies
 
166
    # Note that instead of checking for plugins using gst.registry_get_default().find_plugin("foo"),
 
167
    # we could check for elements using gst.element_factory_make("foo")
 
168
    if not __try_import__("numpy"):
 
169
        soft_deps["NumPy"] = _("Enables the autoalign feature")
 
170
    try:
 
171
        #if not gst.registry_get_default().find_plugin("frei0r"):
 
172
        gst.element_factory_make("frei0r-filter-scale0tilt")
 
173
    except gst.ElementNotFoundError:
 
174
        soft_deps["Frei0r"] = _("Additional video effects")
 
175
    if not gst.registry_get_default().find_plugin("ffmpeg"):
 
176
        soft_deps["GStreamer FFmpeg plugin"] = _('Additional multimedia codecs through the FFmpeg library')
 
177
    # Test for gst bad
 
178
    # This is disabled because, by definition, gst bad is a set of plugins that can
 
179
    # move to gst good or ugly, and we don't really have something to rely upon.
 
180
    #if not gst.registry_get_default().find_plugin("swfdec"): # FIXME: find a more representative plugin
 
181
    #    soft_deps["GStreamer bad plugins"] = _('Additional GStreamer plugins whose code is not of good enough quality, or are not considered tested well enough. The licensing may or may not be LGPL')
 
182
    # Test for gst ugly
 
183
    #if not gst.registry_get_default().find_plugin("x264"):
 
184
    #    soft_deps["GStreamer ugly plugins"] = _('Additional good quality GStreamer plugins whose license is not LGPL or with licensing issues')
161
185
    return None