Opened 3 years ago
Closed 3 years ago
#9325 closed defect (invalid)
thickness=fill does not work for all supported versions
Reported by: | Kyle | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avfilter |
Version: | unspecified | Keywords: | drawbox |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description (last modified by )
According to https://launchpad.net/ubuntu/+source/ffmpeg version 4.2.4-1 is supported for Ubuntu The Focal Fossa and version 3.4.8-0 is supported for Ubuntu The Bionic Beaver
I have command that may need to run in both environments that involves a drawbox with thickness=[max or fill]
In 4.2.4-1 'fill' works but 'max' does not.
In 3.4.8-0 'max' works but 'fill' does not.
https://ffmpeg.org/ffmpeg-all.html#drawbox calls for using 'fill' but it does not work for 3.4.8-0
Sample command:
ffmpeg -i /tmp/ffmpeg/trans.m4v -vf "drawbox=color=black:thickness=fill" /tmp/ffmpeg/output_1.mp4
or
ffmpeg -i /tmp/ffmpeg/trans.m4v -vf "drawbox=color=black:thickness=max" /tmp/ffmpeg/output_1.mp4
Running with fill on 3.4.8-0 gives output:
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04) configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared 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 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc 54. 7.100 / 54. 7.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/ffmpeg/trans.m4v': Metadata: major_brand : M4V minor_version : 512 compatible_brands: isomiso2avc1 title : TED: Luisa Neubauer (2019 TEDx) artist : TED album : TEDTalks date : 2019 encoder : Lavf57.83.100 comment : To learn more about this speaker, find other TEDTalks, and subscribe to this Podcast series, visit www.TED.com : Feedback: contact@ted.com genre : Podcast media_type : 0 Duration: 00:00:58.03, start: 0.000000, bitrate: 552 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 4:3 DAR 16:9], 383 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default) Metadata: handler_name : SoundHandler File '/tmp/ffmpeg/output_1.mp4' already exists. Overwrite ? [y/N] y Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help [Parsed_drawbox_0 @ 0x55b34736d9c0] [Eval @ 0x7fff8cc7bce0] Undefined constant or missing '(' in 'fill' Last message repeated 5 times [Parsed_drawbox_0 @ 0x55b34736d9c0] Error when evaluating the expression 'fill'. [Parsed_drawbox_0 @ 0x55b34736d9c0] Failed to configure input pad on Parsed_drawbox_0 Error reinitializing filters! Failed to inject frame into filter network: Invalid argument Error while processing the decoded data for stream #0:0 [aac @ 0x55b346ebee40] Qavg: 17716.898 [aac @ 0x55b346ebee40] 2 frames left in the queue on closing Conversion failed!
Running with 'max' on 4.2.4-1 gives:
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-10ubuntu2) configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/ffmpeg/trans.m4v': Metadata: major_brand : M4V minor_version : 512 compatible_brands: isomiso2avc1 title : TED: Luisa Neubauer (2019 TEDx) artist : TED album : TEDTalks date : 2019 encoder : Lavf57.83.100 comment : To learn more about this speaker, find other TEDTalks, and subscribe to this Podcast series, visit www.TED.com : Feedback: contact@ted.com genre : Podcast media_type : 0 Duration: 00:00:58.03, start: 0.000000, bitrate: 552 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 4:3 DAR 16:9], 383 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default) Metadata: handler_name : SoundHandler File '/tmp/ffmpeg/output_1.mp4' already exists. Overwrite ? [y/N] y Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help [Parsed_drawbox_0 @ 0x55e0c9621340] [Eval @ 0x7ffeab2cb8b0] Undefined constant or missing '(' in 'max' Last message repeated 5 times [Parsed_drawbox_0 @ 0x55e0c9621340] Error when evaluating the expression 'max'. [Parsed_drawbox_0 @ 0x55e0c9621340] Failed to configure input pad on Parsed_drawbox_0 Error reinitializing filters! Failed to inject frame into filter network: Invalid argument Error while processing the decoded data for stream #0:0 [aac @ 0x55e0c919bb40] Qavg: 33384.375 [aac @ 0x55e0c919bb40] 2 frames left in the queue on closing Conversion failed!
Change History (2)
comment:1 by , 3 years ago
Description: | modified (diff) |
---|
comment:2 by , 3 years ago
Component: | undetermined → avfilter |
---|---|
Keywords: | thickness fill max removed |
Resolution: | → invalid |
Status: | new → closed |
Version: | 4.2.4 → unspecified |
Please understand that only current FFmpeg git head is supported on this bug tracker.
Using max was a bug, it was therefore replaced with fill in b3cb9bd43fa33a8aaf7a63e43f8418975b3bf0de