Using the below command to add watermark in a video:
ffmpeg -i inputClip.mp4 -vf "drawtext=text='©Krishna':x=640:y=360:fontsize=24:fontcolor=white" -c:a copy output.mp4
I am not able to add certain special characters as text here like %,",' etc..
Can anyone let me know, if there are any limitations to it? Please share the reliable source as well.
Easy method is to put the string into a text file then use the
textfile
option in drawtext instead oftext
:Otherwise you have escape each special character. This is tedious. See FFmpeg Quoting and Escaping.