Skip to content
Closed
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/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ jobs:
"libdrm-dev:$package_arch"
"libgl-dev:$package_arch"
"libglx-dev:$package_arch"
"libvulkan-dev:$package_arch"
"libwayland-dev:$package_arch"
"libwayland-client0:$package_arch"
"libx11-dev:$package_arch"
Expand Down Expand Up @@ -492,6 +493,8 @@ jobs:
devel/pkgconf \
graphics/libdrm \
graphics/libglvnd \
graphics/vulkan-headers \
graphics/vulkan-loader \
graphics/wayland \
multimedia/libass \
multimedia/libv4l \
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ option(BUILD_FFMPEG_X264 "Build FFmpeg x264" ON)
option(BUILD_FFMPEG_X264_PATCHES "Apply FFmpeg x264 patches" ON)
option(BUILD_FFMPEG_X265 "Build FFmpeg x265" ON)
option(BUILD_FFMPEG_X265_PATCHES "Apply FFmpeg x265 patches" ON)
option(BUILD_FFMPEG_VULKAN "Build FFmpeg with Vulkan video encoding support" ON)

# common includes
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/apply_git_patch.cmake)
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ pkg install -y \
devel/nasm \
devel/ninja \
devel/pkgconf \
graphics/vulkan-headers \
graphics/vulkan-loader \
multimedia/libass \
multimedia/libv4l \
multimedia/libva \
Expand All @@ -86,7 +88,7 @@ pkg install -y \

```bash
sudo apt install -y \
autoconf \
autoconf \
automake \
build-essential \
cmake \
Expand All @@ -100,6 +102,7 @@ autoconf \
libsdl2-dev \
libtool \
libvorbis-dev \
libvulkan-dev \
libxcb1-dev \
libxcb-shm0-dev \
libxcb-xfixes0-dev \
Expand Down
2 changes: 2 additions & 0 deletions cmake/ffmpeg/_main.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set(AVCODEC_GENERATED_SRC_PATH ${CMAKE_CURRENT_BINARY_DIR}/FFmpeg/libavcodec)

if(WIN32)
set(BUILD_FFMPEG_LIBVA OFF)
set(BUILD_FFMPEG_VULKAN OFF)

# We must disable CUDA and NVENC on ARM64 until following issues is resolved
# https://github.com/FFmpeg/FFmpeg/blob/4e5523c98597a417eb43555933b1075d18ec5f8b/configure#L7443
Expand All @@ -17,6 +18,7 @@ elseif(APPLE)
set(BUILD_FFMPEG_MF OFF)
set(BUILD_FFMPEG_NV_CODEC_HEADERS OFF)
set(BUILD_FFMPEG_LIBVA OFF)
set(BUILD_FFMPEG_VULKAN OFF)
elseif(FREEBSD)
set(BUILD_FFMPEG_AMF OFF)
set(BUILD_FFMPEG_MF OFF)
Expand Down
6 changes: 6 additions & 0 deletions cmake/ffmpeg/ffmpeg.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ if(BUILD_FFMPEG_LIBVA)
--enable-encoder=h264_vaapi,hevc_vaapi,av1_vaapi
)
endif()
if(BUILD_FFMPEG_VULKAN)
list(APPEND FFMPEG_EXTRA_CONFIGURE
--enable-vulkan
--enable-encoder=h264_vulkan,hevc_vulkan,av1_vulkan
)
endif()
if(BUILD_FFMPEG_X264)
list(APPEND FFMPEG_EXTRA_CONFIGURE
--enable-libx264
Expand Down
Loading