示例#1
0
    def mlt_version(self):
        """ Get the MLT version (if any).  Version 0.6.0+ has the 
		version methods.  Older versions will fail to find these
		methods, so we need to catch the error here. """

        try:
            major = mlt.mlt_version_get_major()
            minor = mlt.mlt_version_get_minor()
            revision = mlt.mlt_version_get_revision()

        except:
            # default version to last version without the version methods (since
            # there is no way to determine the exact version number)
            major = 0
            minor = 5
            revision = 10

        return (major, minor, revision)
示例#2
0
文件: video.py 项目: XXLRay/libreshot
	def mlt_version(self):
		""" Get the MLT version (if any).  Version 0.6.0+ has the 
		version methods.  Older versions will fail to find these
		methods, so we need to catch the error here. """

		try:
			major = mlt.mlt_version_get_major()
			minor = mlt.mlt_version_get_minor()
			revision = mlt.mlt_version_get_revision()
			
		except:
			# default version to last version without the version methods (since 
			# there is no way to determine the exact version number)
			major = 0
			minor = 5
			revision = 10
			
		return (major, minor, revision)
示例#3
0
 def get_version(self):
     major = mlt.mlt_version_get_major()
     minor = mlt.mlt_version_get_minor()
     revision = mlt.mlt_version_get_revision()
     print "%02d%02d%02d" % (major, minor, revision)
     return (major, minor, revision)