nyanmisaka / ffmpeg-rockchip

FFmpeg with async and zero-copy Rockchip MPP & RGA support
Other
325 stars 47 forks source link

why do not support drawtext #68

Closed yuyinw closed 1 month ago

yuyinw commented 1 month ago

I installed libxml2-v2.9.14、fribidi-1.0.12、freetype-2.10.0、fontconfig-2.13.95

image

nyanmisaka commented 1 month ago

Building ffmpeg is non-trivial for beginners. You can use a pre-built binary instead.

https://github.com/MarcA711/Rockchip-FFmpeg-Builds/releases

yuyinw commented 1 month ago

thank you very much !!! use Rockchip-FFmpeg-Builds can work !

i have a question: the drawtext defaults to using CPU to overlay watermarks, will we consider using GPU to add watermarks in the future

nyanmisaka commented 1 month ago

This is beyond what MPP/RGA runtime can support.

You can use the following command to achieve zero-copy, but the text will still be rendered by the CPU.

-vf "scale_rkrga=format=nv12,hwmap,format=nv12,drawtext=...,hwmap"