2022-11-11 18:54:33 +03:00
|
|
|
distributable:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://ffmpeg.org/releases/ffmpeg-{{version.raw}}.tar.gz
|
2022-11-11 18:54:33 +03:00
|
|
|
sig: ${{url}}.asc
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
# docs: https://trac.ffmpeg.org/wiki/CompilationGuide
|
|
|
|
|
|
|
|
versions:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://ffmpeg.org/releases/
|
|
|
|
match: /ffmpeg-\d+\.\d+(\.\d+)?\.tar\.gz/
|
|
|
|
strip:
|
|
|
|
- /ffmpeg-/
|
|
|
|
- /.tar.gz/
|
2022-11-11 18:54:33 +03:00
|
|
|
|
2022-11-30 21:55:18 +03:00
|
|
|
provides:
|
|
|
|
- bin/ffmpeg
|
2023-11-20 18:22:33 +03:00
|
|
|
- bin/ffplay
|
2022-11-30 21:55:18 +03:00
|
|
|
- bin/ffprobe
|
|
|
|
|
2023-11-06 18:21:51 +03:00
|
|
|
dependencies:
|
|
|
|
lame.sourceforge.io: '>=3.98.3'
|
2023-11-20 18:22:33 +03:00
|
|
|
libsdl.org: ^2
|
2024-01-12 07:28:20 +03:00
|
|
|
freetype.org: ^2
|
|
|
|
harfbuzz.org: ^8
|
2024-02-19 19:15:51 +03:00
|
|
|
videolan.org/x264: ^0.164
|
|
|
|
videolan.org/x265: ^3.2.1
|
|
|
|
webmproject.org/libvpx: ^1.14
|
2023-11-06 18:21:51 +03:00
|
|
|
|
2022-11-11 18:54:33 +03:00
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
x86-64:
|
|
|
|
nasm.us: 2
|
2023-11-06 18:21:51 +03:00
|
|
|
script:
|
|
|
|
- ./configure $ARGS
|
|
|
|
- make --jobs {{hw.concurrency}}
|
|
|
|
- make install
|
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- --prefix="{{prefix}}"
|
2024-01-12 07:28:20 +03:00
|
|
|
- --enable-libfreetype
|
|
|
|
- --enable-libharfbuzz
|
2023-11-06 18:21:51 +03:00
|
|
|
- --enable-libmp3lame
|
2024-02-19 09:27:25 +03:00
|
|
|
- --enable-shared
|
2024-02-19 19:15:51 +03:00
|
|
|
- --enable-libx264
|
|
|
|
- --enable-gpl # required for x264
|
|
|
|
- --enable-libx265
|
|
|
|
- --enable-libvpx
|
2022-11-11 18:54:33 +03:00
|
|
|
|
2023-11-06 18:21:51 +03:00
|
|
|
test:
|
2024-01-12 07:28:20 +03:00
|
|
|
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
|