Ffmpeg - title displayed over the duration of the video

I used the ffmpeg package to create a wmv file from gif (see below). The name appears for a few seconds, then disappears. Is there a parameter that I can apply so that the title appears in the video all the time?

 ffmpeg -i Input.gif -s 300x300 -metadata title="Testing" Output.wmv 

Following Maxito's suggestion, I changed the code to

 ffmpeg -i Input.gif -vf drawtext="text='Text to write is this one, overlaid':fontsize=20:fontcolor=red:x=100:y=100" Output_Text.wmv 

The following error message is received:

 [AVFilterGraph @ 0x100115cc0] No such filter: 'drawtext' Error opening filters! 

This is the version of ffmpeg that I used on Mac 10.6.8. Is there a need to recompile?

 ffmpeg version 2.5.3 built on Jan 19 2015 13:08:24 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --arch=x86_64 --enable-runtime-cpudetect libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat 56. 15.102 / 56. 15.102 libavdevice 56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 
+5
source share
2 answers

An error with AVFilterGraph and drawtext occurs when your ffmpeg is compiled without libfreetype.

To generate images with text, you need to compile ffmpeg with libfreetype. The easiest way to do this is Homebrew .

It is assumed that homegrown is already installed:

 # If ffmpeg is already installed, you need to uninstall it. brew uninstall ffmpeg # you may very well want to specify other options (eg --with-faac) brew install ffmpeg --with-freetype 
+14
source

You can download the ffmpeg binary for OS X if you don't want to compile. It contains the libfreetype support that is required for the drawtext filter.

Users of another OS can receive binary files through links on the FFmpeg Download page.

0
source

All Articles