Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable videotoolbox #103

Merged
merged 2 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading