bare-ffmpeg 1.0.0-32 → 1.0.0-33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CMakeLists.txt +31 -9
- package/README.md +65 -1761
- package/binding.cc +734 -1
- package/cmake/ports/ffmpeg/port.cmake +8 -9
- package/cmake/ports/libdrm/port.cmake +32 -0
- package/cmake/ports/libva/port.cmake +53 -0
- package/cmake/ports/x264/port.cmake +7 -2
- package/index.js +6 -0
- package/lib/codec-context.js +9 -0
- package/lib/codec-parameters.js +32 -0
- package/lib/codec.js +1 -0
- package/lib/constants.js +118 -1
- package/lib/frame.js +19 -0
- package/lib/hw-device-context.js +31 -0
- package/lib/hw-frames-constraints.js +54 -0
- package/lib/hw-frames-context.js +92 -0
- package/package.json +1 -1
- package/prebuilds/android-arm/bare-ffmpeg.bare +0 -0
- package/prebuilds/android-arm64/bare-ffmpeg.bare +0 -0
- package/prebuilds/android-ia32/bare-ffmpeg.bare +0 -0
- package/prebuilds/android-x64/bare-ffmpeg.bare +0 -0
- package/prebuilds/darwin-arm64/bare-ffmpeg.bare +0 -0
- package/prebuilds/darwin-x64/bare-ffmpeg.bare +0 -0
- package/prebuilds/ios-arm64/bare-ffmpeg.bare +0 -0
- package/prebuilds/ios-arm64-simulator/bare-ffmpeg.bare +0 -0
- package/prebuilds/ios-x64-simulator/bare-ffmpeg.bare +0 -0
- package/prebuilds/linux-arm64/bare-ffmpeg/libva-drm.so.2 +0 -0
- package/prebuilds/linux-arm64/bare-ffmpeg/libva.so.2 +0 -0
- package/prebuilds/linux-arm64/bare-ffmpeg.bare +0 -0
- package/prebuilds/linux-x64/bare-ffmpeg/libva-drm.so.2 +0 -0
- package/prebuilds/linux-x64/bare-ffmpeg/libva.so.2 +0 -0
- package/prebuilds/linux-x64/bare-ffmpeg.bare +0 -0
- package/prebuilds/win32-arm64/bare-ffmpeg.bare +0 -0
- package/prebuilds/win32-x64/bare-ffmpeg.bare +0 -0
package/CMakeLists.txt
CHANGED
|
@@ -6,11 +6,25 @@ find_package(cmake-ports REQUIRED PATHS node_modules/cmake-ports)
|
|
|
6
6
|
|
|
7
7
|
project(bare_ffmpeg C CXX)
|
|
8
8
|
|
|
9
|
+
option(BARE_FFMPEG_ENABLE_GPL "Enable GPL-licensed features (e.g., x264)" OFF)
|
|
10
|
+
|
|
9
11
|
fetch_package("github:holepunchto/libjstl#098664c")
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
set(ffmpeg_features dav1d svt-av1 opus)
|
|
14
|
+
|
|
15
|
+
if(BARE_FFMPEG_ENABLE_GPL)
|
|
16
|
+
list(APPEND ffmpeg_features gpl x264)
|
|
17
|
+
endif()
|
|
18
|
+
|
|
19
|
+
find_port(ffmpeg FEATURES ${ffmpeg_features})
|
|
20
|
+
|
|
21
|
+
set(install_targets)
|
|
12
22
|
|
|
13
|
-
|
|
23
|
+
if(LINUX)
|
|
24
|
+
list(APPEND install_targets TARGET va TARGET va-drm)
|
|
25
|
+
endif()
|
|
26
|
+
|
|
27
|
+
add_bare_module(bare_ffmpeg INSTALL ${install_targets})
|
|
14
28
|
|
|
15
29
|
harden(${bare_ffmpeg})
|
|
16
30
|
|
|
@@ -20,14 +34,22 @@ target_sources(
|
|
|
20
34
|
binding.cc
|
|
21
35
|
)
|
|
22
36
|
|
|
37
|
+
set(link_libraries
|
|
38
|
+
avcodec
|
|
39
|
+
avdevice
|
|
40
|
+
avformat
|
|
41
|
+
avutil
|
|
42
|
+
swresample
|
|
43
|
+
swscale
|
|
44
|
+
jstl
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
if(LINUX)
|
|
48
|
+
list(APPEND link_libraries va va-drm)
|
|
49
|
+
endif()
|
|
50
|
+
|
|
23
51
|
target_link_libraries(
|
|
24
52
|
${bare_ffmpeg}
|
|
25
53
|
PRIVATE
|
|
26
|
-
|
|
27
|
-
avdevice
|
|
28
|
-
avformat
|
|
29
|
-
avutil
|
|
30
|
-
swresample
|
|
31
|
-
swscale
|
|
32
|
-
jstl
|
|
54
|
+
${link_libraries}
|
|
33
55
|
)
|