コード例 #1
0
def download_ffmpeg():
    from sys import stderr
    print >> stderr, '--- download_ffmpeg ---\n'

    from scripts import download_ffmpeg
    download_ffmpeg.TMP_DIR = TMP_DIR + '\\download_ffmpeg'
    download_ffmpeg.ROOT_DIR = ROOT_DIR

    download_ffmpeg.FFMPEG_32BIT_DIR = download_ffmpeg.TMP_DIR + '\\Win32'
    download_ffmpeg.FFMPEG_64BIT_DIR = download_ffmpeg.TMP_DIR + '\\x64'
    download_ffmpeg.EXT_FFMPEG_32BIT_DIR = ROOT_DIR + '\\ext\\ffmpeg\\Win32'
    download_ffmpeg.EXT_FFMPEG_64BIT_DIR = ROOT_DIR + '\\ext\\ffmpeg\\x64'

    download_ffmpeg.DOWNLOADS = [
        'http://ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-latest-win32-shared.7z',
        'http://ffmpeg.zeranoe.com/builds/win32/dev/ffmpeg-latest-win32-dev.7z',
        'http://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-latest-win64-shared.7z',
        'http://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-latest-win64-dev.7z'
    ]

    download_ffmpeg.EXTRACT_COMMAND = BIN_DIR + '\\7zr.exe'
    download_ffmpeg.EXTRACT_OPTIONS = 'x -o"%s"' % download_ffmpeg.TMP_DIR

    download_ffmpeg.init()
    download_ffmpeg.download()
    download_ffmpeg.extract()
    download_ffmpeg.relocate()
    download_ffmpeg.move_to_ext()
    download_ffmpeg.copy_dll()
    download_ffmpeg.make_tools_bat()
コード例 #2
0
ファイル: build.py プロジェクト: Alalf/SCFF-DirectShow-Filter
def download_ffmpeg():
    from sys import stderr
    print >>stderr, '--- download_ffmpeg ---\n'

    from scripts import download_ffmpeg
    download_ffmpeg.TMP_DIR = TMP_DIR + '\\download_ffmpeg'
    download_ffmpeg.ROOT_DIR = ROOT_DIR

    download_ffmpeg.FFMPEG_32BIT_DIR = download_ffmpeg.TMP_DIR + '\\Win32'
    download_ffmpeg.FFMPEG_64BIT_DIR = download_ffmpeg.TMP_DIR + '\\x64'
    download_ffmpeg.EXT_FFMPEG_32BIT_DIR = ROOT_DIR + '\\ext\\ffmpeg\\Win32'
    download_ffmpeg.EXT_FFMPEG_64BIT_DIR = ROOT_DIR + '\\ext\\ffmpeg\\x64'

    # stable
    download_ffmpeg.DOWNLOADS = [
        'https://ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-4.0.2-win32-shared.zip',
        'https://ffmpeg.zeranoe.com/builds/win32/dev/ffmpeg-4.0.2-win32-dev.zip',
        'https://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-4.0.2-win64-shared.zip',
        'https://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-4.0.2-win64-dev.zip']

    download_ffmpeg.EXTRACT_COMMAND = BIN_DIR + '\\unzip.exe'
    download_ffmpeg.EXTRACT_OPTIONS = '-qq -d "%s"' % download_ffmpeg.TMP_DIR

    download_ffmpeg.init()
    download_ffmpeg.download()
    download_ffmpeg.extract()
    download_ffmpeg.relocate()
    download_ffmpeg.move_to_ext()
    download_ffmpeg.copy_dll()
    download_ffmpeg.make_tools_bat()
コード例 #3
0
def download_ffmpeg():
    from sys import stderr
    print('--- download_ffmpeg ---\n', file=stderr)

    from scripts import download_ffmpeg
    download_ffmpeg.TMP_DIR = TMP_DIR + '\\download_ffmpeg'
    download_ffmpeg.ROOT_DIR = ROOT_DIR

    download_ffmpeg.FFMPEG_32BIT_DIR = download_ffmpeg.TMP_DIR + '\\Win32'
    download_ffmpeg.FFMPEG_64BIT_DIR = download_ffmpeg.TMP_DIR + '\\x64'
    download_ffmpeg.EXT_FFMPEG_32BIT_DIR = ROOT_DIR + '\\ext\\ffmpeg\\Win32'
    download_ffmpeg.EXT_FFMPEG_64BIT_DIR = ROOT_DIR + '\\ext\\ffmpeg\\x64'

    # stable
    download_ffmpeg.DOWNLOADS = [
        'https://ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-4.1.4-win32-shared.zip',
        'https://ffmpeg.zeranoe.com/builds/win32/dev/ffmpeg-4.1.4-win32-dev.zip',
        'https://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-4.1.4-win64-shared.zip',
        'https://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-4.1.4-win64-dev.zip'
    ]

    download_ffmpeg.EXTRACT_COMMAND = BIN_DIR + '\\unzip.exe'
    download_ffmpeg.EXTRACT_OPTIONS = '-qq -d "%s"' % download_ffmpeg.TMP_DIR

    download_ffmpeg.init()
    download_ffmpeg.download()
    download_ffmpeg.extract()
    download_ffmpeg.relocate()
    download_ffmpeg.move_to_ext()
    download_ffmpeg.copy_dll()
    download_ffmpeg.make_tools_bat()
