I have found out how ffmpeg can add image watermark at the bottom left of a video
ffmpeg -i "C:\test.mp4" -i "C:\test\watermark.png" -filter_complex "overlay=10:main_h-overlay_h-10" "C:\test-watermark.mp4"
but I am looking for a way to add text (white, 12px text, with black shadow to make the text readable) instead of an image. Can somebody help me?
Use the drawtext filter.
ffmpeg -i "C:\test.mp4"
-vf "drawtext=text='Place text here':x=10:y=H-th-10:
fontfile=/path/to/font.ttf:fontsize=12:fontcolor=white:
shadowcolor=black:shadowx=5:shadowy=5"
"C:\test-watermark.mp4"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With