Example #1
0
def customize_ffmpeg2theora_parameters(params):
    from miro.plat.specialfolders import get_short_path_name
    # look for -o output
    ind = params.index("-o")
    if ind != -1 and len(params) > ind + 2:
        params[ind+1] = get_short_path_name(params[ind+1])

    # FIXME - assumes the last item is {input}.
    # look at last item input
    params[-1] = get_short_path_name(params[-1])
    return params
Example #2
0
def customize_ffmpeg2theora_parameters(params):
    from miro.plat.specialfolders import get_short_path_name
    # look for -o output
    ind = params.index("-o")
    if ind != -1 and len(params) > ind + 2:
        params[ind+1] = get_short_path_name(params[ind+1])

    # FIXME - assumes the last item is {input}.
    # look at last item input
    params[-1] = get_short_path_name(params[-1])
    return params
Example #3
0
def setup_ffmpeg_presets():
    from miro.plat.specialfolders import get_short_path_name
    os.environ['AVCONV_DATADIR'] = get_short_path_name(
        resources.app_root())
Example #4
0
def setup_ffmpeg_presets():
    from miro.plat.specialfolders import get_short_path_name
    os.environ['AVCONV_DATADIR'] = get_short_path_name(resources.app_root())