Compare commits
124 Commits
Author | SHA1 | Date | |
---|---|---|---|
cf5c490ca7 | |||
740c0f1443 | |||
8e736fc176 | |||
0794129eb3 | |||
a510ee6450 | |||
cadbae2468 | |||
eed4f3bfd2 | |||
1173e86544 | |||
e4f69871fa | |||
847b88a4b4 | |||
beb2862876 | |||
bf9c403d51 | |||
4fc92a4b53 | |||
1db41d1069 | |||
5fce763b97 | |||
8cd96d2a1e | |||
adbbe8b0e2 | |||
8c1377ac0b | |||
f6b6de8146 | |||
d5c4a80332 | |||
89e2887db4 | |||
df491a68fd | |||
4418828161 | |||
158a3f4219 | |||
02c8f9089f | |||
cf638258b7 | |||
ebe0343972 | |||
29d3ae53b9 | |||
2744a17ea0 | |||
649f8542d4 | |||
61b2af2760 | |||
6e5afa8bd5 | |||
3e5859259a | |||
62166944bf | |||
85b34eb0c1 | |||
702d6bda6a | |||
3f9ddde766 | |||
28facf1b5f | |||
c3109dbae1 | |||
6d5c133800 | |||
e979b4ee9d | |||
a2350f473d | |||
36ddb729c5 | |||
cae9b66875 | |||
713613ff6f | |||
c9f3103a02 | |||
de055eec1f | |||
42175c4654 | |||
b309463c3d | |||
82d1853964 | |||
3ea263c5fc | |||
76c5a4779f | |||
1fe245034f | |||
4f496673c2 | |||
06b1779fcb | |||
8872ea8748 | |||
55949027f5 | |||
8d121ed665 | |||
024632c2b0 | |||
30c24bd34a | |||
acf3df4ff3 | |||
9ed037f47d | |||
0add715f1d | |||
09891f4dab | |||
67ea676a43 | |||
10adcb4b30 | |||
51d04c226a | |||
92558ec0fe | |||
099bd45b65 | |||
30326de759 | |||
a0306f7482 | |||
42ba9ed16a | |||
8a99c8191a | |||
287a563a0d | |||
64ebdbb558 | |||
b79b78022a | |||
f5a74179a5 | |||
bb8dc83221 | |||
67c37cd9e2 | |||
e9e97ab726 | |||
181af0c684 | |||
4adf604017 | |||
5c122f7c9c | |||
c490f875e1 | |||
99448ba228 | |||
4f08126a5b | |||
21c9f2a966 | |||
46eb4b8996 | |||
bb34f9235d | |||
162bd7a657 | |||
62b44ac5ed | |||
f3e31a5c17 | |||
8c1c88860b | |||
d976c0a693 | |||
fa34f5e06f | |||
b7ba32c1cb | |||
0ca0001fdc | |||
cedfb4f831 | |||
721da5031c | |||
4cb460ae3a | |||
c4552ae9f6 | |||
49dbae0739 | |||
911b943b8b | |||
dd9b7f02f5 | |||
39020cb85a | |||
1d71c25774 | |||
c3a854dff1 | |||
b4e3a01b9f | |||
4ddec41343 | |||
3bbaab4377 | |||
11b61948a3 | |||
0e943a3418 | |||
6dfde52c97 | |||
4925f91bc5 | |||
cf751b6179 | |||
991e88165e | |||
d11a030f7a | |||
87b01c3d32 | |||
ca5c74009e | |||
2cce057825 | |||
199183c25c | |||
0b17eb8a08 | |||
3ee7f9a5e6 | |||
9531c5f046 |
43
.github/actions/libfdkaac/action.yml
vendored
Normal file
43
.github/actions/libfdkaac/action.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
name: libfdkaac
|
||||
|
||||
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 FDK AAC
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: mstorsjo/fdk-aac
|
||||
ref: ${{ inputs.refId }}
|
||||
path: fdkaac
|
||||
- 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 FDK AAC
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd fdkaac ; autoreconf -fiv ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared --disable-static ; make ; make install ; cd ../build ; tar czf ../dist/libfdkaac.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libfdkaac-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libfdkaac.tgz
|
32
.github/actions/libmp3lame/action.yml
vendored
Normal file
32
.github/actions/libmp3lame/action.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
name: libmp3lame
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm svn
|
||||
path-type: inherit
|
||||
- name: Build LAME
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'svn co https://svn.code.sf.net/p/lame/svn/${{ inputs.refId }}/lame lame ; cd lame ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --enable-nasm --disable-frontend --disable-shared --enable-static ; make -j ; make install ; cd ../build ; tar czf ../dist/libmp3lame.tgz *
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libmp3lame-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libmp3lame.tgz
|
61
.github/actions/liboggvorbis/action.yml
vendored
Normal file
61
.github/actions/liboggvorbis/action.yml
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
name: liboggvorbis
|
||||
|
||||
inputs:
|
||||
libogg_refId:
|
||||
type: string
|
||||
required: true
|
||||
libvorbis_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 Ogg
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: xiph/ogg
|
||||
ref: ${{ inputs.libogg_refId }}
|
||||
path: ogg
|
||||
- name: Checkout Vorbis
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: xiph/vorbis
|
||||
ref: ${{ inputs.libvorbis_refId }}
|
||||
path: vorbis
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake
|
||||
path-type: inherit
|
||||
- name: Build Ogg
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ogg ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared ; make -j ; make install'
|
||||
- name: Build Vorbis
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd vorbis ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared ; make -j ; make install ; sed -i '/^Libs\.private.*/d' ../build/lib/pkgconfig/vorbis.pc ; cd ../build ; tar czf ../dist/liboggvorbis.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: liboggvorbis-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/liboggvorbis.tgz
|
46
.github/actions/libopus/action.yml
vendored
Normal file
46
.github/actions/libopus/action.yml
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
name: libopus
|
||||
|
||||
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 OPUS
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: xiph/opus
|
||||
ref: v1.3.1
|
||||
path: opus
|
||||
- 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 OPUS
|
||||
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
|
||||
cd opus\win32\VS2015
|
||||
MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" /property:Platform=x64 /property:PlatformToolset=v143 opus.vcxproj
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cp x64/${{ inputs.config }}/opus.lib ../../../build/lib/opus.lib ; cd ../../.. ; cp -r opus/include build/include/opus ; cp opus/opus.pc.in build/lib/pkgconfig/opus.pc ; sed -i "s#@prefix@#$(realpath ../../../build)#g" build/lib/pkgconfig/opus.pc ; sed -i "s/@exec_prefix@/\$\{prefix\}/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@libdir@/\$\{prefix\}\/lib/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@includedir@/\$\{prefix\}\/include/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@LIBM@//g" build/lib/pkgconfig/opus.pc; sed -i "s/@VERSION@/2.0.0/g" build/lib/pkgconfig/opus.pc ; cd build ; tar czf ../dist/libopus.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libopus-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libopus.tgz
|
50
.github/actions/libsnappy/action.yml
vendored
Normal file
50
.github/actions/libsnappy/action.yml
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
name: libsnappy
|
||||
|
||||
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 Snappy
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: google/snappy
|
||||
ref: ${{ inputs.refId }}
|
||||
path: snappy
|
||||
- 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 Snappy
|
||||
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
|
||||
cd snappy
|
||||
git submodule update --init
|
||||
md work
|
||||
cd work
|
||||
cmake -G "Visual Studio 17 2022" .. -DCMAKE_INSTALL_PREFIX=..\..\build -DBUILD_SHARED_LIBS=OFF -DSNAPPY_BUILD_TESTS=OFF
|
||||
MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" Snappy.sln
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cp ${{ inputs.config }}/snappy.lib ../../build/lib/snappy.lib ; cp ../snappy.h ../snappy-c.h ../../build/include/ ; cd ../../build ; tar czf ../dist/libsnappy.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libsnappy-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libsnappy.tgz
|
44
.github/actions/libsvtav1/action.yml
vendored
Normal file
44
.github/actions/libsvtav1/action.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
name: libsvtav1
|
||||
|
||||
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
|
||||
git clone -b ${{ inputs.refId }} https://gitlab.com/AOMediaCodec/SVT-AV1 svtav1
|
||||
#- name: Checkout SVT AV1
|
||||
# uses: actions/checkout@v3
|
||||
# with:
|
||||
# repository: AOMediaCodec/SVT-AV1
|
||||
# ref: ${{ inputs.refId }}
|
||||
# path: svtav1
|
||||
- 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 SVT AV1
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
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 svtav1/Build/windows ; ./build.bat 2022 ${{ inputs.config }} static ; cp -r ../../Source/API ../../../build/include/svt-av1 ; cp ../../Bin/${{ inputs.config }}/SvtAv1Enc.lib ../../../build/lib/ ; cp SvtAv1Enc.pc ../../../build/lib/pkgconfig/ ; cd ../../../build ; tar czf ../dist/libsvtav1.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libsvtav1-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libsvtav1.tgz
|
48
.github/actions/libvpl/action.yml
vendored
Normal file
48
.github/actions/libvpl/action.yml
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
name: libvpl
|
||||
|
||||
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 oneVPL
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: oneapi-src/oneVPL
|
||||
ref: ${{ inputs.refId }}
|
||||
path: onevpl
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake
|
||||
path-type: inherit
|
||||
- name: Build oneVPL
|
||||
shell: cmd
|
||||
#env:
|
||||
# vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
# msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md temp build dist
|
||||
cd temp
|
||||
cmake.exe -G "Visual Studio 17 2022" ..\onevpl -T host=x64 -A x64 -DBUILD_TOOLS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=..\build -DCMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD=ON
|
||||
MSBuild.exe -t:VPL,INSTALL -p:Configuration=${{ env.msbuildConfig }} -m vpl.sln
|
||||
cd ..\build
|
||||
IF EXIST "lib\vpld.lib" move "lib\vpld.lib" "lib\vpl.lib"
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'rm -rf bin/cmake ; tar czf ../dist/libvpl.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libvpl-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libvpl.tgz
|
38
.github/actions/libvpx/action.yml
vendored
Normal file
38
.github/actions/libvpx/action.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
name: libvpx
|
||||
|
||||
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
|
||||
git clone --depth 1 -b ${{ inputs.refId }} https://github.com/webmproject/libvpx.git vpx
|
||||
- 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 LibVpx
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
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 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 *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libvpx-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libvpx.tgz
|
43
.github/actions/libx264/action.yml
vendored
Normal file
43
.github/actions/libx264/action.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
name: libx264
|
||||
|
||||
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 X264
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: mirror/x264
|
||||
ref: ${{ inputs.refId }}
|
||||
path: x264
|
||||
- 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 X264
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
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 x264 ; CC=cl ./configure --prefix=$(realpath ../build) --disable-cli --enable-static --enable-pic --libdir=../build/lib ; make -j ; make install-lib-static ; cd ../build ; tar czf ../dist/libx264.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libx264-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libx264.tgz
|
39
.github/actions/libx265-10/action.yml
vendored
Normal file
39
.github/actions/libx265-10/action.yml
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
name: libx265-10
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Checkout X265
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git clone -b ${{ inputs.refId }} https://github.com/videolan/x265.git x265
|
||||
- name: Set up MSBuild
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
- name: Set up NASM
|
||||
uses: ilammy/setup-nasm@v1.2.1
|
||||
- name: Build X265 (10 bit)
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
cd x265/build/vc15-x86_64
|
||||
md work
|
||||
cd work
|
||||
cmake -G "Visual Studio 17 2022" ..\..\..\source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF
|
||||
MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" x265-static.vcxproj
|
||||
move ${{ inputs.config }}\x265-static.lib ..\..\..\..\dist\x265_10bit.lib
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: x265_10bit-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/x265_10bit.lib
|
43
.github/actions/libx265-12/action.yml
vendored
Normal file
43
.github/actions/libx265-12/action.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
name: libx265-12
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Checkout X265
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git clone -b ${{ inputs.refId }} https://github.com/videolan/x265.git x265
|
||||
- name: Set up MSBuild
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
- name: Set up NASM
|
||||
uses: ilammy/setup-nasm@v1.2.1
|
||||
- name: Build X265 (12 bit)
|
||||
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 dist
|
||||
cd x265/build/vc15-x86_64
|
||||
md work
|
||||
cd work
|
||||
cmake -G "Visual Studio 17 2022" ..\..\..\source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON
|
||||
MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" x265-static.vcxproj
|
||||
move ${{ inputs.config }}\x265-static.lib ..\..\..\..\dist\x265_12bit.lib
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: x265_12bit-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/x265_12bit.lib
|
58
.github/actions/libx265/action.yml
vendored
Normal file
58
.github/actions/libx265/action.yml
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
name: libx265
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Checkout X265
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git clone -b Release_3.5 https://github.com/videolan/x265.git x265
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake
|
||||
path-type: inherit
|
||||
- name: Set up MSBuild
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
- name: Set up NASM
|
||||
uses: ilammy/setup-nasm@v1.2.1
|
||||
- name: Set up dependant libs
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
path: build
|
||||
- name: Build X265
|
||||
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 di dist dist\include dist\lib dist\lib\pkgconfig
|
||||
cd x265/build/vc15-x86_64
|
||||
md work
|
||||
cd work
|
||||
cmake -G "Visual Studio 17 2022" ..\..\..\source -DCMAKE_INSTALL_PREFIX=..\..\..\..\build -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DEXTRA_LIB="libx265_10bit.lib;libx265_12bit.lib" -DLINKED_10BIT=ON -DLINKED_12BIT=ON
|
||||
MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" x265-static.vcxproj
|
||||
cp x265.pc ..\..\..\..\dist\lib\pkgconfig\x265.pc
|
||||
move ${{ inputs.config }}\x265-static.lib ..\..\..\..\build\
|
||||
move x265_config.h ..\..\..\..\dist\include\
|
||||
cd ..\..\..\..
|
||||
"${{ env.vsPath }}VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\lib.exe" /ignore:4006 /ignore:4221 /OUT:dist\lib\x265.lib build\x265-static.lib build\x265_10bit-${{ runner.os }}-${{ inputs.config }}\x265_10bit.lib build\x265_12bit-${{ runner.os }}-${{ inputs.config }}\x265_12bit.lib
|
||||
copy x265\source\x265.h dist\include\
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd dist ; tar czf ../di/libx265.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libx265-${{ runner.os }}-${{ inputs.config }}
|
||||
path: di/libx265.tgz
|
44
.github/actions/libzimg/action.yml
vendored
Normal file
44
.github/actions/libzimg/action.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
name: libzimg
|
||||
|
||||
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 ZIMG
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: sekrit-twc/zimg
|
||||
ref: ${{ inputs.refId }}
|
||||
path: zimg
|
||||
- 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 ZIMG
|
||||
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 zimg ; ./autogen.sh ; ./configure --prefix=$(realpath ../build) ; cd _msvc/zimg ; MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" /property:ConfigurationType=StaticLibrary /property:PlatformToolset=v143 /property:Platform=x64 /property:WholeProgramOptimization=false zimg.vcxproj ; cp x64/${{ inputs.config }}/z.lib ../../../build/lib/zimg.lib ; cd ../.. ; cp src/zimg/api/zimg.h ../build/include/zimg.h ; cp zimg.pc ../build/lib/pkgconfig/zimg.pc ; cd ../build ; tar czf ../dist/libzimg.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libzimg-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libzimg.tgz
|
23
.github/workflows/build.yml
vendored
Normal file
23
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
name: Build all
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 1 * * *"
|
||||
|
||||
jobs:
|
||||
ffmpeg-static-debug:
|
||||
uses: ./.github/workflows/ffmpeg.yml
|
||||
with:
|
||||
system: windows-2022
|
||||
type: static
|
||||
config: debug
|
||||
ffmpegRef: release/5.1
|
||||
|
||||
ffmpeg-static-release:
|
||||
uses: ./.github/workflows/ffmpeg.yml
|
||||
with:
|
||||
system: windows-2022
|
||||
type: static
|
||||
config: release
|
||||
ffmpegRef: release/5.1
|
220
.github/workflows/ffmpeg-cartwheel.yml
vendored
Normal file
220
.github/workflows/ffmpeg-cartwheel.yml
vendored
Normal file
@ -0,0 +1,220 @@
|
||||
name: 'Build FFmpeg from cartwheel'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
system:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'windows-2022'
|
||||
description: 'System'
|
||||
options:
|
||||
- windows-2022
|
||||
|
||||
type:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'static'
|
||||
description: Type
|
||||
options:
|
||||
- static
|
||||
- shared
|
||||
|
||||
config:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'debug'
|
||||
description: 'Configuration'
|
||||
options:
|
||||
- debug
|
||||
- release
|
||||
|
||||
workflow_call:
|
||||
inputs:
|
||||
system:
|
||||
type: string
|
||||
required: true
|
||||
type:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
ffmpegRef:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
COMPONENTS: "--enable-libvpl --enable-libsvtav1 --enable-libsnappy --enable-libmp3lame --enable-libzimg --enable-libopus --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvpx "
|
||||
NASM_EXECUTABLE: nasm
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared' }}
|
||||
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||
|
||||
jobs:
|
||||
libvpl:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libvpl
|
||||
with:
|
||||
refId: master
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
liboggvorbis:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/liboggvorbis
|
||||
with:
|
||||
libogg_refId: v1.3.5
|
||||
libvorbis_refId: v1.3.7
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libsvtav1:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libsvtav1
|
||||
with:
|
||||
refId: v1.1.0
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libsnappy:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libsnappy
|
||||
with:
|
||||
refId: 1.1.9
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libvpx:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libvpx
|
||||
with:
|
||||
refId: v1.12.0
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libmp3lame:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libmp3lame
|
||||
with:
|
||||
refId: tags/RELEASE__3_100
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libzimg:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libzimg
|
||||
with:
|
||||
refId: release-3.0.4
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libopus:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libopus
|
||||
with:
|
||||
refId: v1.3.1
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libfdkaac:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libfdkaac
|
||||
with:
|
||||
refId: v2.0.2
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libx264:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libx264
|
||||
with:
|
||||
refId: stable
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libx265-12:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libx265-12
|
||||
with:
|
||||
refId: Release_3.5
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libx265-10:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libx265-10
|
||||
with:
|
||||
refId: Release_3.5
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libx265:
|
||||
runs-on: ${{ inputs.system }}
|
||||
needs: [libx265-12,libx265-10]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libx265
|
||||
with:
|
||||
refId: Release_3.5
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
cartwheel:
|
||||
runs-on: ${{ inputs.system }}
|
||||
needs: [libvpl,libopus,libsvtav1,libsnappy,libmp3lame,libzimg,liboggvorbis,libx264,libx265,libfdkaac,libvpx]
|
||||
steps:
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- 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 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 from Cartwheel
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
rem D:\a\_temp\setup-msys2\msys2.cmd -c 'git config --global user.email "daniel.stankewitz@gmail.com" ; git config --global user.name "Daniel Stankewitz" ; git clone https://github.com/intel-media-ci/cartwheel-ffmpeg --recursive cartwheel ; cd cartwheel ; git checkout b3f9843cffd4118e35bb000779444ca2f4196342 ; git submodule update --init --recursive ; cd ffmpeg ; git am ../patches/*.patch ; git apply --ignore-whitespace --verbose ../../0003-dynamic-loading-of-shared-fdk-aac-library-5.0.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 ../cartwheel/ffmpeg ; PKG_CONFIG_PATH=../../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../../build/include" --extra-ldflags="-LIBPATH:../../build/lib" --prefix=../../build --pkg-config-flags="--static" --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --disable-devices --disable-demuxers --disable-decoders --disable-network --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-static-${{ inputs.config }}.tar.gz *'
|
||||
rem D:\a\_temp\setup-msys2\msys2.cmd -c 'git config --global user.email "daniel.stankewitz@gmail.com" ; git config --global user.name "Daniel Stankewitz" ; git clone https://github.com/intel-media-ci/cartwheel-ffmpeg --recursive cartwheel ; cd cartwheel ; git checkout 2757a1d43ca83a3762b24a7ddd74b3291873f89c ; git submodule update --init --recursive ; cd ffmpeg ; git am ../patches/*.patch ; git apply --ignore-whitespace --verbose ../../0001-dynamic-loading-of-shared-fdk-aac-library-cw-5.0.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 ../cartwheel/ffmpeg ; PKG_CONFIG_PATH=../../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../../build/include" --extra-ldflags="-LIBPATH:../../build/lib" --prefix=../../build --pkg-config-flags="--static" --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc --disable-shared --enable-static --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-static-${{ inputs.config }}.tar.gz *'
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'git config --global user.email "daniel.stankewitz@gmail.com" ; git config --global user.name "Daniel Stankewitz" ; git clone https://github.com/intel-media-ci/cartwheel-ffmpeg --recursive cartwheel ; cd cartwheel ; git submodule update --init --recursive ; cd ffmpeg ; git am ../patches/*.patch ; git apply --ignore-whitespace --verbose ../../0001-dynamic-loading-of-shared-fdk-aac-library-cw-5.0.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 ../cartwheel/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 artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: FFmpeg ${{ runner.os }} ${{ inputs.type }} ${{ inputs.config }} package build
|
||||
path: dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz
|
406
.github/workflows/ffmpeg-shared.yml
vendored
406
.github/workflows/ffmpeg-shared.yml
vendored
@ -1,406 +0,0 @@
|
||||
name: FFmpeg Shared (v143)
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
config:
|
||||
type: choice
|
||||
description: Configuration
|
||||
options:
|
||||
- Debug
|
||||
- Release
|
||||
|
||||
schedule:
|
||||
- cron: "0 5 * * *"
|
||||
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
switches: "--enable-libsvtav1 --enable-libsnappy --enable-libmp3lame --enable-libzimg --enable-libopus --enable-libvorbis --enable-libvpx "
|
||||
NASM_EXECUTABLE: nasm
|
||||
msysConfig: release
|
||||
winConfig: Release
|
||||
cFlags: -MD
|
||||
source: "official"
|
||||
|
||||
jobs:
|
||||
liboggvorbis:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout Ogg
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: xiph/ogg
|
||||
ref: master
|
||||
path: ogg
|
||||
- name: Checkout Vorbis
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: xiph/vorbis
|
||||
ref: master
|
||||
path: vorbis
|
||||
- name: Check cache
|
||||
id: liboggvorbis-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: liboggvorbis-${{ env.msysConfig }}-${{ hashFiles('ogg') }}-${{ hashFiles('vorbis') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.liboggvorbis-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake
|
||||
path-type: inherit
|
||||
- name: Build Ogg
|
||||
if: steps.liboggvorbis-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ogg ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared ; make -j ; make install'
|
||||
- name: Build Vorbis
|
||||
if: steps.liboggvorbis-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd vorbis ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared ; make -j ; make install ; sed -i '/^Libs\.private.*/d' ../build/lib/pkgconfig/vorbis.pc ; cd ../build ; tar czf ../dist/liboggvorbis.tgz *'
|
||||
echo "switches=${{env.switches}} --enable-encoder=libopus --enable-encoder=libvorbis" >> $GITHUB_ENV
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: liboggvorbis
|
||||
path: dist/liboggvorbis.tgz
|
||||
|
||||
libvpl:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout oneVPL
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: oneapi-src/oneVPL
|
||||
ref: master
|
||||
path: onevpl
|
||||
- name: Check cache
|
||||
id: libvpl-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: libvpl-${{ env.msysConfig }}-${{ hashFiles('onevpl') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.libvpl-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake
|
||||
path-type: inherit
|
||||
- name: Build oneVPL
|
||||
if: steps.libvpl-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md temp build dist
|
||||
cd temp
|
||||
cmake.exe -G "Visual Studio 17 2022" ..\onevpl -T host=x64 -A x64 -DBUILD_TOOLS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=..\build -DCMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD=ON
|
||||
MSBuild.exe -t:VPL,INSTALL -p:Configuration=${{ env.winConfig }} -m vpl.sln
|
||||
cd ..\build
|
||||
IF EXIST "lib\vpld.lib" move "lib\vpld.lib" "lib\vpl.lib"
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'rm -rf bin/cmake ; tar czf ../dist/libvpl.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libvpl
|
||||
path: dist/libvpl.tgz
|
||||
|
||||
libsvtav1:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout SVT AV1
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: AOMediaCodec/SVT-AV1
|
||||
ref: master
|
||||
path: svtav1
|
||||
- name: Check cache
|
||||
id: libsvtav1-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: libsvtav1-${{ env.msysConfig }}-${{ hashFiles('svtav1') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.libsvtav1-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build SVT AV1
|
||||
if: steps.libsvtav1-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
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 svtav1/Build/windows ; ./build.bat 2022 ${{ env.winConfig }} static ; cp -r ../../Source/API ../../../build/include/svt-av1 ; cp ../../Bin/${{ env.msysConfig }}/SvtAv1Enc.lib ../../../build/lib/ ; cp SvtAv1Enc.pc ../../../build/lib/pkgconfig/ ; cd ../../../build ; tar czf ../dist/libsvtav1.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libsvtav1
|
||||
path: dist/libsvtav1.tgz
|
||||
|
||||
libsnappy:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout Snappy
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: google/snappy
|
||||
ref: "1.1.8"
|
||||
path: snappy
|
||||
- name: Check cache
|
||||
id: libsnappy-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: libsnappy-${{ env.msysConfig }}-${{ hashFiles('snappy') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.libsnappy-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build Snappy
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build build\include build\lib build\lib\pkgconfig dist
|
||||
cd snappy
|
||||
md work
|
||||
cd work
|
||||
cmake -G "Visual Studio 17 2022" .. -DCMAKE_INSTALL_PREFIX=..\..\build -DBUILD_SHARED_LIBS=OFF -DSNAPPY_BUILD_TESTS=OFF
|
||||
MSBuild.exe /property:Configuration="${{ env.winConfig }}" Snappy.sln
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cp ${{ env.winConfig }}/snappy.lib ../../build/lib/snappy.lib ; cp ../snappy.h ../snappy-c.h ../../build/include/ ; cd ../../build ; tar czf ../dist/libsnappy.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libsnappy
|
||||
path: dist/libsnappy.tgz
|
||||
|
||||
libvpx:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git clone https://github.com/webmproject/libvpx.git vpx
|
||||
- name: Check cache
|
||||
id: libvpx-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: libvpx-${{ env.msysConfig }}-${{ hashFiles('vpx') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.libvpx-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build LibVpx
|
||||
if: steps.libvpx-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
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 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 *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libvpx
|
||||
path: dist/libvpx.tgz
|
||||
|
||||
libmp3lame:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm svn
|
||||
path-type: inherit
|
||||
- name: Set up cache
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-ffmpeg-${{ env.msysConfig }}
|
||||
with:
|
||||
path: cache
|
||||
key: cache-key
|
||||
- name: Build LAME
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'svn co https://svn.code.sf.net/p/lame/svn/trunk/lame@6474 lame ; cd lame ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --enable-nasm --disable-frontend --disable-shared --enable-static ; make -j ; make install ; cd ../build ; tar czf ../dist/libmp3lame.tgz *
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libmp3lame
|
||||
path: dist/libmp3lame.tgz
|
||||
|
||||
libzimg:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout ZIMG
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: sekrit-twc/zimg
|
||||
ref: release-2.9.2
|
||||
path: zimg
|
||||
- name: Check cache
|
||||
id: libzimg-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: libzimg-${{ env.msysConfig }}-${{ hashFiles('zimg') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.libzimg-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build ZIMG
|
||||
if: steps.libzimg-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
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 zimg ; ./autogen.sh ; ./configure --prefix=$(realpath ../build) ; cd _msvc/zimg ; MSBuild.exe /property:Configuration="${{ env.winConfig }}" /property:ConfigurationType=StaticLibrary /property:PlatformToolset=v143 /property:Platform=x64 /property:WholeProgramOptimization=false zimg.vcxproj ; cp x64/${{ env.winConfig }}/z.lib ../../../build/lib/zimg.lib ; cd ../.. ; cp src/zimg/api/zimg.h ../build/include/zimg.h ; cp zimg.pc ../build/lib/pkgconfig/zimg.pc ; cd ../build ; tar czf ../dist/libzimg.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libzimg
|
||||
path: dist/libzimg.tgz
|
||||
|
||||
libopus:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout OPUS
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: xiph/opus
|
||||
ref: master
|
||||
path: opus
|
||||
- name: Check cache
|
||||
id: libopus-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: libopus-${{ env.msysConfig }}-${{ hashFiles('opus') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.libopus-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build OPUS
|
||||
if: steps.libopus-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build build\include build\lib build\lib\pkgconfig dist
|
||||
cd opus\win32\VS2015
|
||||
MSBuild.exe /property:Configuration="${{ env.winConfig }}" /property:Platform=x64 /property:PlatformToolset=v143 opus.vcxproj
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cp x64/${{ env.winConfig }}/opus.lib ../../../build/lib/opus.lib ; cd ../../.. ; cp -r opus/include build/include/opus ; cp opus/opus.pc.in build/lib/pkgconfig/opus.pc ; sed -i "s#@prefix@#$(realpath ../../../build)#g" build/lib/pkgconfig/opus.pc ; sed -i "s/@exec_prefix@/\$\{prefix\}/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@libdir@/\$\{prefix\}\/lib/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@includedir@/\$\{prefix\}\/include/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@LIBM@//g" build/lib/pkgconfig/opus.pc; sed -i "s/@VERSION@/2.0.0/g" build/lib/pkgconfig/opus.pc ; cd build ; tar czf ../dist/libopus.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libopus
|
||||
path: dist/libopus.tgz
|
||||
|
||||
ffmpeg:
|
||||
runs-on: windows-2022
|
||||
needs: [libopus,libvpl,libsvtav1,libsnappy,libmp3lame,libzimg,liboggvorbis,libvpx]
|
||||
steps:
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
|
||||
- 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
|
||||
if: ${{env.source == 'official'}}
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: FFmpeg/FFmpeg.git
|
||||
ref: release/5.0
|
||||
path: ffmpeg
|
||||
|
||||
- name: Checkout NvEnc
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: FFmpeg/nv-codec-headers
|
||||
ref: sdk/9.1
|
||||
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
|
||||
if: ${{env.source == 'official'}}
|
||||
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 --verbose ../0003-dynamic-loading-of-shared-fdk-aac-library-5.0.patch ; 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 --pkg-config-flags="--static" --build-suffix=-voukoderpro --disable-doc --disable-static --enable-shared --enable-runtime-cpudetect --enable-w32threads --enable-gpl ${{ env.switches }} ; make ; make install ; cd ../build ; dir ; tar czf ../dist/ffmpeg-win64-shared-${{ env.msysConfig }}.tar.gz *'
|
||||
|
||||
- name: Build FFmpeg from Cartwheel
|
||||
if: ${{env.source == 'cartwheel'}}
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'git config --global user.email "daniel.stankewitz@gmail.com" ; git config --global user.name "Daniel Stankewitz" ; git clone https://github.com/intel-media-ci/cartwheel-ffmpeg --recursive cartwheel ; cd cartwheel ; cd patches ; git apply --ignore-whitespace ../../hotfix.patch ; cd .. ; git submodule update --init --recursive ; cd ffmpeg ; git am ../patches/*.patch ; git apply --ignore-whitespace --verbose ../../0001-dynamic-loading-of-shared-fdk-aac-library-cw-5.0.patch ; 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 ../cartwheel/ffmpeg ; PKG_CONFIG_PATH=../../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../../build/include" --extra-ldflags="-LIBPATH:../../build/lib" --prefix=../../build --pkg-config-flags="--static" --extra-libs=Ole32.lib --build-suffix=-voukoderpro --extra-libs=Advapi32.lib --disable-doc --disable-static --enable-shared --enable-runtime-cpudetect --enable-w32threads --enable-gpl ${{ env.switches }} ; make ; make install ; cd ../../build ; dir ; tar czf ../dist/ffmpeg-win64-shared-${{ env.msysConfig }}.tar.gz *'
|
||||
|
||||
- name: Publish FFmpeg artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ env.winConfig }} package build
|
||||
path: dist/ffmpeg-win64-shared-${{ env.msysConfig }}.tar.gz
|
609
.github/workflows/ffmpeg-static.yml
vendored
609
.github/workflows/ffmpeg-static.yml
vendored
@ -1,609 +0,0 @@
|
||||
name: FFmpeg Static (v143)
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
config:
|
||||
type: choice
|
||||
description: Configuration
|
||||
options:
|
||||
- Debug
|
||||
- Release
|
||||
|
||||
schedule:
|
||||
- cron: "0 5 * * *"
|
||||
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
switches: "--enable-libvpl --enable-libsvtav1 --enable-libsnappy --enable-libmp3lame --enable-libzimg --enable-libopus --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvpx "
|
||||
NASM_EXECUTABLE: nasm
|
||||
msysConfig: release
|
||||
winConfig: Release
|
||||
cFlags: -MD
|
||||
useCartwheel: true
|
||||
|
||||
jobs:
|
||||
liboggvorbis:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout Ogg
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: xiph/ogg
|
||||
ref: master
|
||||
path: ogg
|
||||
- name: Checkout Vorbis
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: xiph/vorbis
|
||||
ref: master
|
||||
path: vorbis
|
||||
- name: Check cache
|
||||
id: liboggvorbis-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: liboggvorbis-${{ env.msysConfig }}-${{ hashFiles('ogg') }}-${{ hashFiles('vorbis') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.liboggvorbis-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake
|
||||
path-type: inherit
|
||||
- name: Build Ogg
|
||||
if: steps.liboggvorbis-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ogg ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared ; make -j ; make install'
|
||||
- name: Build Vorbis
|
||||
if: steps.liboggvorbis-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd vorbis ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared ; make -j ; make install ; sed -i '/^Libs\.private.*/d' ../build/lib/pkgconfig/vorbis.pc ; cd ../build ; tar czf ../dist/liboggvorbis.tgz *'
|
||||
echo "switches=${{env.switches}} --enable-encoder=libopus --enable-encoder=libvorbis" >> $GITHUB_ENV
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: liboggvorbis
|
||||
path: dist/liboggvorbis.tgz
|
||||
|
||||
libvpl:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout oneVPL
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: oneapi-src/oneVPL
|
||||
ref: master
|
||||
path: onevpl
|
||||
- name: Check cache
|
||||
id: libvpl-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: libvpl-${{ env.msysConfig }}-${{ hashFiles('onevpl') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.libvpl-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake
|
||||
path-type: inherit
|
||||
- name: Build oneVPL
|
||||
if: steps.libvpl-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md temp build dist
|
||||
cd temp
|
||||
cmake.exe -G "Visual Studio 17 2022" ..\onevpl -T host=x64 -A x64 -DBUILD_TOOLS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=..\build -DCMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD=ON
|
||||
MSBuild.exe -t:VPL,INSTALL -p:Configuration=${{ env.winConfig }} -m vpl.sln
|
||||
cd ..\build
|
||||
IF EXIST "lib\vpld.lib" move "lib\vpld.lib" "lib\vpl.lib"
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'rm -rf bin/cmake ; tar czf ../dist/libvpl.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libvpl
|
||||
path: dist/libvpl.tgz
|
||||
|
||||
libsvtav1:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout SVT AV1
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: AOMediaCodec/SVT-AV1
|
||||
ref: master
|
||||
path: svtav1
|
||||
- name: Check cache
|
||||
id: libsvtav1-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: libsvtav1-${{ env.msysConfig }}-${{ hashFiles('svtav1') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.libsvtav1-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build SVT AV1
|
||||
if: steps.libsvtav1-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
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 svtav1/Build/windows ; ./build.bat 2022 ${{ env.winConfig }} static ; cp -r ../../Source/API ../../../build/include/svt-av1 ; cp ../../Bin/${{ env.msysConfig }}/SvtAv1Enc.lib ../../../build/lib/ ; cp SvtAv1Enc.pc ../../../build/lib/pkgconfig/ ; cd ../../../build ; tar czf ../dist/libsvtav1.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libsvtav1
|
||||
path: dist/libsvtav1.tgz
|
||||
|
||||
libsnappy:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout Snappy
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: google/snappy
|
||||
ref: "1.1.8"
|
||||
path: snappy
|
||||
- name: Check cache
|
||||
id: libsnappy-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: libsnappy-${{ env.msysConfig }}-${{ hashFiles('snappy') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.libsnappy-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build Snappy
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build build\include build\lib build\lib\pkgconfig dist
|
||||
cd snappy
|
||||
md work
|
||||
cd work
|
||||
cmake -G "Visual Studio 17 2022" .. -DCMAKE_INSTALL_PREFIX=..\..\build -DBUILD_SHARED_LIBS=OFF -DSNAPPY_BUILD_TESTS=OFF
|
||||
MSBuild.exe /property:Configuration="${{ env.winConfig }}" Snappy.sln
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cp ${{ env.winConfig }}/snappy.lib ../../build/lib/snappy.lib ; cp ../snappy.h ../snappy-c.h ../../build/include/ ; cd ../../build ; tar czf ../dist/libsnappy.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libsnappy
|
||||
path: dist/libsnappy.tgz
|
||||
|
||||
libvpx:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git clone https://github.com/webmproject/libvpx.git vpx
|
||||
- name: Check cache
|
||||
id: libvpx-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: libvpx-${{ env.msysConfig }}-${{ hashFiles('vpx') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.libvpx-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build LibVpx
|
||||
if: steps.libvpx-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
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 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 *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libvpx
|
||||
path: dist/libvpx.tgz
|
||||
|
||||
libmp3lame:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm svn
|
||||
path-type: inherit
|
||||
- name: Set up cache
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-ffmpeg-${{ env.msysConfig }}
|
||||
with:
|
||||
path: cache
|
||||
key: cache-key
|
||||
- name: Build LAME
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'svn co https://svn.code.sf.net/p/lame/svn/trunk/lame@6474 lame ; cd lame ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --enable-nasm --disable-frontend --disable-shared --enable-static ; make -j ; make install ; cd ../build ; tar czf ../dist/libmp3lame.tgz *
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libmp3lame
|
||||
path: dist/libmp3lame.tgz
|
||||
|
||||
libzimg:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout ZIMG
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: sekrit-twc/zimg
|
||||
ref: release-2.9.2
|
||||
path: zimg
|
||||
- name: Check cache
|
||||
id: libzimg-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: libzimg-${{ env.msysConfig }}-${{ hashFiles('zimg') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.libzimg-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build ZIMG
|
||||
if: steps.libzimg-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
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 zimg ; ./autogen.sh ; ./configure --prefix=$(realpath ../build) ; cd _msvc/zimg ; MSBuild.exe /property:Configuration="${{ env.winConfig }}" /property:ConfigurationType=StaticLibrary /property:PlatformToolset=v143 /property:Platform=x64 /property:WholeProgramOptimization=false zimg.vcxproj ; cp x64/${{ env.winConfig }}/z.lib ../../../build/lib/zimg.lib ; cd ../.. ; cp src/zimg/api/zimg.h ../build/include/zimg.h ; cp zimg.pc ../build/lib/pkgconfig/zimg.pc ; cd ../build ; tar czf ../dist/libzimg.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libzimg
|
||||
path: dist/libzimg.tgz
|
||||
|
||||
libopus:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout OPUS
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: xiph/opus
|
||||
ref: master
|
||||
path: opus
|
||||
- name: Check cache
|
||||
id: libopus-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: libopus-${{ env.msysConfig }}-${{ hashFiles('opus') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.libopus-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build OPUS
|
||||
if: steps.libopus-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build build\include build\lib build\lib\pkgconfig dist
|
||||
cd opus\win32\VS2015
|
||||
MSBuild.exe /property:Configuration="${{ env.winConfig }}" /property:Platform=x64 /property:PlatformToolset=v143 opus.vcxproj
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cp x64/${{ env.winConfig }}/opus.lib ../../../build/lib/opus.lib ; cd ../../.. ; cp -r opus/include build/include/opus ; cp opus/opus.pc.in build/lib/pkgconfig/opus.pc ; sed -i "s#@prefix@#$(realpath ../../../build)#g" build/lib/pkgconfig/opus.pc ; sed -i "s/@exec_prefix@/\$\{prefix\}/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@libdir@/\$\{prefix\}\/lib/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@includedir@/\$\{prefix\}\/include/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@LIBM@//g" build/lib/pkgconfig/opus.pc; sed -i "s/@VERSION@/2.0.0/g" build/lib/pkgconfig/opus.pc ; cd build ; tar czf ../dist/libopus.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libopus
|
||||
path: dist/libopus.tgz
|
||||
|
||||
libx264:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout X264
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: mirror/x264
|
||||
ref: master
|
||||
path: x264
|
||||
- name: Check cache
|
||||
id: libx264-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: libx264-${{ env.msysConfig }}-${{ hashFiles('x264') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.libx264-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build X264
|
||||
if: steps.libx264-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
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 x264 ; CC=cl ./configure --prefix=$(realpath ../build) --disable-cli --enable-static --enable-pic --libdir=../build/lib ; make -j ; make install-lib-static ; cd ../build ; tar czf ../dist/libx264.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libx264
|
||||
path: dist/libx264.tgz
|
||||
|
||||
libfdkaac:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout FDK AAC
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: mstorsjo/fdk-aac
|
||||
ref: master
|
||||
path: fdkaac
|
||||
- name: Check cache
|
||||
id: libfdkaac-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: libfdkaac-${{ env.msysConfig }}-${{ hashFiles('fdkaac') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.libfdkaac-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build FDK AAC
|
||||
if: steps.libfdkaac-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd fdkaac ; autoreconf -fiv ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared --disable-static ; make ; make install ; cd ../build ; tar czf ../dist/libfdkaac.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libfdkaac
|
||||
path: dist/libfdkaac.tgz
|
||||
|
||||
libx265-12:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Checkout X265
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git clone -b Release_3.5 https://github.com/videolan/x265.git x265
|
||||
- name: Check cache
|
||||
id: libx26512-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: libx265-12-${{ env.msysConfig }}-${{ hashFiles('x265') }}
|
||||
- name: Set up MSBuild
|
||||
if: steps.libx26512-cache.outputs.cache-hit != 'true'
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
- name: Set up NASM
|
||||
if: steps.libx26512-cache.outputs.cache-hit != 'true'
|
||||
uses: ilammy/setup-nasm@v1.2.1
|
||||
- name: Build X265 (12 bit)
|
||||
if: steps.libx26512-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
cd x265/build/vc15-x86_64
|
||||
md work
|
||||
cd work
|
||||
cmake -G "Visual Studio 17 2022" ..\..\..\source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON
|
||||
MSBuild.exe /property:Configuration="${{ env.winConfig }}" x265-static.vcxproj
|
||||
move ${{ env.winConfig }}\x265-static.lib ..\..\..\..\dist\x265_12bit.lib
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: x265_12bit
|
||||
path: dist/x265_12bit.lib
|
||||
|
||||
libx265-10:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Checkout X265
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git clone -b Release_3.5 https://github.com/videolan/x265.git x265
|
||||
- name: Check cache
|
||||
id: libx26510-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: libx265-10-${{ env.msysConfig }}-${{ hashFiles('x265') }}
|
||||
- name: Set up MSBuild
|
||||
if: steps.libx26510-cache.outputs.cache-hit != 'true'
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
- name: Set up NASM
|
||||
if: steps.libx26510-cache.outputs.cache-hit != 'true'
|
||||
uses: ilammy/setup-nasm@v1.2.1
|
||||
- name: Build X265 (10 bit)
|
||||
if: steps.libx26510-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
cd x265/build/vc15-x86_64
|
||||
md work
|
||||
cd work
|
||||
cmake -G "Visual Studio 17 2022" ..\..\..\source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF
|
||||
MSBuild.exe /property:Configuration="${{ env.winConfig }}" x265-static.vcxproj
|
||||
move ${{ env.winConfig }}\x265-static.lib ..\..\..\..\dist\x265_10bit.lib
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: x265_10bit
|
||||
path: dist/x265_10bit.lib
|
||||
|
||||
libx265:
|
||||
runs-on: windows-2022
|
||||
needs: [libx265-12,libx265-10]
|
||||
steps:
|
||||
- name: Checkout X265
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git clone -b Release_3.5 https://github.com/videolan/x265.git x265
|
||||
- name: Check cache
|
||||
id: libx265-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: di
|
||||
key: libx265-${{ env.msysConfig }}-${{ hashFiles('x265') }}
|
||||
- name: Set up MSYS2
|
||||
if: steps.libx265-cache.outputs.cache-hit != 'true'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake
|
||||
path-type: inherit
|
||||
- name: Set up MSBuild
|
||||
if: steps.libx265-cache.outputs.cache-hit != 'true'
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
- name: Set up NASM
|
||||
if: steps.libx265-cache.outputs.cache-hit != 'true'
|
||||
uses: ilammy/setup-nasm@v1.2.1
|
||||
- name: Set up dependant libs
|
||||
if: steps.libx265-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
path: build
|
||||
- name: Build X265
|
||||
if: steps.libx265-cache.outputs.cache-hit != 'true'
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md di dist dist\include dist\lib dist\lib\pkgconfig
|
||||
cd x265/build/vc15-x86_64
|
||||
md work
|
||||
cd work
|
||||
cmake -G "Visual Studio 17 2022" ..\..\..\source -DCMAKE_INSTALL_PREFIX=..\..\..\..\build -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DEXTRA_LIB="libx265_10bit.lib;libx265_12bit.lib" -DLINKED_10BIT=ON -DLINKED_12BIT=ON
|
||||
MSBuild.exe /property:Configuration="${{ env.winConfig }}" x265-static.vcxproj
|
||||
cp x265.pc ..\..\..\..\dist\lib\pkgconfig\x265.pc
|
||||
move ${{ env.winConfig }}\x265-static.lib ..\..\..\..\build\
|
||||
move x265_config.h ..\..\..\..\dist\include\
|
||||
cd ..\..\..\..
|
||||
"${{ env.vsPath }}VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\lib.exe" /ignore:4006 /ignore:4221 /OUT:dist\lib\x265.lib build\x265-static.lib build\x265_10bit\x265_10bit.lib build\x265_12bit\x265_12bit.lib
|
||||
copy x265\source\x265.h dist\include\
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd dist ; tar czf ../di/libx265.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libx265
|
||||
path: di/libx265.tgz
|
||||
|
||||
ffmpeg:
|
||||
runs-on: windows-2022
|
||||
needs: [libopus,libvpl,libsvtav1,libsnappy,libmp3lame,libzimg,liboggvorbis,libx264,libx265,libfdkaac,libvpx]
|
||||
steps:
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- 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
|
||||
if: ${{!env.useCartwheel}}
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: FFmpeg/FFmpeg.git
|
||||
ref: release/5.0
|
||||
path: ffmpeg
|
||||
- name: Checkout NvEnc
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: FFmpeg/nv-codec-headers
|
||||
ref: sdk/9.1
|
||||
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
|
||||
if: ${{!env.useCartwheel}}
|
||||
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 --verbose ../0003-dynamic-loading-of-shared-fdk-aac-library-5.0.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 --pkg-config-flags="--static" --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --disable-devices --disable-demuxers --disable-decoders --disable-network --enable-w32threads --enable-gpl ${{ env.switches }} ; make ; 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-static-${{ env.msysConfig }}.tar.gz *'
|
||||
- name: Build FFmpeg from Cartwheel
|
||||
if: ${{env.useCartwheel}}
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
rem D:\a\_temp\setup-msys2\msys2.cmd -c 'git config --global user.email "daniel.stankewitz@gmail.com" ; git config --global user.name "Daniel Stankewitz" ; git clone https://github.com/intel-media-ci/cartwheel-ffmpeg --recursive cartwheel ; cd cartwheel ; git checkout b3f9843cffd4118e35bb000779444ca2f4196342 ; git submodule update --init --recursive ; cd ffmpeg ; git am ../patches/*.patch ; git apply --ignore-whitespace --verbose ../../0003-dynamic-loading-of-shared-fdk-aac-library-5.0.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 ../cartwheel/ffmpeg ; PKG_CONFIG_PATH=../../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../../build/include" --extra-ldflags="-LIBPATH:../../build/lib" --prefix=../../build --pkg-config-flags="--static" --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --disable-devices --disable-demuxers --disable-decoders --disable-network --enable-w32threads --enable-gpl ${{ env.switches }} ; make ; 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-static-${{ env.msysConfig }}.tar.gz *'
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'git config --global user.email "daniel.stankewitz@gmail.com" ; git config --global user.name "Daniel Stankewitz" ; git clone https://github.com/intel-media-ci/cartwheel-ffmpeg --recursive cartwheel ; cd cartwheel ; cd patches ; git apply --ignore-whitespace ../../hotfix.patch ; cd .. ; git submodule update --init --recursive ; cd ffmpeg ; git am ../patches/*.patch ; git apply --ignore-whitespace --verbose ../../0001-dynamic-loading-of-shared-fdk-aac-library-cw-5.0.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 ../cartwheel/ffmpeg ; PKG_CONFIG_PATH=../../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../../build/include" --extra-ldflags="-LIBPATH:../../build/lib" --prefix=../../build --pkg-config-flags="--static" --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --disable-devices --disable-demuxers --disable-decoders --disable-network --enable-w32threads --enable-gpl ${{ env.switches }} ; make ; 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-static-${{ env.msysConfig }}.tar.gz *'
|
||||
- name: Publish FFmpeg artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ env.winConfig }} package build
|
||||
path: dist/ffmpeg-win64-static-${{ env.msysConfig }}.tar.gz
|
230
.github/workflows/ffmpeg.yml
vendored
Normal file
230
.github/workflows/ffmpeg.yml
vendored
Normal file
@ -0,0 +1,230 @@
|
||||
name: 'Build FFmpeg'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
system:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'windows-2022'
|
||||
description: 'System'
|
||||
options:
|
||||
- windows-2022
|
||||
|
||||
type:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'static'
|
||||
description: Type
|
||||
options:
|
||||
- static
|
||||
- shared
|
||||
|
||||
config:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'debug'
|
||||
description: 'Configuration'
|
||||
options:
|
||||
- debug
|
||||
- release
|
||||
|
||||
ffmpegRef:
|
||||
type: string
|
||||
required: true
|
||||
default: 'release/5.1'
|
||||
description: 'FFmpeg refId'
|
||||
|
||||
workflow_call:
|
||||
inputs:
|
||||
system:
|
||||
type: string
|
||||
required: true
|
||||
type:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
ffmpegRef:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
COMPONENTS: "--enable-libsvtav1 --enable-libsnappy --enable-libmp3lame --enable-libzimg --enable-libopus --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvpx "
|
||||
NASM_EXECUTABLE: nasm
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared' }}
|
||||
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||
|
||||
jobs:
|
||||
libvpl:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libvpl
|
||||
with:
|
||||
refId: master
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
liboggvorbis:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/liboggvorbis
|
||||
with:
|
||||
libogg_refId: v1.3.5
|
||||
libvorbis_refId: v1.3.7
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libsvtav1:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libsvtav1
|
||||
with:
|
||||
refId: v1.1.0
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libsnappy:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libsnappy
|
||||
with:
|
||||
refId: 1.1.9
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libvpx:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libvpx
|
||||
with:
|
||||
refId: v1.12.0
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libmp3lame:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libmp3lame
|
||||
with:
|
||||
refId: tags/RELEASE__3_100
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libzimg:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libzimg
|
||||
with:
|
||||
refId: release-3.0.4
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libopus:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libopus
|
||||
with:
|
||||
refId: v1.3.1
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libfdkaac:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libfdkaac
|
||||
with:
|
||||
refId: v2.0.2
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libx264:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libx264
|
||||
with:
|
||||
refId: stable
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libx265-12:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libx265-12
|
||||
with:
|
||||
refId: Release_3.5
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libx265-10:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libx265-10
|
||||
with:
|
||||
refId: Release_3.5
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libx265:
|
||||
runs-on: ${{ inputs.system }}
|
||||
needs: [libx265-12,libx265-10]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libx265
|
||||
with:
|
||||
refId: Release_3.5
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
ffmpeg:
|
||||
runs-on: ${{ inputs.system }}
|
||||
needs: [libvpl,libopus,libsvtav1,libsnappy,libmp3lame,libzimg,liboggvorbis,libx264,libx265,libfdkaac,libvpx]
|
||||
steps:
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- 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 0001-dynamic-loading-of-shared-fdk-aac-library-cw-5.0.patch
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ffmpeg ; git apply --ignore-whitespace --verbose ../0001-dynamic-loading-of-shared-fdk-aac-library-cw-5.0.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
|
Reference in New Issue
Block a user