コード例 #4
0
def download_ffmpeg():
    from sys import stderr

    print >> stderr, "--- download_ffmpeg ---\n"

    from scripts import download_ffmpeg

    download_ffmpeg.TMP_DIR = TMP_DIR + "\\download_ffmpeg"
    download_ffmpeg.ROOT_DIR = ROOT_DIR

    download_ffmpeg.FFMPEG_32BIT_DIR = download_ffmpeg.TMP_DIR + "\\Win32"
    download_ffmpeg.FFMPEG_64BIT_DIR = download_ffmpeg.TMP_DIR + "\\x64"
    download_ffmpeg.EXT_FFMPEG_32BIT_DIR = ROOT_DIR + "\\ext\\ffmpeg\\Win32"
    download_ffmpeg.EXT_FFMPEG_64BIT_DIR = ROOT_DIR + "\\ext\\ffmpeg\\x64"

    download_ffmpeg.DOWNLOADS = [
        "http://ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-latest-win32-shared.7z",
        "http://ffmpeg.zeranoe.com/builds/win32/dev/ffmpeg-latest-win32-dev.7z",
        "http://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-latest-win64-shared.7z",
        "http://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-latest-win64-dev.7z",
    ]

    download_ffmpeg.EXTRACT_COMMAND = BIN_DIR + "\\7zr.exe"
    download_ffmpeg.EXTRACT_OPTIONS = 'x -o"%s"' % download_ffmpeg.TMP_DIR

    download_ffmpeg.init()
    download_ffmpeg.download()
    download_ffmpeg.extract()
    download_ffmpeg.relocate()
    download_ffmpeg.move_to_ext()
    download_ffmpeg.copy_dll()
    download_ffmpeg.make_tools_bat()
コード例 #5
0
def download_ffmpeg():
    from sys import stderr
    print >>stderr, '--- download_ffmpeg ---\n'
    
    from scripts import download_ffmpeg
    download_ffmpeg.TMP_DIR = TMP_DIR + '\\download_ffmpeg'
    download_ffmpeg.ROOT_DIR = ROOT_DIR

    download_ffmpeg.FFMPEG_32BIT_DIR = download_ffmpeg.TMP_DIR + '\\x86'
    download_ffmpeg.FFMPEG_64BIT_DIR = download_ffmpeg.TMP_DIR + '\\amd64'
    download_ffmpeg.EXT_FFMPEG_32BIT_DIR = ROOT_DIR + '\\ext\\ffmpeg\\x86'
    download_ffmpeg.EXT_FFMPEG_64BIT_DIR = ROOT_DIR + '\\ext\\ffmpeg\\amd64'

    download_ffmpeg.DOWNLOADS = [
        'http://ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-latest-win32-shared.7z',
        'http://ffmpeg.zeranoe.com/builds/win32/dev/ffmpeg-latest-win32-dev.7z',
        'http://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-latest-win64-shared.7z',
        'http://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-latest-win64-dev.7z']

    download_ffmpeg.EXTRACT_COMMAND = BIN_DIR + '\\7zr.exe'
    download_ffmpeg.EXTRACT_OPTIONS = 'x -o"%s"' % download_ffmpeg.TMP_DIR

    download_ffmpeg.PATCHES = [(
        'extern const AVPixFmtDescriptor av_pix_fmt_descriptors[];',
         'extern __declspec(dllimport) const AVPixFmtDescriptor av_pix_fmt_descriptors[];')]
    
    download_ffmpeg.init()
    download_ffmpeg.download()
    download_ffmpeg.extract()
    download_ffmpeg.relocate()
    download_ffmpeg.patch()
    download_ffmpeg.copy_dll()
    download_ffmpeg.make_tools_bat()