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


i've written php program creates video 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 run it,

it says glibcxx_3.4.15 , glibcxx_3.4.9 , glibcxx_3.4.11 not found.

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

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

/opt/lampp/lib/libstdc++.so.6: version `glibcxx_3.4.9' not found

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

/opt/lampp/lib/libstdc++.so.6: version `glibcxx_3.4.11' not found

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

/opt/lampp/lib/libstdc++.so.6: version `glibcxx_3.4.9' not found

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

but terminal, ffmpeg -framerate 50 -i image/image%d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4 command works fine. why php can't find libraries while terminal works fine? , should fix problem in php? in advance.

i got similar problem while executing ffmpeg command php script. found solution executing following command terminal. pasting command here this.

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

now run php script, hope work.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -