From ecb4b598f9ed524378f6b742af80fa6c845a24b9 Mon Sep 17 00:00:00 2001 From: Daniel Flores Date: Wed, 8 Oct 2025 11:26:12 -0400 Subject: [PATCH] build ffmpeg8 only --- .github/workflows/build_ffmpeg.yaml | 6 +++--- packaging/build_ffmpeg.sh | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_ffmpeg.yaml b/.github/workflows/build_ffmpeg.yaml index 79f0e6493..9b9317e3b 100644 --- a/.github/workflows/build_ffmpeg.yaml +++ b/.github/workflows/build_ffmpeg.yaml @@ -27,7 +27,7 @@ jobs: strategy: fail-fast: false matrix: - ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1"] + ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1", "8.0"] uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main permissions: id-token: write @@ -52,7 +52,7 @@ jobs: strategy: fail-fast: false matrix: - ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1"] + ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1", "8.0"] uses: pytorch/test-infra/.github/workflows/macos_job.yml@main with: job-name: Build @@ -75,7 +75,7 @@ jobs: strategy: fail-fast: false matrix: - ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1"] + ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1", "8.0"] uses: pytorch/test-infra/.github/workflows/windows_job.yml@main with: job-name: Build diff --git a/packaging/build_ffmpeg.sh b/packaging/build_ffmpeg.sh index 9fef66814..ad0c4445f 100755 --- a/packaging/build_ffmpeg.sh +++ b/packaging/build_ffmpeg.sh @@ -104,6 +104,14 @@ if [[ "$(uname)" == Darwin ]]; then avfilter=libavfilter.10 swscale=libswscale.8 swresample=libswresample.5 + elif [[ ${major_ver} == 8 ]]; then + avutil=libavutil.60 + avcodec=libavcodec.62 + avformat=libavformat.62 + avdevice=libavdevice.62 + avfilter=libavfilter.11 + swscale=libswscale.9 + swresample=libswresample.6 else printf "Error: unexpected FFmpeg major version: %s\n" ${major_ver} exit 1;