Compare commits

...

21 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
4 changed files with 68 additions and 55 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

@ -32,7 +32,7 @@ on:
ffmpegRef:
type: string
required: true
default: 'master'
default: 'release/6.1'
description: 'FFmpeg refId'
workflow_call:
@ -52,7 +52,7 @@ on:
env:
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
NASM_EXECUTABLE: nasm
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
@ -133,10 +133,19 @@ jobs:
refId: v1.3.1
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:
runs-on: ${{ inputs.system }}
needs: [libvpl,libsvtav1,libsnappy,libvpx,libmp3lame,libzimg,libopus]
#liboggvorbis
#libkvazaar,liboggvorbis
steps:
- name: Set up MSYS2
uses: msys2/setup-msys2@v2

View File

@ -84,7 +84,7 @@ jobs:
- uses: actions/checkout@v3
- uses: ./.github/actions/libsvtav1
with:
refId: v1.8.0
refId: v1.7.0
config: ${{ inputs.config }}
libsnappy:

View File

@ -14,7 +14,7 @@ on:
type:
type: choice
required: true
default: 'static'
default: 'shared'
description: Type
options:
- static
@ -32,7 +32,7 @@ on:
ffmpegRef:
type: string
required: true
default: 'release/5.1'
default: 'release/6.1'
description: 'FFmpeg refId'
workflow_call:
@ -52,60 +52,20 @@ on:
env:
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
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' }}
jobs:
ffmpeg:
libkvazaar:
runs-on: ${{ inputs.system }}
needs: []
steps:
- name: Set up MSYS2
uses: msys2/setup-msys2@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/libkvazaar
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
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
refId: v2.3.0
config: ${{ inputs.config }}