[FFmpeg-user] How to avoid blurred text when using drawtext filter?
Mike Scheutzow
mike.scheutzow at alcatel-lucent.com
Mon Jun 27 20:13:53 CEST 2011
pgoldweic wrote:
> When I run ffmpeg with the drawtext filter, I get the desired result (a title
> on top of a movie) in a small size movie, but I get blurred text when I type
> the same command using a larger input movie. What causes this? How can I
> change my command to avoid the blurred text?
> For specific details, the command I'm using is:
> ffmpeg -i mymovie.mp4 -vcodec libx264 -acodec copy -vf
> "drawtext=fontfile=/usr/share/fonts/bitstream-vera/VeraSe.ttf:fontsize=30:x=50:y=50:fontcolor=white:text='this
> is a title'" mytitledmovie.mp4
> frame= 167 fps= 9 q=31.0 Lsize= 31kB time=5.51 bitrate= 45.7kbits/s
The encoder used 45 kbits/sec, which is way too low for 1920x1080 to
look good.
The problem is that you have not specified a quality level or a bit rate
for the encoder to use.
To fix it, add the following just after '-vcodec libx264'
-crf 23
Mike Scheutzow
More information about the ffmpeg-user
mailing list