Skip to content

Commit

Permalink
Enable videotoolbox, require MacOS >= 10.13
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Jun 18, 2024
1 parent a3f68cc commit 6a17d45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-ffmpeg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Set deployment target
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
run: echo "MACOSX_DEPLOYMENT_TARGET=10.13" >> $GITHUB_ENV
- name: Install packages
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
run: |
Expand Down
9 changes: 5 additions & 4 deletions scripts/build-ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@ def main():
"--disable-doc",
"--disable-libtheora",
"--disable-mediafoundation",
"--disable-videotoolbox",
"--enable-fontconfig",
"--enable-gmp",
"--enable-gnutls" if use_gnutls else "--disable-gnutls",
Expand All @@ -386,9 +385,6 @@ def main():
"--enable-zlib",
"--enable-version3",
]
if plat == "Darwin":
ffmpeg_package.build_arguments.append("--extra-ldflags=-Wl,-ld_classic")

if disable_gpl:
ffmpeg_package.build_arguments.extend(
["--enable-libopenh264", "--disable-libx264"]
Expand All @@ -403,6 +399,11 @@ def main():
"--enable-gpl",
]
)
if plat == "Darwin":
ffmpeg_package.build_arguments.extend(
["--enable-videotoolbox", "--extra-ldflags=-Wl,-ld_classic"]
)


if use_gnutls:
library_group += gnutls_group
Expand Down

0 comments on commit 6a17d45

Please sign in to comment.