I' going to add some text to a video segment using -vf
but it doesn't work. Here is what I tried
avconv -ss 00:00:20 -i input.mp4 -t 00:00:10 -vcodec copy -acodec copy \
-vf "drawtext=fontfile='/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf':text='hello world':x=0:y=0:fontsize=24:fontcolor=black" output.mp4
But the text doesn't show up. I know that -t
argument should appear after -i
or the duration won't be set. I wonder if I misplace -vf
in this case. Would anyone tell me how to make it?
P.S. I install it with apt-get install ffmpeg
. Software info:
avconv version 0.8.9-6:0.8.9-0ubuntu0.13.04.1, Copyright (c) 2000-2013 the Libav developers
built on Nov 9 2013 19:09:48 with gcc 4.7.3