Skip to content

Commit f5241b0

Browse files
authored
Build FFmpeg9 (#1606)
1 parent 1e0f188 commit f5241b0

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/build_ffmpeg.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1", "8.0"]
30+
ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1", "8.0", "9.0"]
3131
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
3232
permissions:
3333
id-token: write
@@ -52,7 +52,7 @@ jobs:
5252
strategy:
5353
fail-fast: false
5454
matrix:
55-
ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1", "8.0"]
55+
ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1", "8.0", "9.0"]
5656
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
5757
permissions:
5858
id-token: write
@@ -79,7 +79,7 @@ jobs:
7979
strategy:
8080
fail-fast: false
8181
matrix:
82-
ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1", "8.0"]
82+
ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1", "8.0", "9.0"]
8383
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
8484
with:
8585
job-name: Build
@@ -102,7 +102,7 @@ jobs:
102102
strategy:
103103
fail-fast: false
104104
matrix:
105-
ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1", "8.0"]
105+
ffmpeg-version: ["4.4.4", "5.1.4", "6.1.1", "7.0.1", "8.0", "9.0"]
106106
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main
107107
with:
108108
job-name: Build

packaging/build_ffmpeg.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ if [[ "$(uname)" == Darwin ]]; then
117117
avfilter=libavfilter.11
118118
swscale=libswscale.9
119119
swresample=libswresample.6
120+
elif [[ ${major_ver} == 9 ]]; then
121+
avutil=libavutil.61
122+
avcodec=libavcodec.63
123+
avformat=libavformat.63
124+
avdevice=libavdevice.63
125+
avfilter=libavfilter.12
126+
swscale=libswscale.10
127+
swresample=libswresample.7
120128
else
121129
printf "Error: unexpected FFmpeg major version: %s\n" ${major_ver}
122130
exit 1;

0 commit comments

Comments
 (0)