problem with ffmpeg with --enable-pthread

647 views
Skip to first unread message

crusader

unread,
Oct 7, 2007, 5:18:14 PM10/7/07
to ffmpeg-php
I get this error when I try to use php-ffmpeg:

# PHP Warning: PHP Startup: Unable to load dynamic library '/usr/
local/lib/php/20050922/ffmpeg.so' - /usr/local/lib/libavcodec.so.1:
Undefined symbol "pthread_join" in Unknown on line 0
# TEST 1: Testing function 'ffmpeg_movie()':
#
# Fatal error: Class 'ffmpeg_movie' not found in /usr/home/encoder/
php_test.php on line 8

how can I solve this problem without disabling "pthreads" I need
those, cause the ffmpeg performace decreases without it.
I already tried to disable shared libraries but without php-ffmpeg
does not compile.

Any help would be great.
Thank you
Sebastian

Todd Kirby

unread,
Oct 7, 2007, 5:39:58 PM10/7/07
to ffmpe...@googlegroups.com
run...

ldd /usr/local/lib/libavcodec.so.1

..and post the output.

crusader

unread,
Oct 7, 2007, 6:57:03 PM10/7/07
to ffmpeg-php
/usr/local/lib/libavcodec.so.1:
liba52.so.0 => /usr/X11R6/lib/liba52.so.0 (0x28523000)
libavutil.so.1 => /usr/X11R6/lib/libavutil.so.1 (0x2852f000)
libm.so.4 => /lib/libm.so.4 (0x28538000)
libz.so.3 => /lib/libz.so.3 (0x2854e000)
libamrnb.so.2 => /usr/X11R6/lib/libamrnb.so.2 (0x2855f000)
libamrwb.so.2 => /usr/X11R6/lib/libamrwb.so.2 (0x2859a000)
libfaac.so.0 => /usr/X11R6/lib/libfaac.so.0 (0x285c3000)
libfaad.so.0 => /usr/X11R6/lib/libfaad.so.0 (0x285d6000)
libmp3lame.so.0 => /usr/X11R6/lib/libmp3lame.so.0 (0x28613000)
libogg.so.5 => /usr/X11R6/lib/libogg.so.5 (0x28681000)
libtheora.so.2 => /usr/X11R6/lib/libtheora.so.2 (0x28686000)
libvorbis.so.4 => /usr/X11R6/lib/libvorbis.so.4 (0x286b3000)
libvorbisenc.so.2 => /usr/X11R6/lib/libvorbisenc.so.2
(0x286d9000)
libx264.so.50 => /usr/X11R6/lib/libx264.so.50 (0x287d4000)
libxvidcore.so.4 => /usr/X11R6/lib/libxvidcore.so.4
(0x2886e000)
libmp4v2.so.0 => /usr/local/lib/libmp4v2.so.0 (0x2898d000)
libgpac.so.1 => /usr/X11R6/lib/libgpac.so.1 (0x28a3e000)
libc.so.6 => /lib/libc.so.6 (0x2807d000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x28c71000)
libssl.so.4 => /usr/lib/libssl.so.4 (0x28d3c000)
libcrypto.so.4 => /lib/libcrypto.so.4 (0x28d6a000)

On Oct 7, 11:39 pm, "Todd Kirby" <ffmpeg....@gmail.com> wrote:
> run...
>
> ldd /usr/local/lib/libavcodec.so.1
>
> ..and post the output.
>

ffmpe...@gmail.com

unread,
Oct 7, 2007, 7:05:44 PM10/7/07
to ffmpeg-php
Nothing is missing. Is it possible you compiled against a different
pthreads version than is installed? Do you have more than one version
installed?

-T-

crusader

unread,
Oct 7, 2007, 7:15:20 PM10/7/07
to ffmpeg-php
How can I find out that?

crusader

unread,
Oct 7, 2007, 8:08:52 PM10/7/07
to ffmpeg-php
One thing which might help the problem.
The time I recompile ffmpeg without pthreads (means --enable-
pthreads) php5-ffmpeg is working correctly without being recompiled.

Sebastian

crusader

unread,
Oct 8, 2007, 6:40:38 PM10/8/07
to ffmpeg-php
here some outputs which may help to find a solutions:

php -m:
http://rafb.net/p/zwa1yf30.html

make clean install output:
http://rafb.net/p/IojEVb56.html

objectdump -T ffmpeg.so
http://rafb.net/p/NflnRH33.html

ldd ffmpeg.so
http://rafb.net/p/pkhpyy75.html

On Oct 8, 1:15 am, crusader <crusa...@far-galaxy.de> wrote:

Todd Kirby

unread,
Oct 8, 2007, 6:58:10 PM10/8/07
to ffmpe...@googlegroups.com
I'm not sure what to tell you to try. The problem is in libavcodec somewhere but I don't know enought about pthreads to diagnose it. It seems like you are using a version of pthreads that's missing a function that libavcodec expects to be there. You could run 'nm' on the pthreads lib and manually check for the missing function.

-T-
Reply all
Reply to author
Forward
0 new messages