GLIBCXX_3.4.9 not found when running ffmpeg from php in lampp server

I wrote a php program that creates a video from a sequence of images using ffmpeg.

<?php
    $res = shell_exec("ffmpeg -framerate 50 -i image/image%d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4 2>&1");
    echo "$res";

When I launched it,

he says GLIBCXX_3.4.15, GLIBCXX_3.4.9, GLIBCXX_3.4.11 could not be found .

ffmpeg: / opt / lampp / lib / libstdc ++. so.6: version of `GLIBCXX_3.4.15 'not

found (requires / usr / lib / i386-linux-gnu / libjack.so.0) ffmpeg:

/ opt / lampp / lib / libstdC ++. so.6: version of `GLIBCXX_3.4.9 'not found

(requires / usr / lib / i386-linux-gnu / libzmq.so.3) ffmpeg:

/ opt / lampp / lib / libstdC ++. so.6: version of `GLIBCXX_3.4.11 'not found

(requires / usr / lib / i386-linux-gnu / libopencv_core.so.2.4) ffmpeg:

/ opt / lampp / lib / libstdC ++. so.6: version of `GLIBCXX_3.4.9 'not found

(requires / usr / lib / i386-linux-gnu / libopencv_core.so.2.4)

ffmpeg -framerate 50 -i image/image%d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4 . php , ? , php? .

+4
1

ffmpeg PHP script. , . , - .

sudo mv /opt/lampp/lib/libstdc++.so.6 /opt/lampp/lib/libstdc++.so.6.orig

php script, , .

+13

All Articles