app_transcoder.so: undefined symbol: avcodec_init

Hello everyone,

I am trying to integrate the 3G video gateway with Asterisk(1.4.0).
When i load the module “app_transcoder.so” (which does the actual video transcoding), then
asterisk hangs. I have got the following from “asterisk -vvvvvc” command:

dependencies of app_transcoder.so :

linux-vdso.so.1 => (0x00007fff851ff000) libavcodec.so.54 => /usr/local/lib/libavcodec.so.54 (0x00007f8604ec3000) libswscale.so.2 => /usr/local/lib/libswscale.so.2 (0x00007f8604c6e000) libc.so.6 => /lib64/libc.so.6 (0x00007f86048d9000) libavutil.so.52 => /usr/local/lib/libavutil.so.52 (0x00007f86046a7000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f860448a000) libx264.so.142 => /usr/local/lib/libx264.so.142 (0x00007f86040d1000) libgsm.so.1 => /usr/lib/libgsm.so.1 (0x00007f8603ec6000) libm.so.6 => /lib64/libm.so.6 (0x00007f8603c42000) libz.so.1 => /lib64/libz.so.1 (0x00007f8603a2b000) /lib64/ld-linux-x86-64.so.2 (0x0000003b14200000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f8603827000)

So the error in “avcodec_init” function comes from libavcodec.so file but it has no symbols as from the commands:

nm -a /usr/local/lib/libavcodec.so.54 gives:

i am following the instructions from http://medooze.com

CentOS-6.4

ffmpeg-1.2.6

asterisk-1.4.0

x264- 0.142x

ptlib-2.6.7

mpeg4ip-1.6.1

Any advice is appreciated.

Howdy,

I’d start with the people you got app_transcoder from; it’s not a part of mainline Asterisk, so the people who wrote it (who aren’t here) are probably the best to talk to.

Good luck. :smile: