Question

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 and with "asterisk -vvvvvc" i got

asterisk: symbol lookup error: /usr/lib/asterisk/modules/app_transcoder.so: undefined symbol: avcodec_init

Showing the dependencies of app_transcoder.so by "ldd /usr/lib/asterisk/modules/app_transcoder.so" gives:

    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)

"avcodec_init" comes from libavcodec.so file but it has no symbols as from the commands:

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

gives:

nm: /usr/local/lib/libavcodec.so.54: no symbols

i am following the instructions from Medooze

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.

Was it helpful?

Solution

add /usr/local/lib to your library path /etc/ld.so.conf

after that, execute "ldconfig"

recompile asterisk.

Found this ffmpeg mailing list: avcodec_init() isn't used nowadays. Instead avcodec_register_all() is used. It seems you may need to downgrade ffmpeg.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top