Installed ffmpeg but with error

46 views
Skip to first unread message

Anu

unread,
Dec 19, 2007, 12:20:17 AM12/19/07
to ffmpeg-php
After installing ffmpeg and run at the terminal window in Linux I have
got the error as follows
ffmpeg: error while loading shared libraries: libavdevice.so.52:
cannot open shared object file: No such file or directory.

Please help in removing this error.....

HostOnNet.com

unread,
Dec 19, 2007, 1:51:27 AM12/19/07
to ffmpeg-php
Check if the file exists on the server

find / -name 'libavdevice.so.*'

You may need to add the folder to "/etc/ld.so.conf" and run "ldconfig"
command.

Anu

unread,
Dec 19, 2007, 2:40:32 AM12/19/07
to ffmpeg-php
find / -name 'libavdevice.so.*'

returns instances at /usr/lib, usr/local/lib, /root/ffmpeg

ld.so.conf is a file.

and now error has changed to
ffmpeg: error while loading shared libraries: libavformat.so.52:
cannot open shared object file: No such file or directory.

Please help...

HostOnNet.com

unread,
Dec 19, 2007, 4:52:08 AM12/19/07
to ffmpeg-php
Try following commands

echo "/usr/local/lib" >> /etc/ld.so.conf
echo "/usr/lib" >> /etc/ld.so.conf
ldconfig

Anu

unread,
Dec 21, 2007, 7:24:57 AM12/21/07
to ffmpeg-php
Thanks got working all is working as required through terminal window
however not through php exec command.

i installed ffmpeg-php and ffmpeg showing it in phpinfo() function.

please help....

Todd Kirby

unread,
Dec 21, 2007, 4:45:03 PM12/21/07
to ffmpe...@googlegroups.com
On Dec 21, 2007 2:24 AM, Anu <munish....@gmail.com> wrote:

Thanks got working all is working as required through terminal window
however not through php exec command.

Add the output param to your exec command and echo it to see what is the error.  Something like this...

<?php
exec("ffmpeg ...", $output, $return);
print_r($output);
print("<br/>ffmpeg exited with: $return");
?>


-T-
 

i installed ffmpeg-php and ffmpeg showing it in phpinfo() function.

This is not what allows or disallows running the ffmpeg binary via exec().

please help....
Reply all
Reply to author
Forward
0 new messages