fix(ffmpeg)

closes #6428
This commit is contained in:
Jacob Heider 2024-06-15 12:32:42 -04:00 committed by Jacob Heider
parent 34522c71a7
commit e20a4917ca

View file

@ -33,6 +33,11 @@ build:
x86-64: x86-64:
nasm.us: 2 nasm.us: 2
script: script:
# not available in all versions
- run: |
if grep -q -- --enable-libharfbuzz configure; then
ARGS="$ARGS --enable-libharfbuzz"
fi
- ./configure $ARGS - ./configure $ARGS
- make --jobs {{hw.concurrency}} - make --jobs {{hw.concurrency}}
- make install - make install
@ -40,11 +45,10 @@ build:
ARGS: ARGS:
- --prefix="{{prefix}}" - --prefix="{{prefix}}"
- --enable-libfreetype - --enable-libfreetype
- --enable-libharfbuzz
- --enable-libmp3lame - --enable-libmp3lame
- --enable-shared - --enable-shared
- --enable-libx264 - --enable-libx264
- --enable-gpl # required for x264 - --enable-gpl # required for x264
- --enable-libx265 - --enable-libx265
- --enable-libvpx - --enable-libvpx
- --enable-libopus - --enable-libopus
@ -52,8 +56,8 @@ build:
test: test:
dependencies: dependencies:
gnu.org/wget: "*" gnu.org/wget: '*'
info-zip.org/unzip: "*" info-zip.org/unzip: '*'
script: script:
- wget --content-disposition https://github.com/googlefonts/RobotoMono/raw/main/fonts/ttf/RobotoMono-Regular.ttf - wget --content-disposition https://github.com/googlefonts/RobotoMono/raw/main/fonts/ttf/RobotoMono-Regular.ttf
- ffmpeg -filter_complex testsrc=rate=1:duration=1,drawtext=fontfile=RobotoMono-Regular.ttf:text=hello out.mp4 - ffmpeg -filter_complex testsrc=rate=1:duration=1,drawtext=fontfile=RobotoMono-Regular.ttf:text=hello out.mp4