[vlc-commits] [Git][videolan/vlc][master] 2 commits: contrib: add AMF package to enable AMF encoder in FFMPEG

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sat Nov 19 13:53:38 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
f1a2665f by Evgeny Pavlov at 2022-11-19T13:03:30+00:00
contrib: add AMF package to enable AMF encoder in FFMPEG

- - - - -
dc1decb2 by Evgeny Pavlov at 2022-11-19T13:03:30+00:00
contrib: ffmpeg: add dependency for AMF package

- - - - -


3 changed files:

- + contrib/src/amf/SHA512SUMS
- + contrib/src/amf/rules.mak
- contrib/src/ffmpeg/rules.mak


Changes:

=====================================
contrib/src/amf/SHA512SUMS
=====================================
@@ -0,0 +1 @@
+2c931ef7d38ade88a96041e0012605a5d25ec484bb2134f58310cf1a2c7212a869797cef99e2e751c8a6b3c473ba1f8762d4a5d41466d38cb5e31bf664a25f55  AMF-1.4.26.tar.gz


=====================================
contrib/src/amf/rules.mak
=====================================
@@ -0,0 +1,29 @@
+# AMF
+
+AMF_VERSION := 1.4.26
+AMF_URL := $(GITHUB)/GPUOpen-LibrariesAndSDKs/AMF/archive/refs/tags/v$(AMF_VERSION).tar.gz
+
+ifeq ($(ARCH),x86_64)
+ifdef HAVE_WIN32
+PKGS += amf
+endif
+ifdef HAVE_LINUX
+ifndef HAVE_ANDROID
+PKGS += amf
+endif
+endif
+endif
+
+$(TARBALLS)/AMF-$(AMF_VERSION).tar.gz:
+	$(call download_pkg,$(AMF_URL),AMF)
+
+.sum-amf: AMF-$(AMF_VERSION).tar.gz
+
+amf: AMF-$(AMF_VERSION).tar.gz .sum-amf
+	$(UNPACK)
+	$(MOVE)
+
+.amf: amf
+	mkdir -p $(PREFIX)/include/AMF
+	cp -R $(UNPACK_DIR)/amf/public/include/* $(PREFIX)/include/AMF
+	touch $@


=====================================
contrib/src/ffmpeg/rules.mak
=====================================
@@ -54,6 +54,10 @@ else
 FFMPEGCONF += --disable-encoders --disable-muxers
 endif
 
+ifneq ($(findstring amf,$(PKGS)),)
+DEPS_ffmpeg += amf $(DEPS_amf)
+endif
+
 # Postproc
 MAYBE_POSTPROC =
 ifdef GPL



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/dd9e8538147378eeaeb6442205d8a7db171b7488...dc1decb2609ca44c78b8bd2db77dd87a85dbcb92

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/dd9e8538147378eeaeb6442205d8a7db171b7488...dc1decb2609ca44c78b8bd2db77dd87a85dbcb92
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list