Compare commits
27 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
569a789432 | ||
![]() |
b36890f293 | ||
![]() |
7662805806 | ||
![]() |
b445e67952 | ||
![]() |
293a602e6f | ||
![]() |
c98389f743 | ||
![]() |
890a31b49b | ||
![]() |
5762e8c223 | ||
![]() |
c66e8654d3 | ||
![]() |
dd58003f0c | ||
![]() |
22009f8153 | ||
![]() |
8bfb822127 | ||
![]() |
80a178d335 | ||
![]() |
90118b85ec | ||
![]() |
ce5b0ae521 | ||
![]() |
7d68bf05f2 | ||
![]() |
741f9f09a7 | ||
![]() |
9827d2a397 | ||
![]() |
4e4ed6268c | ||
![]() |
3f358307d4 | ||
![]() |
49dc603a7e | ||
![]() |
9c9d5bc9af | ||
![]() |
833f59c056 | ||
![]() |
c6105dcbcd | ||
![]() |
34ba575e93 | ||
![]() |
e8bc575304 | ||
![]() |
778632362f |
44
.github/actions/libkvazaar/action.yml
vendored
Normal file
44
.github/actions/libkvazaar/action.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
name: libkvazaar
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
refId:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
config:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- name: Set up GIT
|
||||||
|
shell: cmd
|
||||||
|
run: |
|
||||||
|
git config --global core.autocrlf false
|
||||||
|
git config --global core.eol lf
|
||||||
|
- name: Checkout KVAZAAR
|
||||||
|
uses: actions/checkout@v3.0.0
|
||||||
|
with:
|
||||||
|
repository: ultravideo/kvazaar
|
||||||
|
ref: ${{ inputs.refId }}
|
||||||
|
path: kvazaar
|
||||||
|
- name: Set up MSYS2
|
||||||
|
uses: msys2/setup-msys2@v2
|
||||||
|
with:
|
||||||
|
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||||
|
path-type: inherit
|
||||||
|
- name: Build KVAZAAR
|
||||||
|
shell: cmd
|
||||||
|
env:
|
||||||
|
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||||
|
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||||
|
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||||
|
run: |
|
||||||
|
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||||
|
md build build\include build\lib build\lib\pkgconfig dist
|
||||||
|
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd kvazaar ; ./autogen.sh ; CC=cl ./configure --prefix=$(realpath ../build) CPPFLAGS=-DKVZ_STATIC_LIB || true ; make -j ; make install-lib-static ; cd ../build ; tar czf ../dist/libkvazaar.tgz *'
|
||||||
|
- name: Publish artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: libopus-${{ runner.os }}-${{ inputs.config }}
|
||||||
|
path: dist/libkvazaar.tgz
|
13
.github/workflows/ffmpeg-lgpl.yaml
vendored
13
.github/workflows/ffmpeg-lgpl.yaml
vendored
@ -32,7 +32,7 @@ on:
|
|||||||
ffmpegRef:
|
ffmpegRef:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: 'master'
|
default: 'release/6.1'
|
||||||
description: 'FFmpeg refId'
|
description: 'FFmpeg refId'
|
||||||
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
@ -133,10 +133,19 @@ jobs:
|
|||||||
refId: v1.3.1
|
refId: v1.3.1
|
||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
|
#libkvazaar:
|
||||||
|
# runs-on: ${{ inputs.system }}
|
||||||
|
# steps:
|
||||||
|
# - uses: actions/checkout@v3
|
||||||
|
# - uses: ./.github/actions/libkvazaar
|
||||||
|
# with:
|
||||||
|
# refId: v2.3.0
|
||||||
|
# config: ${{ inputs.config }}
|
||||||
|
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
runs-on: ${{ inputs.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
needs: [libvpl,libsvtav1,libsnappy,libvpx,libmp3lame,libzimg,libopus]
|
needs: [libvpl,libsvtav1,libsnappy,libvpx,libmp3lame,libzimg,libopus]
|
||||||
#liboggvorbis
|
#libkvazaar,liboggvorbis
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
|
8
.github/workflows/ffmpeg.yml
vendored
8
.github/workflows/ffmpeg.yml
vendored
@ -32,7 +32,7 @@ on:
|
|||||||
ffmpegRef:
|
ffmpegRef:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: 'release/6.0'
|
default: 'release/6.1'
|
||||||
description: 'FFmpeg refId'
|
description: 'FFmpeg refId'
|
||||||
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
@ -52,7 +52,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||||
COMPONENTS: "--enable-libvpl --enable-libsvtav1 --enable-libsnappy --enable-libmp3lame --enable-libzimg --enable-libvorbis --enable-libopus --enable-libx264 --enable-libx265 --enable-libfdk-aac"
|
COMPONENTS: "--enable-libvpl --enable-libsvtav1 --enable-libsnappy --enable-libmp3lame --enable-libzimg --enable-libvorbis --enable-libopus --enable-libvpx --enable-libx264 --enable-libx265 --enable-libfdk-aac"
|
||||||
NASM_EXECUTABLE: nasm
|
NASM_EXECUTABLE: nasm
|
||||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||||
variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared' }}
|
variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared' }}
|
||||||
@ -65,7 +65,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libvpl
|
- uses: ./.github/actions/libvpl
|
||||||
with:
|
with:
|
||||||
refId: v2023.3.1
|
refId: v2023.4.0
|
||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
liboggvorbis:
|
liboggvorbis:
|
||||||
@ -102,7 +102,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libvpx
|
- uses: ./.github/actions/libvpx
|
||||||
with:
|
with:
|
||||||
refId: v1.13.0
|
refId: v1.13.1
|
||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libmp3lame:
|
libmp3lame:
|
||||||
|
62
.github/workflows/test.yml
vendored
62
.github/workflows/test.yml
vendored
@ -14,7 +14,7 @@ on:
|
|||||||
type:
|
type:
|
||||||
type: choice
|
type: choice
|
||||||
required: true
|
required: true
|
||||||
default: 'static'
|
default: 'shared'
|
||||||
description: Type
|
description: Type
|
||||||
options:
|
options:
|
||||||
- static
|
- static
|
||||||
@ -32,7 +32,7 @@ on:
|
|||||||
ffmpegRef:
|
ffmpegRef:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: 'release/5.1'
|
default: 'release/6.1'
|
||||||
description: 'FFmpeg refId'
|
description: 'FFmpeg refId'
|
||||||
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
@ -52,60 +52,20 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||||
COMPONENTS: " "
|
COMPONENTS: "--enable-libvpl --enable-libsvtav1 --enable-libsnappy --enable-libmp3lame --enable-libzimg --enable-libvpx --enable-libopus --enable-libkvazaar"
|
||||||
|
#--enable-libvorbis
|
||||||
NASM_EXECUTABLE: nasm
|
NASM_EXECUTABLE: nasm
|
||||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||||
variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared' }}
|
variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared --build-suffix=-voukoderpro' }}
|
||||||
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ffmpeg:
|
libkvazaar:
|
||||||
runs-on: ${{ inputs.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
needs: []
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- uses: actions/checkout@v3
|
||||||
uses: msys2/setup-msys2@v2
|
- uses: ./.github/actions/libkvazaar
|
||||||
with:
|
with:
|
||||||
install: base-devel binutils mingw-w64-x86_64-cmake nasm
|
refId: v2.3.0
|
||||||
path-type: inherit
|
config: ${{ inputs.config }}
|
||||||
- name: Set up GIT
|
|
||||||
run: |
|
|
||||||
git config --global core.autocrlf false
|
|
||||||
git config --global core.eol lf
|
|
||||||
git config --global user.email "daniel.stankewitz@gmail.com"
|
|
||||||
git config --global user.name "Daniel Stankewitz"
|
|
||||||
- name: Checkout patches
|
|
||||||
uses: actions/checkout@v3.0.0
|
|
||||||
- name: Checkout FFmpeg
|
|
||||||
uses: actions/checkout@v3.0.0
|
|
||||||
with:
|
|
||||||
repository: FFmpeg/FFmpeg.git
|
|
||||||
ref: ${{ inputs.ffmpegRef }}
|
|
||||||
path: ffmpeg
|
|
||||||
- name: Checkout NvEnc
|
|
||||||
uses: actions/checkout@v3.0.0
|
|
||||||
with:
|
|
||||||
repository: FFmpeg/nv-codec-headers
|
|
||||||
ref: master
|
|
||||||
path: nvenc
|
|
||||||
- name: Checkout AMF
|
|
||||||
uses: actions/checkout@v3.0.0
|
|
||||||
with:
|
|
||||||
repository: GPUOpen-LibrariesAndSDKs/AMF
|
|
||||||
ref: master
|
|
||||||
path: amf
|
|
||||||
- name: Set up artifacts
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
path: build_artifacts
|
|
||||||
- name: Build FFmpeg
|
|
||||||
shell: cmd
|
|
||||||
run: |
|
|
||||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
|
||||||
md build dist
|
|
||||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ffmpeg ; git apply --ignore-whitespace ../amd-av1-amf.patch ; git apply --ignore-whitespace ../nvidia-av1-nvenc.patch ; git apply --ignore-whitespace --verbose ../libfdkaac-dynlib-5.1.patch ; sed -i "s/#define X264_API_IMPORTS 1/\/\/#define X264_API_IMPORTS 1/g" libavcodec/libx264.c ; cd ../build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $file; done ; rm -f bin/*.dll ; cd ../nvenc ; make PREFIX=../build install ; cp -a ../amf/amf/public/include ../build/include/AMF ; cd ../ffmpeg ; PKG_CONFIG_PATH=../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../build/include" --extra-ldflags="-LIBPATH:../build/lib" --prefix=../build --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc ${{ env.variant }} --enable-runtime-cpudetect --enable-w32threads --enable-gpl ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib" ; done ; rm -rf fdk-aac.lib cmake pkgconfig *.la ../share ; cd .. ; tar czf ../dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz *'
|
|
||||||
- name: Publish FFmpeg artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: FFmpeg ${{ inputs.system }} ${{ inputs.config }}${{ inputs.config }} package build
|
|
||||||
path: dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user