コード例 #1
0
ファイル: video_helper.py プロジェクト: rudresh2319/Xpra
def main():
    from xpra.codecs.loader import log as loader_log
    loader_log.enable_debug()
    if "-v" in sys.argv or "--verbose" in sys.argv:
        log.enable_debug()
    vh = getVideoHelper()
    vh.set_modules(ALL_VIDEO_ENCODER_OPTIONS, ALL_CSC_MODULE_OPTIONS, ALL_VIDEO_DECODER_OPTIONS)
    vh.init()
    log.info("VideoHelper.get_info():")
    info = vh.get_info()
    for k in sorted(info.keys()):
        v = info.get(k)
        log.info("%s=%s", k, v)
コード例 #2
0
ファイル: video_helper.py プロジェクト: svn2github/Xpra
def main():
    from xpra.codecs.loader import log as loader_log
    loader_log.enable_debug()
    if "-v" in sys.argv or "--verbose" in sys.argv:
        log.enable_debug()
    vh = getVideoHelper()
    vh.set_modules(ALL_VIDEO_ENCODER_OPTIONS, ALL_CSC_MODULE_OPTIONS, ALL_VIDEO_DECODER_OPTIONS)
    vh.init()
    log.info("VideoHelper.get_info():")
    info = vh.get_info()
    for k in sorted(info.keys()):
        v = info.get(k)
        log.info("%s=%s", k, v)
コード例 #3
0
ファイル: video_helper.py プロジェクト: rudresh2319/Xpra
def main():
    from xpra.codecs.loader import log as loader_log, load_codecs
    from xpra.util import print_nested_dict
    from xpra.log import enable_color
    from xpra.platform import program_context
    with program_context("Video Helper"):
        enable_color()
        if "-v" in sys.argv or "--verbose" in sys.argv:
            loader_log.enable_debug()
            log.enable_debug()
        load_codecs()
        vh = getVideoHelper()
        vh.set_modules(ALL_VIDEO_ENCODER_OPTIONS, ALL_CSC_MODULE_OPTIONS, ALL_VIDEO_DECODER_OPTIONS)
        vh.init()
        info = vh.get_info()
        print_nested_dict(info)
コード例 #4
0
ファイル: video_helper.py プロジェクト: svn2github/Xpra
def main():
    from xpra.codecs.loader import log as loader_log, load_codecs
    from xpra.util import print_nested_dict
    from xpra.log import enable_color
    from xpra.platform import program_context
    with program_context("Video Helper"):
        enable_color()
        if "-v" in sys.argv or "--verbose" in sys.argv:
            loader_log.enable_debug()
            log.enable_debug()
        load_codecs()
        vh = getVideoHelper()
        vh.set_modules(ALL_VIDEO_ENCODER_OPTIONS, ALL_CSC_MODULE_OPTIONS, ALL_VIDEO_DECODER_OPTIONS)
        vh.init()
        log.info("VideoHelper.get_info():")
        info = vh.get_info()
        print_nested_dict(info)
コード例 #5
0
ファイル: video_helper.py プロジェクト: svn2github/Xpra
def main():
    from xpra.codecs.loader import log as loader_log, load_codecs
    from xpra.log import enable_color
    from xpra.platform import init, clean
    try:
        init("Video Helper")
        enable_color()
        if "-v" in sys.argv or "--verbose" in sys.argv:
            loader_log.enable_debug()
            log.enable_debug()
        load_codecs()
        vh = getVideoHelper()
        vh.set_modules(ALL_VIDEO_ENCODER_OPTIONS, ALL_CSC_MODULE_OPTIONS, ALL_VIDEO_DECODER_OPTIONS)
        vh.init()
        log.info("VideoHelper.get_info():")
        info = vh.get_info()
        for k in sorted(info.keys()):
            v = info.get(k)
            if type(v) in (list, tuple):
                v = csv(v)
            log.info("%s=%s", k, v)
    finally:
        clean()
コード例 #6
0
def main():
    from xpra.codecs.loader import log as loader_log, load_codecs
    from xpra.log import enable_color
    from xpra.platform import init, clean
    try:
        init("Video Helper")
        enable_color()
        if "-v" in sys.argv or "--verbose" in sys.argv:
            loader_log.enable_debug()
            log.enable_debug()
        load_codecs()
        vh = getVideoHelper()
        vh.set_modules(ALL_VIDEO_ENCODER_OPTIONS, ALL_CSC_MODULE_OPTIONS,
                       ALL_VIDEO_DECODER_OPTIONS)
        vh.init()
        log.info("VideoHelper.get_info():")
        info = vh.get_info()
        for k in sorted(info.keys()):
            v = info.get(k)
            if type(v) in (list, tuple):
                v = csv(v)
            log.info("%s=%s", k, v)
    finally:
        clean()