community/ffmpeg: drawtext filter does not work in alpine 3.19
The ffmpeg (community/ffmpeg) drawtext filter does not seems to work in the alpine 3.19 (it works in alpine 3.18).
The install command used is (full Dockerfile is at https://github.com/rgl/mediamtx-rtsp-server/blob/main/Dockerfile):
apk --no-cache add \
ffmpeg \
font-dejavu
The following command line:
ffmpeg \
-f lavfi \
-i 'smptebars=duration=120:size=640x360:rate=30' \
-filter:v "drawtext=text='%{pts\\:hms} #%{n}':x=-5:y=3:fontsize=53:fontcolor=white:box=1:boxborderw=3:boxcolor=black:fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf" \
-c:v libx264 \
-profile:v baseline \
-pix_fmt yuv420p \
-preset ultrafast \
-tune stillimage \
-movflags +faststart \
-b:v 600k \
smptebars.mp4
Fails with:
...
0.312 [AVFilterGraph @ 0x7f5238b9fc00] No such filter: 'drawtext'
0.312 [vost#0:0/libx264 @ 0x7f523897a280] Error initializing a simple filtergraph
...
Please note that the same command line works with ffmpeg 6.1.0 (the version that is now used in alpine 3.19) from https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.7z.