Skip to content

Commit 35cd836

Browse files
committed
Build FFmpeg 8.1
1 parent 50b84b4 commit 35cd836

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The builds are provided for several platforms:
1414
Features
1515
--------
1616

17-
Currently FFmpeg 8.0.1 is built with the following packages enabled for all platforms:
17+
Currently FFmpeg 8.1 is built with the following packages enabled for all platforms:
1818

1919
- lame 3.100
2020
- ogg 1.3.6

patches/ffmpeg.patch

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ index 8cc91625c7..481d63a39f 100644
3131
+#include <asm/unistd.h>
3232
#include <sys/syscall.h>
3333
#include <unistd.h>
34-

scripts/build-ffmpeg.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ def calculate_sha256(filename: str) -> str:
210210

211211
ffmpeg_package = Package(
212212
name="ffmpeg",
213-
source_url="https://ffmpeg.org/releases/ffmpeg-8.0.1.tar.xz",
214-
sha256="05ee0b03119b45c0bdb4df654b96802e909e0a752f72e4fe3794f487229e5a41",
213+
source_url="https://ffmpeg.org/releases/ffmpeg-8.1.tar.xz",
214+
sha256="b072aed6871998cce9b36e7774033105ca29e33632be5b6347f3206898e0756a",
215215
)
216216

217217

@@ -401,11 +401,7 @@ def main():
401401

402402
if plat == "Windows" and is_arm:
403403
ffmpeg_package.build_arguments.extend(
404-
[
405-
"--cc=clang",
406-
"--cxx=clang++",
407-
"--arch=aarch64",
408-
]
404+
["--cc=clang", "--cxx=clang++", "--arch=aarch64"]
409405
)
410406

411407
ffmpeg_package.build_arguments.extend(
@@ -414,6 +410,7 @@ def main():
414410
"--disable-decoder=sonic",
415411
"--disable-libjack",
416412
"--disable-indev=jack",
413+
"--disable-filter=gfxcapture_winrt", # Causes issues on Win Arm
417414
]
418415
)
419416

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
if sys.platform == "win32":
55
include_dirs = ["C:\\cibw\\vendor\\include"]
66
library_dirs = ["C:\\cibw\\vendor\\lib"]
7+
extra_link_args = []
78
else:
89
include_dirs = ["/tmp/vendor/include"]
910
library_dirs = ["/tmp/vendor/lib"]
11+
extra_link_args = ["-headerpad_max_install_names"] if sys.platform == "darwin" else []
1012

1113
setuptools.setup(
1214
name="dummy",
@@ -17,6 +19,7 @@
1719
"dummy.binding",
1820
include_dirs=include_dirs,
1921
library_dirs=library_dirs,
22+
extra_link_args=extra_link_args,
2023
libraries=[
2124
"avformat",
2225
"avcodec",

0 commit comments

Comments
 (0)