Opened 9 years ago

Closed 9 years ago

#4157 closed defect (fixed)

ffmpeg does not recognize drawtext command

Reported by: ill Owned by:
Priority: normal Component: build system
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

After compiling ffmpeg with the --enable-filter=drawtext, when launching the command, it does not recognize the option.

$ ./ffmpeg -f alsa -itsoffset 0.7 -ar 24000 -i plughw:2 -f video4linux2 -input_format mjpeg -s 960x720 -r 5 -i /dev/video0 -map 0:a -map 1:v http://127.0.0.1:8090/cam.ffm -f segment -segment_time 3600 -segment_atclocktime 1 -r 5 -s 640x480 -reset_timestamps 1 -segment_list_flags live -vf "drawtext='fontfile=/usr/share/fonts/truetype/DejaVuSans.ttf:fontcolor=white:fontsize=30:x=1:y=2:shadowx=1:shadowy=1:text=%{localtime\:%Y-%m-%d %H

\:%M

\:%S}'" -segment_start_number 504 /media/cam/test_%04d.avi
ffmpeg version N-68199-g5fe026f Copyright (c) 2000-2014 the FFmpeg developers

built on Dec 4 2014 04:06:36 with gcc 4.8 (SUSE Linux)
configuration: --enable-filter=drawtext
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

Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'plughw:2':

Duration: N/A, start: 1417691649.389935, bitrate: 768 kb/s

Stream #0:0: Audio: pcm_s16le, 24000 Hz, 2 channels, s16, 768 kb/s

Input #1, video4linux2,v4l2, from '/dev/video0':

Duration: N/A, start: 2046885.891824, bitrate: N/A

Stream #1:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 960x720, 0 kb/s, 5 fps, 5 tbr, 1000k tbn, 1000k tbc

[swscaler @ 0x1ea07e0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x1f07b80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x1f23900] deprecated pixel format used, make sure you did set range correctly
[AVFilterGraph @ 0x1f31080] No such filter: 'drawtext'
Error opening filters!

Change History (2)

comment:1 by Carl Eugen Hoyos, 9 years ago

--enable-filter=drawtext does not look like a useful configure option, how did you find it?
Please run ./configure --help to see the relevant options to enable external dependencies, you need --enable-libfreetype.

comment:2 by Carl Eugen Hoyos, 9 years ago

Component: undeterminedbuild system
Resolution: fixed
Status: newclosed
Version: unspecifiedgit-master

The output of configure --help is improved since d9a4db65 and shows now that --enable-libfreetype is needed to enable the drawtext filter.

Note: See TracTickets for help on using tickets.