ci: Add AMD AMF for FFmpeg 4.0+
This commit is contained in:
@@ -10,6 +10,7 @@ on:
|
|||||||
env:
|
env:
|
||||||
X264_VERSION: "0.161.3049"
|
X264_VERSION: "0.161.3049"
|
||||||
FFNVCODEC_VERSION: "n11.0.10.0"
|
FFNVCODEC_VERSION: "n11.0.10.0"
|
||||||
|
AMF_VERSION: "v1.4.18"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cc:
|
cc:
|
||||||
@@ -89,7 +90,7 @@ jobs:
|
|||||||
7z x -o./distrib x264.zip
|
7z x -o./distrib x264.zip
|
||||||
echo "::set-output name=flags::--enable-libx264"
|
echo "::set-output name=flags::--enable-libx264"
|
||||||
|
|
||||||
# NVIDIA Codec Headers (FFmpeg 3.x and up)
|
# NVIDIA Codec Headers (FFmpeg 3.0 and up)
|
||||||
- name: "Dependency: NVIDIA Codec Headers (MIT, shared)"
|
- name: "Dependency: NVIDIA Codec Headers (MIT, shared)"
|
||||||
if: ${{ steps.data.outputs.version_major >= 3 }}
|
if: ${{ steps.data.outputs.version_major >= 3 }}
|
||||||
id: ffnvcodec
|
id: ffnvcodec
|
||||||
@@ -116,6 +117,21 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# AMD AMF (FFmpeg 4.0 and up)
|
||||||
|
- name: "Dependency: AMD AMF (MIT, shared)"
|
||||||
|
if: ${{ steps.data.outputs.version_major >= 4 }}
|
||||||
|
id: amf
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
git clone --depth 1 --branch ${AMF_VERSION} "https://github.com/GPUOpen-LibrariesAndSDKs/AMF.git" /tmp/amd-amf
|
||||||
|
pushd "/tmp/amd-amf"
|
||||||
|
sudo cp -R amf/public/include/ /usr/${{ steps.data.outputs.cross_prefix }}/include/AMF
|
||||||
|
popd
|
||||||
|
|
||||||
|
if (( "${{ steps.data.outputs.version_major }}" >= 4 )); then
|
||||||
|
echo "::set-output name=flags::--enable-amf"
|
||||||
|
fi
|
||||||
|
|
||||||
# Configure FFmpeg
|
# Configure FFmpeg
|
||||||
- name: "Configure"
|
- name: "Configure"
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -133,7 +149,8 @@ jobs:
|
|||||||
${{ steps.data.outputs.flags_license }} ${{ steps.data.outputs.flags_license_version }} \
|
${{ steps.data.outputs.flags_license }} ${{ steps.data.outputs.flags_license_version }} \
|
||||||
${{ steps.data.outputs.flags_type }} \
|
${{ steps.data.outputs.flags_type }} \
|
||||||
${{ steps.x264.outputs.flags }} \
|
${{ steps.x264.outputs.flags }} \
|
||||||
${{ steps.ffnvcodec.outputs.flags }}
|
${{ steps.ffnvcodec.outputs.flags }} \
|
||||||
|
${{ steps.amf.outputs.flags }}
|
||||||
- name: "Compile"
|
- name: "Compile"
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user