[FFmpeg-trac] #8664(undetermined:new): Drawbox filter does not display over transparent backgrounds
FFmpeg
trac at avcodec.org
Mon May 11 07:00:46 EEST 2020
#8664: Drawbox filter does not display over transparent backgrounds
--------------------------------------+------------------------------------
Reporter: ScriptTiger | Type: defect
Status: new | Priority: critical
Component: undetermined | Version: 4.0.4
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------------+------------------------------------
This bug is reproducible on all versions later than 3.4.2.
I have the following complex filtergraph stored in a file
(filtergraph.txt):
color=
00000000:
1280x720:
sar=1,
trim=
end_frame=1,
format=
rgba,
drawbox=
0:
175:
640:
375:
545454:
15,
drawbox=
640:
175:
640:
375:
545454:
15,
drawbox=
0:
585:
345:
60:
545454:
fill,
drawbox=
935:
585:
345:
60:
545454:
fill,
drawtext=
fontsize=70:
fontcolor=blue:
text='Test':
x=490-(text_w/2):
y=60-(text_h/2),
drawtext=
fontsize=70:
fontcolor=red:
text='Overlay':
x=715-(text_w/2):
y=60-(text_h/2),
drawtext=
fontsize=30:
fontcolor=white:
text='Subtitle':
x=640-(text_w/2):
y=120-(text_h/2),
drawtext=
fontsize=31.5:
fontcolor=green:
text='Host':
x=1100-(text_w/2):
y=620-(text_h/2)
[overlay]
I then issue the following command:
ffmpeg -filter_complex filtergraph.txt -map "[overlay]" overlay.png
In ffmpeg versions 3.4.2 and earlier the png comes out as expected, with
some drawboxes and text over a transparent background. However, in
versions later than 3.4.2 there are absolutely no drawboxes present in the
resultant png but the drawtext comes out fine.
The build information for the latest version that DOES NOT have this
problem is as follows:
ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
--enable-libspeex --enable-libxvid --enable-libmfx --enable-cuda --enable-
cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options]
outfile}...
All other versions after that all experience the same issue.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8664>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list