Compare commits

...

44 Commits

Author SHA1 Message Date
Daniel Stankewitz
569a789432
Update ffmpeg-lgpl.yaml 2024-03-07 08:59:43 +01:00
Daniel Stankewitz
b36890f293
Update ffmpeg-lgpl.yaml 2024-03-07 08:33:35 +01:00
Daniel Stankewitz
7662805806
Update action.yml 2024-03-07 08:21:05 +01:00
Daniel Stankewitz
b445e67952
Update action.yml 2024-03-07 08:13:27 +01:00
Daniel Stankewitz
293a602e6f
Update action.yml 2024-03-07 08:07:00 +01:00
Daniel Stankewitz
c98389f743
Update action.yml 2024-03-07 07:59:57 +01:00
Daniel Stankewitz
890a31b49b
Update test.yml 2024-03-07 07:50:35 +01:00
Daniel Stankewitz
5762e8c223
Update action.yml 2024-03-07 07:33:38 +01:00
Daniel Stankewitz
c66e8654d3
Update ffmpeg-lgpl.yaml 2024-03-05 11:34:38 +01:00
Daniel Stankewitz
dd58003f0c
Update action.yml 2024-03-05 11:33:57 +01:00
Daniel Stankewitz
22009f8153
Update action.yml 2024-03-05 11:28:19 +01:00
Daniel Stankewitz
8bfb822127
Update action.yml 2024-03-05 11:26:32 +01:00
Daniel Stankewitz
80a178d335
Create action.yml 2024-03-05 11:25:42 +01:00
Daniel Stankewitz
90118b85ec
Update ffmpeg-lgpl.yaml 2024-03-05 11:24:58 +01:00
Daniel Stankewitz
ce5b0ae521
Update ffmpeg-lgpl.yaml 2024-01-13 14:52:23 +01:00
Daniel Stankewitz
7d68bf05f2
Update ffmpeg-lgpl.yaml 2024-01-13 14:49:24 +01:00
Daniel Stankewitz
741f9f09a7
Update ffmpeg-lgpl.yaml 2024-01-13 14:46:54 +01:00
Daniel Stankewitz
9827d2a397
Update ffmpeg-lgpl.yaml 2024-01-13 14:44:42 +01:00
Daniel Stankewitz
4e4ed6268c
Update ffmpeg-lgpl.yaml 2024-01-13 14:41:10 +01:00
Daniel Stankewitz
3f358307d4
Update ffmpeg-lgpl.yaml 2024-01-13 14:39:19 +01:00
Daniel Stankewitz
49dc603a7e
Update ffmpeg.yml 2024-01-01 16:32:55 +01:00
Daniel Stankewitz
9c9d5bc9af
Update libfdkaac.patch 2023-12-21 12:39:13 +01:00
Daniel Stankewitz
833f59c056
Update libfdkaac.patch 2023-12-21 11:53:46 +01:00
Daniel Stankewitz
c6105dcbcd
Update ffmpeg.yml 2023-12-21 11:02:23 +01:00
Daniel Stankewitz
34ba575e93
Update ffmpeg.yml 2023-12-21 11:00:25 +01:00
Daniel Stankewitz
e8bc575304
Update libfdkaac.patch 2023-12-21 10:45:50 +01:00
Daniel Stankewitz
778632362f
Update ffmpeg.yml 2023-10-29 12:15:42 +01:00
Daniel Stankewitz
d580fdacf9
Update ffmpeg.yml 2023-10-25 11:04:44 +02:00
Daniel Stankewitz
fb68a11db0
Update ffmpeg.yml 2023-10-25 10:38:09 +02:00
Daniel Stankewitz
5c662bbf4c
Update ffmpeg.yml 2023-10-25 10:36:21 +02:00
Daniel Stankewitz
27fe5ace74
Update ffmpeg.yml 2023-10-25 10:06:39 +02:00
Daniel Stankewitz
5805c7d571
Update ffmpeg-lgpl.yaml 2023-08-19 15:21:35 +02:00
Daniel Stankewitz
4684230ae5
Update ffmpeg-lgpl.yaml 2023-08-11 10:56:08 +02:00
Daniel Stankewitz
e7592e5bbd
Update ffmpeg-lgpl.yaml 2023-08-11 10:21:42 +02:00
Daniel Stankewitz
99683552f4
Update ffmpeg.yml 2023-08-08 18:20:35 +02:00
Daniel Stankewitz
946b581996
Update ffmpeg.yml 2023-08-08 18:11:48 +02:00
Daniel Stankewitz
717556bb3c
Update ffmpeg.yml 2023-08-08 18:10:25 +02:00
Daniel Stankewitz
9e98f7ba0b
Update ffmpeg-lgpl.yaml 2023-06-21 19:29:26 +02:00
Daniel Stankewitz
fd2416deca
Update ffmpeg-lgpl.yaml 2023-06-21 18:59:04 +02:00
Daniel Stankewitz
70b0e356b5
Update ffmpeg-lgpl.yaml 2023-06-21 16:16:32 +02:00
Daniel Stankewitz
ec49fc8f45
Update ffmpeg-lgpl.yaml 2023-06-21 14:29:41 +02:00
Daniel Stankewitz
5b8b185a19
Signing DLLs 2023-06-21 10:04:00 +02:00
Daniel Stankewitz
e276db8230
Update action.yml 2023-06-15 13:06:05 +02:00
Daniel Stankewitz
40c5f1b9f4
nvenc headers 2023-06-15 12:55:59 +02:00
5 changed files with 88 additions and 65 deletions

