[FFmpeg-user] overlay not connected to source error - drawtext

Damon Edwards dzedward at gmail.com
Sat Apr 28 01:29:33 CEST 2012


[root at localhost test]# ffmpeg -i table.mp4 -vf
"drawtext=textfile=txtoverlay:fontfile=/usr/share/fonts/default/ghostscript/bchb.pfa:x=(w-text_w)/2:y=(h-text_h-line_h)/2:fontsize=21:fontcolor=white:shadowy=2,fade=in:0:10:alpha=1,fade=out:30:10:alpha=1
[over]; [in][over] overlay [out]" -r 29 -vcodec libx264 -acodec libfaac -ab
"96k" -ac 2 -y overlaid.mp4
ffmpeg version N-40099-g2b336df Copyright (c) 2000-2012 the FFmpeg
developers
  built on Apr 26 2012 13:40:42 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3)
  configuration: --enable-gpl --enable-libmp3lame --enable-libtheora
--enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libx264
--enable-version3 --enable-libfaac --enable-nonfree --enable-libfreetype
  libavutil      51. 47.100 / 51. 47.100
  libavcodec     54. 15.100 / 54. 15.100
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 72.100 /  2. 72.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 11.100 /  0. 11.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'table.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2012-04-03 00:57:29
  Duration: 00:00:07.60, start: 0.000000, bitrate: 330 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 /
0x31637661), yuv420p, 270x360, 254 kb/s, 29.97 fps, 29.97 tbr, 60k tbn,
59.94 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, s16,
71 kb/s
    Metadata:
      creation_time   : 2012-04-03 00:57:29
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
[buffer @ 0x2127440] w:270 h:360 pixfmt:yuv420p tb:1/1000000 sar:0/1
sws_param:flags=2
[fade @ 0x2124fe0] type:in start_frame:0 nb_frames:10 alpha:1
[fade @ 0x2113d60] type:out start_frame:30 nb_frames:10 alpha:1
Input pad "main" for the filter "Parsed_overlay_3" of type "overlay" not
connected to any source
Error opening filters!
[root at localhost test]#

However, something like this works

ffmpeg -i table.mp4 -vf
"color=red at 0.2:270x50,fade=in:0:10:alpha=1,fade=out:30:10:alpha=1
[over]; [in][over] overlay [out]" -r 29 -vcodec libx264 -acodec libfaac -ab
"96k" -ac 2 -y overlaid.mp4


More information about the ffmpeg-user mailing list