Do you get this error if you use a JPG for your watermark? According to my Googling, this happens when FFMPEG is compiled without zlib support, which is necessary for PNG decoding. If you install zlib on your server and then recompile FFMPEG it should fix that issue.
Thread Starter
isant
(@isant)
Yes it’s the same problem with JPG. I just recompile FFMPEG with –enable-zlib but it’s the same problem : no work with jpg or png.
Thread Starter
isant
(@isant)
I am looking to resolve it since 10 hours 🙁
Here is the new error log with zlib
ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libspeex --enable-shared --enable-pthreads --enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-zlib
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 36.100 / 56. 36.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www/wordpress/wp-content/plugins/video-embed-thumbnail-generator/images/sample-video-h264.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.33.100
Duration: 00:00:01.02, start: 0.021333, bitrate: 123 kb/s
Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 109 kb/s, 23.98 fps, 23.98 tbr, 11988 tbn, 47.95 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s (default)
Metadata:
handler_name : SoundHandler
Input #1, image2, from '/var/www/wordpress/wp-content/uploads/2016/01/936639_151249485244304_5071296792405107527_n.jpg':
Duration: 00:00:00.04, start: 0.000000, bitrate: 5633 kb/s
Stream #1:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 480x644 [SAR 1:1 DAR 120:161], 25 tbr, 25 tbn, 25 tbc
Filtergraph 'transpose=1' was specified through the -vf/-af/-filter option for output stream 0:0, which is fed from a complex filtergraph.
-vf/-af/-filter and -filter_complex cannot be used together for the same stream.
Thread Starter
isant
(@isant)
last error
thanks for help
ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: –enable-gpl –enable-postproc –enable-swscale –enable-avfilter –enable-libmp3lame –enable-libvorbis –enable-libtheora –enable-libx264 –enable-libspeex –enable-shared –enable-pthreads –enable-libopenjpeg –enable-libfaac –enable-nonfree –enable-zlib
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 36.100 / 56. 36.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘/var/www/wordpress/wp-content/plugins/video-embed-thumbnail-generator/images/sample-video-h264.mp4’:
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.33.100
Duration: 00:00:01.02, start: 0.021333, bitrate: 123 kb/s
Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1920×1080 [SAR 1:1 DAR 16:9], 109 kb/s, 23.98 fps, 23.98 tbr, 11988 tbn, 47.95 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s (default)
Metadata:
handler_name : SoundHandler
[png_pipe @ 0x1add400] Could not find codec parameters for stream 0 (Video: png, none): unspecified size
Consider increasing the value for the ‘analyzeduration’ and ‘probesize’ options
/var/www/wordpress/wp-content/uploads/2016/01/Wikimedia-logo.png: could not find codec parameters
Input #1, png_pipe, from ‘/var/www/wordpress/wp-content/uploads/2016/01/Wikimedia-logo.png’:
Duration: N/A, bitrate: N/A
Stream #1:0: Video: png, none, 25 tbr, 25 tbn, 25 tbc
No decoder for stream #1:0, filtering impossible
Error configuring filters.
Please be patient. This is a free plugin and I can only provide support when I have spare time.
enable-zlib isn’t a flag you need to use when you compile FFMPEG. It’s supposed to autodetect when zlib is installed on your server. But if you have an error with a JPG watermark, then it’s not a zlib problem.
I think I know what’s causing the error. Have you tried ignoring the error and just encoding a video with your watermark option enabled? The sample system appears to be broken when watermarks are enabled, but that shouldn’t stop it from working with other videos in your media library.