[FFmpeg-user] overlay and drawtext
jacky
renaux.jacky at orange.fr
Thu Jan 24 17:48:46 CET 2013
Hi
I try to insert a logo as overlay and would like to insert a text on top
the cmd line I am using is
ffmpeg -i smptebars.flv -i uad.png -filter_complex "[0][1]overlay[b];[b]
drawtext=fontsize=20:fontfile=C:/WINDOWS/Fonts/ARIAL.TTF:=text=hello
world:x=(w-text_w)/2:y=(h-text_h-line_h)/2" -y
smptbars_text_logo.flv 2>log.txt
ffmpeg version N-48731-g7e5c5fa Copyright (c) 2000-2013 the FFmpeg
developers
built on Jan 10 2013 19:47:49 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-libass --enable-libbluray --enable-libcaca
--enable-libfreetype --enable-libgsm --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs
--enable-libxvid --enable-zlib --enable-filter=frei0r
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.107 / 54. 59.107
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.100 / 3. 32.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, flv, from 'smptebars.flv':
Metadata:
encoder : Lavf54.59.107
Duration: 00:04:31.20, start: 0.000000, bitrate: 130 kb/s
Stream #0:0: Video: flv1, yuv420p, 320x240, 200 kb/s, 25 tbr, 1k
tbn, 1k tbc
Input #1, image2, from 'uad.png':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #1:0: Video: png, rgba, 100x95 [SAR 1:1 DAR 20:19], 25 tbr,
25 tbn, 25 tbc
[drawtext @ 024c6020] Key '/WINDOWS/Fonts/ARIAL.TTF:' not found.
[AVFilterGraph @ 024c83c0] Error initializing filter 'drawtext' with
args 'fontsize=20:fontfile=C:/WINDOWS/Fonts/ARIAL.TTF:=text=hello
world:x=(w-text_w)/2:y=(h-text_h-line_h)/2'
Error configuring filters.
I have 3 questions
1- what is the error I made
2- how can I add transparency on png file
3- can I insert the text taken from a text file ?
many thanks for your advices
jacky
More information about the ffmpeg-user
mailing list