mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
Add ffmpeg support for drawtext filter (#4819)
* Add ffmpeg support for drawtext filter requires linking against harfbuzz and freetype. * pin major library versions
This commit is contained in:
parent
4ebca976c7
commit
1b6239bae3
1 changed files with 11 additions and 2 deletions
|
@ -20,6 +20,8 @@ provides:
|
||||||
dependencies:
|
dependencies:
|
||||||
lame.sourceforge.io: '>=3.98.3'
|
lame.sourceforge.io: '>=3.98.3'
|
||||||
libsdl.org: ^2
|
libsdl.org: ^2
|
||||||
|
freetype.org: ^2
|
||||||
|
harfbuzz.org: ^8
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -32,8 +34,15 @@ build:
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
- --prefix="{{prefix}}"
|
- --prefix="{{prefix}}"
|
||||||
|
- --enable-libfreetype
|
||||||
|
- --enable-libharfbuzz
|
||||||
- --enable-libmp3lame
|
- --enable-libmp3lame
|
||||||
|
|
||||||
test:
|
test:
|
||||||
- ffmpeg -filter_complex testsrc=rate=1:duration=1 out.mp4
|
dependencies:
|
||||||
|
gnu.org/wget: "*"
|
||||||
|
info-zip.org/unzip: "*"
|
||||||
|
script:
|
||||||
|
- 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
|
||||||
- test -f out.mp4
|
- test -f out.mp4
|
||||||
|
|
Loading…
Reference in a new issue