FFMPEG MP4 to WebP animation issue in CentOs 7.*

414 views
Skip to first unread message

Sunil Kumar

unread,
Sep 24, 2019, 9:08:35 AM9/24/19
to WebP Discussion
Hi, 

I am facing issue in generating webp animation image from mp4 file in CentOS 7.5 server on AWS Cloud but it is giving error - Encoder (codec webp) not found for output stream #0:0

We have tried installing all dependence and FFMPEG showing libwebp library is available but still it is not working. However below command is working  fine in windows 10 command prompt as well as GitBash but not working on CentOS 7.5. Please review below command line and advise what is missing and how to fixed CentOS issue.  


(Not working on CentOs. )
ffmpeg -i myvideo.mp4 -filter_complex "[0:v]scale=120:68,fps=fps=5,trim=start=60:end=63,setpts=PTS-STARTPTS[v0];[0:v]scale=120:68,fps=fps=5,trim=start=90:end=93,setpts=PTS-STARTPTS[v1];[0:v]scale=120:68,fps=fps=5,trim=start=240:end=243,setpts=PTS-STARTPTS[v2];[v0][v1][v2]concat=n=3:v=1:a=0[out]" -map "[out]" mlkhar_06_09_19.webp -qscale 10 -lossless true -preset default -compression_level 2

Normal Command -  (Not working on CentOS)
ffmpeg -i videos/mlkhattar.mp4 -ss 00:00:00 -t 00:00:05 -s 320x180 normal_test.webp

Please advise how to fixed this issue. 

Best regards,
Sunil Kumar



Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Pascal Massimino

unread,
Sep 25, 2019, 5:47:28 AM9/25/19
to WebP Discussion, James Zern
Hi Sunil,

Is this the system's ffmpeg? It's possible it wasn't configured with
webp encoding support (--enable-libwebp). You can check the available
codecs with the following command, it will also output the
configuration used:

$ ffmpeg -codecs |grep webp
  built with gcc 8 (Debian 8.2.0-14+build1)
  configuration: --prefix=/usr --extra-version='1~deb10u1'
--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-opengl
--enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883
--enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
...
 DEVILS webp                 WebP (encoders: libwebp_anim libwebp )
 
hope it helps,
skal/


Reply all
Reply to author
Forward
0 new messages