I'm trying to overlay some text emoticons on top of a video using ffmpeg.. This works fine for normal TTF's e.g.
ffmpeg -i video.mp4 -vf drawtext="Arial.ttf: text='YENTL 😎 Bresseleers ': fontcolor=white: fontsize=24: x=(w-text_w)/2: y=(h-text_h-line_h)/2" -codec:a copy output.mp4 -y
I can use the OpenSansEmoji font which gets me closer to what I need..
ffmpeg -i video.mp4 -vf drawtext="OpenSansEmoji.ttf.ttf: text='YENTL 😎 Bresseleers ': fontcolor=white: fontsize=24: x=(w-text_w)/2: y=(h-text_h-line_h)/2" -codec:a copy output.mp4 -y`
However when I try with a TTF file with coloured emoji's like emojione or Noto Color Emoji I get the below error:
[Parsed_drawtext_0 @ 0x7fd643700000] Could not set font size to 24 pixels: invalid module handle
[AVFilterGraph @ 0x7fd643608b80] Error initializing filter 'drawtext' with args 'fontfile=AppleColorEmoji.ttf: text=YENTL 😎 Bresseleers : fontcolor=white: fontsize=24: x=(w-text_w)/2: y=(h-text_h-line_h)/2'
Error opening filters!`
Any ideas?