History

meson: increase FFmpeg minimum required version to 6.1

Kacper Michajłow committed 2 years ago

Commit 2887b2e1 parent 8873bea3 files · +28 −12Browse files

Unified · Split

3 files
  1. .github/workflows/build.yml +4 −5
  2. ci/build-openbsd.sh +17 −0
  3. meson.build +7 −7
.github/workflows/build.yml+4−5
@@ -356,13 +356,13 @@ jobs: · 355 unmodified lines
356356 run: |
357357 cat ./build/meson-logs/meson-log.txt
358358
359− linux-ffmpeg-4-4:
359+ linux-ffmpeg-6-1:
360360 runs-on: ubuntu-latest
361361 container:
362− # We want to test ffmpeg 4.4 which alpine 3.15 has exactly.
362+ # We want to test ffmpeg 6.1.1 which alpine 3.19 has exactly.
363363 # Furthermore, this is a very minimal build of mpv without commonly
364364 # used features to test build compatibility. Musl is a nice bonus as well
365− image: alpine:3.15
365+ image: alpine:3.19
366366 steps:
367367 - uses: actions/checkout@v4
368368 - name: Install dependencies
@@ -383,10 +383,9 @@ jobs: · 14 unmodified lines
383383 libxrandr-dev \
384384 libxpresent-dev \
385385 libxscrnsaver-dev \
386+ meson \
386387 musl-dev \
387− py3-pip \
388388 samurai
389− pip install meson
390389
391390 - name: Build with meson
392391 id: build
ci/build-openbsd.sh+17−0
@@ -8,7 +8,24 @@ git clone https://code.videolan.org/videolan/libplacebo.git \ · 7 unmodified lines
88 --recurse-submodules --shallow-submodules \
99 --depth=1 --recurse-submodules subprojects/libplacebo
1010
11+# FFmpeg on openBSD (4.4.4) is too old; use a subproject
12+cat <<EOF > subprojects/ffmpeg.wrap
13+[wrap-git]
14+url = https://gitlab.freedesktop.org/gstreamer/meson-ports/ffmpeg.git
15+revision = meson-6.1
16+depth = 1
17+[provide]
18+libavcodec = libavcodec_dep
19+libavdevice = libavdevice_dep
20+libavfilter = libavfilter_dep
21+libavformat = libavformat_dep
22+libavutil = libavutil_dep
23+libswresample = libswresample_dep
24+libswscale = libswscale_dep
25+EOF
26+
1127 meson setup build \
28+ -Dffmpeg:vulkan=auto \
1229 -Dlibmpv=true \
1330 -Dlua=enabled \
1431 -Dopenal=enabled \
meson.build+7−7
@@ -19,12 +19,12 @@ source_root = meson.project_source_root() · 18 unmodified lines
1919 python = find_program('python3')
2020
2121 # ffmpeg
22−libavcodec = dependency('libavcodec', version: '>= 58.134.100')
23−libavfilter = dependency('libavfilter', version: '>= 7.110.100')
24−libavformat = dependency('libavformat', version: '>= 58.76.100')
25−libavutil = dependency('libavutil', version: '>= 56.70.100')
26−libswresample = dependency('libswresample', version: '>= 3.9.100')
27−libswscale = dependency('libswscale', version: '>= 5.9.100')
22+libavcodec = dependency('libavcodec', version: '>= 60.31.102')
23+libavfilter = dependency('libavfilter', version: '>= 9.12.100')
24+libavformat = dependency('libavformat', version: '>= 60.16.100')
25+libavutil = dependency('libavutil', version: '>= 58.29.100')
26+libswresample = dependency('libswresample', version: '>= 4.12.100')
27+libswscale = dependency('libswscale', version: '>= 7.5.100')
2828
2929 libplacebo = dependency('libplacebo', version: '>=6.338.2',
3030 default_options: ['default_library=static', 'demos=false'])
@@ -669,7 +669,7 @@ if features['libarchive'] · 638 unmodified lines
669669 'stream/stream_libarchive.c')
670670 endif
671671
672−libavdevice = dependency('libavdevice', version: '>= 58.13.100', required: get_option('libavdevice'))
672+libavdevice = dependency('libavdevice', version: '>= 60.3.100', required: get_option('libavdevice'))
673673 features += {'libavdevice': libavdevice.found()}
674674 if features['libavdevice']
675675 dependencies += libavdevice

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t