44
.github/actions/libkvazaar/action.yml vendored Normal file
View 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

View File

@ -30,7 +30,7 @@ runs:
run: | run: |
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
md build build\include build\lib build\lib\pkgconfig dist md build build\include build\lib build\lib\pkgconfig dist
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd vpx ; ./configure --prefix=../build --target=x86_64-win64-vs17 --enable-vp9-highbitdepth --disable-shared --disable-examples --disable-tools --disable-docs --disable-libyuv --disable-unit_tests --disable-postproc ; make -j ; make install ; mv ../build/lib/x64/vpxmd.lib ../build/lib/vpx.lib ; rm -rf ../build/lib/x64 ; cd ../build ; tar czf ../dist/libvpx.tgz *' D:\a\_temp\setup-msys2\msys2.cmd -c 'cd vpx ; ./configure --prefix=../build --target=x86_64-win64-vs17 --enable-vp9-highbitdepth --disable-shared --disable-examples --disable-tools --disable-docs --disable-libyuv --disable-unit_tests ; make -j ; make install ; mv ../build/lib/x64/vpxmd.lib ../build/lib/vpx.lib ; rm -rf ../build/lib/x64 ; cd ../build ; tar czf ../dist/libvpx.tgz *'
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:

View File

@ -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:
@ -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-libvpx --enable-libopus " COMPONENTS: "--enable-libvpl --enable-libsvtav1 --enable-libsnappy --enable-libmp3lame --enable-libzimg --enable-libvpx --enable-libopus"
#--enable-libvorbis #--enable-libvorbis
NASM_EXECUTABLE: nasm NASM_EXECUTABLE: nasm
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
@ -66,7 +66,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libvpl - uses: ./.github/actions/libvpl
with: with:
refId: master refId: v2023.3.1
config: ${{ inputs.config }} config: ${{ inputs.config }}
#liboggvorbis: #liboggvorbis:
@ -133,16 +133,35 @@ 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
with: with:
install: base-devel binutils mingw-w64-x86_64-cmake nasm install: base-devel binutils mingw-w64-x86_64-cmake nasm
path-type: inherit path-type: inherit
- name: Create PFX certificate
id: create-pfx
shell: pwsh
env:
PFX_CONTENT: ${{ secrets.CODESIGN_PFX }}
run: |
$pfxPath = Join-Path -Path $env:RUNNER_TEMP -ChildPath "cert.pfx";
$encodedBytes = [System.Convert]::FromBase64String($env:PFX_CONTENT);
Set-Content $pfxPath -Value $encodedBytes -AsByteStream;
Write-Output "::set-output name=PFX_PATH::$pfxPath";
- name: Set up GIT - name: Set up GIT
run: | run: |
git config --global core.autocrlf false git config --global core.autocrlf false
@ -178,7 +197,7 @@ jobs:
run: | run: |
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
md build dist md build dist
D:\a\_temp\setup-msys2\msys2.cmd -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 ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../build/lib ; rm -rf cmake pkgconfig *.la ; cd .. ; tar czf ../dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz *' D:\a\_temp\setup-msys2\msys2.cmd -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-cuda ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../build/lib ; rm -rf cmake pkgconfig *.la ; cd .. ; tar czf ../dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz *'
- name: Publish FFmpeg artifacts - name: Publish FFmpeg artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:

View File

@ -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: master refId: v2023.4.0
config: ${{ inputs.config }} config: ${{ inputs.config }}
liboggvorbis: liboggvorbis:
@ -84,7 +84,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libsvtav1 - uses: ./.github/actions/libsvtav1
with: with:
refId: v1.4.1 refId: v1.7.0
config: ${{ inputs.config }} config: ${{ inputs.config }}
libsnappy: libsnappy:
@ -93,7 +93,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libsnappy - uses: ./.github/actions/libsnappy
with: with:
refId: 1.1.9 refId: 1.1.10
config: ${{ inputs.config }} config: ${{ inputs.config }}
libvpx: libvpx:
@ -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:
@ -120,7 +120,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libzimg - uses: ./.github/actions/libzimg
with: with:
refId: release-3.0.4 refId: release-3.0.5
config: ${{ inputs.config }} config: ${{ inputs.config }}
libopus: libopus:
@ -129,7 +129,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/libopus - uses: ./.github/actions/libopus
with: with:
refId: v1.3.1 refId: v1.4
config: ${{ inputs.config }} config: ${{ inputs.config }}
libfdkaac: libfdkaac:

View File

@ -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