[jefferson Goven]"Hello i installed ffmeg with the drawtext option, I do:
ffmpeg -i file.mov -vf drawtext="fontfile=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf:text='Text to write':fontsize=20:fontcolor=black:x=100:y=100" final.mov"
I recompiled and tried this and it works well. Last time I tried it had several issues. One feature I am looking for is "centre justified" text which seems not to be an option. Any ideas?
[jefferson Goven]"it works but i would like to make the text appear at a specific time around 3 or 5 sec after the video start
No ideas specifically using libavfilter..... I will have a look into it. A workaround would be to generate an overlay "movie" first with alpha with text that doesn't start until this time. Of course, this would not be using the drawtext filter but the overlay filter........ I will keep thinking.
I have been working on the same issue.
I was trying to add text while capturing.
Do I have to do it before encoding or after encoding ?
Can you please suggest me the right way to overlay text on video file through program rather than pipelines.