Quote:
Originally Posted by Ruen
We got it to work but were unable to change the font, and were unable to change what time the watermark shows up in the video.
Current code:
Code:
/usr/local/bin/ffmpeg -i "test.wmv" -acodec libfaac -keyint_min 20 -r 20 -vcodec libx264 -crf 25 -b 1000k -bt 1000k -y -bf 16 -threads 0 -vf drawtext="fontfile=includes/captchaFont.ttf:text='website':fontsize=15:fontcolor=white:x=w-30*t:y=10" "test.mp4"
|
The
drawtext video filter has
timeline editing support. This can evaluate an
expression and allows you to provide the time(s) of when the filter should be enabled.
This example will enable the filter from 20 seconds to 2 minutes
Code:
ffmpeg -i input_file.mp4 -vf "drawtext=enable='between(t,20,2*60)':fontfile=/usr/share/fonts/truetype/impact.ttf: text='Mywebsite.com Test'" -acodec copy output.mp4
The audio was stream copied in this example
Note: for font try absolute path