Skip to content

Commit

Permalink
Bump ffmpeg to 7.0 and enable vulkan in vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
streetpea committed May 12, 2024
1 parent a5647fc commit b38443e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-msys2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
cc:p
cmake:p
curl:p
diffutils:p
fast_float:p
fftw:p
hidapi:p
Expand Down Expand Up @@ -61,7 +62,7 @@ jobs:
- name: Install python protobuf and zip
run: |
pip install protobuf
pacman -S zip git --noconfirm
pacman -S zip git make --noconfirm
- name: Build libbplacebo
run: |
Expand Down
8 changes: 3 additions & 5 deletions scripts/build-ffmpeg-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ cd "./$1"
shift
ROOT="`pwd`"

TAG=n6.1
TAG=n7.0

git clone https://git.ffmpeg.org/ffmpeg.git --depth 1 -b $TAG && cd ffmpeg || exit 1
git apply ${SCRIPT_DIR}/flatpak/0001-lavc-vaapi_hevc-Fixup-invalid-references.patch || exit 1
git apply ${SCRIPT_DIR}/flatpak/0001-lavc-vaapi_h264-Fixup-invalid-references.patch || exit 1
git apply ${SCRIPT_DIR}/flatpak/0001-vulkan-ignore-frames-without-hw-context.patch || exit 1
./configure --disable-all --enable-static --enable-avformat --enable-avcodec --enable-decoder=h264 --enable-decoder=hevc --enable-hwaccel=h264_vaapi --enable-hwaccel=hevc_vaapi --enable-hwaccel=h264_vulkan --enable-hwaccel=hevc_vulkan --prefix=/mingw64 "$@" || exit 1
./configure --disable-all --enable-static --enable-avformat --enable-avcodec --enable-decoder=h264 --enable-decoder=hevc --enable-hwaccel=h264_vulkan --enable-hwaccel=hevc_vulkan --prefix=/usr/local "$@" || exit 1
make -j4 || exit 1
make install || exit 1
make install || exit 1
2 changes: 1 addition & 1 deletion scripts/build-ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cd "./$1"
shift
ROOT="`pwd`"

TAG=n6.1
TAG=n7.0

git clone https://git.ffmpeg.org/ffmpeg.git --depth 1 -b $TAG && cd ffmpeg || exit 1
git apply ${SCRIPT_DIR}/flatpak/0001-lavc-vaapi_hevc-Fixup-invalid-references.patch || exit 1
Expand Down
2 changes: 1 addition & 1 deletion scripts/ffmpeg-port/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ elseif(VCPKG_TARGET_IS_LINUX)
elseif(VCPKG_TARGET_IS_UWP)
string(APPEND OPTIONS " --target-os=win32 --enable-w32threads --enable-d3d11va --enable-mediafoundation")
elseif(VCPKG_TARGET_IS_WINDOWS)
string(APPEND OPTIONS " --target-os=win32 --enable-w32threads --enable-d3d11va --enable-dxva2 --enable-mediafoundation")
string(APPEND OPTIONS " --target-os=win32 --enable-w32threads --enable-d3d11va --enable-vulkan --enable-dxva2 --enable-mediafoundation")
elseif(VCPKG_TARGET_IS_OSX)
string(APPEND OPTIONS " --target-os=darwin --enable-appkit --enable-avfoundation --enable-coreimage --enable-audiotoolbox --enable-videotoolbox")
elseif(VCPKG_TARGET_IS_IOS)
Expand Down
4 changes: 2 additions & 2 deletions scripts/flatpak/chiaki4deck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ modules:
- --enable-hwaccel=hevc_vulkan
sources:
- type: archive
url: https://ffmpeg.org/releases/ffmpeg-6.1.tar.xz
sha256: 488c76e57dd9b3bee901f71d5c95eaf1db4a5a31fe46a28654e837144207c270
url: https://ffmpeg.org/releases/ffmpeg-7.0.tar.xz
sha256: 4426a94dd2c814945456600c8adfc402bee65ec14a70e8c531ec9a2cd651da7b
- type: patch
path: 0001-lavc-vaapi_hevc-Fixup-invalid-references.patch
- type: patch
Expand Down

0 comments on commit b38443e

Please sign in to comment.