Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freeswitch installation problem #175

Closed
Naga04 opened this issue Dec 12, 2019 · 6 comments
Closed

freeswitch installation problem #175

Naga04 opened this issue Dec 12, 2019 · 6 comments
Labels
not a bug This is neither a bug nor a feature request

Comments

@Naga04
Copy link

Naga04 commented Dec 12, 2019

I have install freeswitch .but ihave some problem..
How to solve this problem

avformat.c:44:38: fatal error: libavresample/avresample.h: No such file or directory
compilation terminated.
make[4]: *** [libavmod_la-avformat.lo] Error 1
make[4]: Leaving directory /usr/local/src/freeswitch/src/mod/applications/mod_av' make[3]: *** [mod_av-all] Error 1 make[3]: Leaving directory /usr/local/src/freeswitch/src/mod'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory /usr/local/src/freeswitch/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory /usr/local/src/freeswitch'
make: *** [all] Error 2

@sibyakin
Copy link

You need the ffmpeg-devel package for your distro.
The building of FreeSWITCH from the source may be hard, try to use packages.
https://freeswitch.org/confluence/display/FREESWITCH/Debian+10+Buster

@jlmendo11
Copy link

I have installed the ffmpeg-devel package but the problem is still there :(

mjerris added a commit that referenced this issue Jan 9, 2020
…v1.8-fsa

* commit 'ace17d4e573eee1b1560faff1e1eafe20106f75f':
  FS-11671 fix potential devided by zero again
@primoitt83
Copy link

I was facing the same issue on Ubuntu 16.04 x64.

This is what solved it

apt-get install ffmpeg

ffmpeg -version
ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers

Get the sources

https://ffmpeg.org/releases/

wget https://ffmpeg.org/releases/ffmpeg-2.8.15.tar.gz

tar -zxvf ffmpeg-2.8.15.tar.gz

cd ffmpeg-2.8.15

cp -R libav* -R /usr/local/include/

cp -R libsw* -R /usr/local/include

Compile Freeswitch again

@primoitt83
Copy link

I was facing the same issue on Ubuntu 16.04 x64.

This is what solved it

apt-get install ffmpeg

ffmpeg -version
ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers

Get the sources

https://ffmpeg.org/releases/

wget https://ffmpeg.org/releases/ffmpeg-2.8.15.tar.gz

tar -zxvf ffmpeg-2.8.15.tar.gz

cd ffmpeg-2.8.15

cp -R libav* -R /usr/local/include/

cp -R libsw* -R /usr/local/include

Compile Freeswitch again

Anyway the mod_av is not loading properly

freeswitch@ubuntu> load mod_av

+OK Reloading XML
-ERR [module load file routine returned an error]

2020-02-13 15:00:35.051220 [INFO] mod_enum.c:880 ENUM Reloaded
2020-02-13 15:00:35.051220 [INFO] switch_time.c:1423 Timezone reloaded 1750 definitions
2020-02-13 15:00:35.051220 [CRIT] switch_loadable_module.c:1522 Error Loading module /usr/lib/freeswitch/mod/mod_av.so
/usr/lib/freeswitch/mod/mod_av.so: undefined symbol: avresample_alloc_context

@primoitt83
Copy link

primoitt83 commented Feb 14, 2020

It works now!

wget https://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20170217-2245-stable.tar.bz2
tar -jxvf x264-snapshot-20170217-2245-stable.tar.bz2
cd x264-snapshot-20170217-2245-stable
./configure --prefix=/usr --enable-debug --enable-pic --enable-shared
make -j4
make install

git clone https://freeswitch.org/stash/scm/sd/libav.git
cd libav
patch -p1 < 0001-Fix-linking-errors-when-VC1-parser-is-enabled-and-VC.patch
PKG_CONFIG_PATH="/usr/lib/pkgconfig" ./configure --prefix=/usr --extra-libs=-lpthread --extra-libs=-lm --enable-shared --enable-gpl --enable-libx264
make -j4
make install

On Freeswitch

PKG_CONFIG_PATH="/usr/lib/pkgconfig" ./configure --enable-portable-binary
--prefix=/usr --localstatedir=/var --sysconfdir=/etc
--with-gnu-ld --with-python --with-erlang --with-openssl
--enable-core-odbc-support --enable-zrtp

freeswitch@ubuntu> load mod_av

+OK Reloading XML
+OK

2020-02-14 10:33:40.027951 [INFO] mod_enum.c:880 ENUM Reloaded
2020-02-14 10:33:40.027951 [INFO] switch_time.c:1423 Timezone reloaded 1750 definitions
av_log callback installed, level= 32
2020-02-14 10:33:40.027951 [CONSOLE] switch_loadable_module.c:1540 Successfully Loaded [mod_av]
2020-02-14 10:33:40.027951 [NOTICE] switch_loadable_module.c:213 Adding Codec H264 99 H264 Video 90000hz 0ms 1ch (VBR)
2020-02-14 10:33:40.027951 [NOTICE] switch_loadable_module.c:213 Adding Codec H263 34 H263 Video 90000hz 0ms 1ch (VBR)
2020-02-14 10:33:40.027951 [NOTICE] switch_loadable_module.c:213 Adding Codec H263-1998 115 H263+ Video 90000hz 0ms 1ch (VBR)
2020-02-14 10:33:40.027951 [NOTICE] switch_loadable_module.c:338 Adding API Function 'av'
2020-02-14 10:33:40.027951 [NOTICE] switch_loadable_module.c:390 Adding File Format 'av'
2020-02-14 10:33:40.027951 [NOTICE] switch_loadable_module.c:390 Adding File Format 'rtmp'
2020-02-14 10:33:40.027951 [NOTICE] switch_loadable_module.c:390 Adding File Format 'rtsp'
2020-02-14 10:33:40.027951 [NOTICE] switch_loadable_module.c:390 Adding File Format 'mp4'
2020-02-14 10:33:40.027951 [NOTICE] switch_loadable_module.c:390 Adding File Format 'm4a'
2020-02-14 10:33:40.027951 [NOTICE] switch_loadable_module.c:390 Adding File Format 'mov'
2020-02-14 10:33:40.027951 [NOTICE] switch_loadable_module.c:390 Adding File Format 'mkv'
2020-02-14 10:33:40.027951 [NOTICE] switch_loadable_module.c:390 Adding File Format 'webm'

@crienzo crienzo added the not a bug This is neither a bug nor a feature request label Aug 12, 2020
@crienzo crienzo closed this as completed Aug 12, 2020
@iamtalhaasghar
Copy link

wget https://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20170217-2245-stable.tar.bz2
tar -jxvf x264-snapshot-20170217-2245-stable.tar.bz2
cd x264-snapshot-20170217-2245-stable
./configure --prefix=/usr --enable-debug --enable-pic --enable-shared
make -j4
make install

throws another error:

filters/video/resize.c: In function 'pick_closest_supported_csp':
filters/video/resize.c:212:30: error: 'AVComponentDescriptor' has no member named 'depth_minus1'
212 | if( pix_desc->comp[i].depth_minus1 >= 8 )
| ^
make: *** [: filters/video/resize.o] Error 1
make: *** Waiting for unfinished jobs....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not a bug This is neither a bug nor a feature request
Projects
None yet
Development

No branches or pull requests

6 participants