
Some GIFs are getting converted but some not, this is the error message: PHP Fatal error: Uncaught Alchemy\BinaryDriver\Exception\ExecutionFailureException: ffmpeg failed to execute command "ffmpeg/bin/ffmpeg.exe" -y -i "memes/38/Dr5W6yzR_gif_38.gif" -threads 12 -vcodec libx264 -acodec libvo_aacenc -b:v 1000k -refs 6 -coder 1 -sc_threshold 40 -flags +loop -me_range 16 -subq 7 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 -trellis 1 -b:a 128k -profile:v baseline -pix_fmt yuv420p -pass 1 -passlogfile "C:\Windows\TEMP\ffmpeg-passes5f392ad8ba750qewzr/pass-5f392ad8bb9b7" "memes/38/Dr5W6yzR_gif_38.mp4":įfmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developersĬonfiguration: -enable-gpl -enable-version3 -enable-sdl2 -enable-fontconfig -enable-gnutls -enable-iconv -enable-libass -enable-libdav1d -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 -e in C:\Inetpub\vhosts\\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Media\AbstractVideo.php on line 106

$format->setAdditionalParameters(array('-profile:v', 'baseline', '-pix_fmt', 'yuv420p')) $format = new \FFMpeg\Format\Video\X264('libvo_aacenc', 'libx264') 'ffmpeg.threads' => 12, // The number of threads that FFMpeg should use 'timeout' => 6600, // The timeout for the underlying process 'ffmpeg.binaries' => 'ffmpeg/bin/ffmpeg.exe',


I use this code to convert GIFs to MP4: $videoname = str_replace('.gif', '.mp4', $picname)
