Open ChristopherGabba opened 2 months ago
See 9 in Tips wiki.
@tanersener Thanks for sharing. However, I'm not getting this issue with draw-text
not being found, it is working fine. It's just the draw-text
option of text_align
that is not working.
Basically, as soon as I add text_align
I get this error.
@ChristopherGabba I've checked it again. text_align
is a new option added in FFmpeg 7.0
. That's why you see that error. The latest we have in FFmpegKit
is FFmpeg 6.0
.
In old versions, text can be aligned by manually setting the x and y coordinates to position the text as desired.
x=(W-tw)/2 centers the text horizontally
y=(H-th)/2 centers the text vertically
@tanersener okay perfect, thanks! Any forecast on v7?
A new release is expected in the coming weeks, but it hasn't been decided yet whether it will be a 6.x
or 7.x
release.
@tanersener thanks so much!
Description I am trying to use the text_align property noted in the docs:
I've ruled down the
text_align
property as the source and I have tried numerous combinations of entering it. I found this thread on reddit and it talks about needing ffmpeg 6.1? https://www.reddit.com/r/ffmpeg/comments/18pcr34/why_dont_we_allow_drawtext_option_align_text_yet/And I get this error:
Expected behavior The text should align center.
Current behavior The ffmpeg fails to compile.
To Reproduce Use the code above to generate an image with text. Here is my full ffmpeg command:
Logs Logs shown above
Environment
ReactNative
Other Add any other context about the problem here.