FreeSWITCH support libav up to the ffmpeg version 4.4, version 5.0 and up removes all depracated stuff, we'd like to support the new version and in the mean time keep the old version work as long as possible. Maybe you can join the signalwire office hour and the slack channel to talk more about this. And new ClueCon is coming.

On Mon, Sep 5, 2022 at 2:04 PM Дилян Палаузов <dpa-freeswitch@aegee.org> wrote:
Hello,

in the past I could compile mod_av, but at some momemnt, it got not
compilable.  I have Fedora 36 system.  There I can choose, whether to
install as packages ffmpg or libav. I tried with both, it does not
work.  But I think that ffmpeg(-devel) is the right one, as
https://libav.org/news/ shows no recent activity.

The compiler cannot find the definitions of enum AVLockOp,
AV_LOCK_CREATE, AV_LOCK_OBTAIN.  See the error log below.  The error
message is below.

mod/applications/mod_av/Makefile suggests installing libavformat-dev
and libswscale-dev to build mod_av.  Installing them does not help.


At https://github.com/signalwire/freeswitch/pull/1626 I proposed an
improvement to the fs_cli/mod_sofia autocompletion.  Will it see any
progress towards upstream?

Greetings
  Дилян

----


making all mod_av
make[4]: Entering directory
'/git/freeswitch/freeswitch/src/mod/applications/mod_av'
  CC       libavmod_la-mod_av.lo
mod_av.c:52:38: error: ISO C forbids forward references to 'enum' types
[-Werror=pedantic]
   52 | int mod_av_lockmgr_cb(void **m, enum AVLockOp op)
      |                                      ^~~~~~~~
mod_av.c:52:38: error: 'enum AVLockOp' declared inside parameter list
will not be visible outside of this definition or declaration [-Werror]
mod_av.c:52:47: error: parameter 2 ('op') has incomplete type
   52 | int mod_av_lockmgr_cb(void **m, enum AVLockOp op)
      |                                 ~~~~~~~~~~~~~~^~
mod_av.c: In function 'mod_av_lockmgr_cb':
mod_av.c:62:22: error: 'AV_LOCK_CREATE' undeclared (first use in this
function); did you mean 'AV_LOG_TRACE'?
   62 |                 case AV_LOCK_CREATE:
      |                      ^~~~~~~~~~~~~~
      |                      AV_LOG_TRACE
mod_av.c:62:22: note: each undeclared identifier is reported only once
for each function it appears in
mod_av.c:72:22: error: 'AV_LOCK_OBTAIN' undeclared (first use in this
function)
   72 |                 case AV_LOCK_OBTAIN:
      |                      ^~~~~~~~~~~~~~
mod_av.c:79:22: error: 'AV_LOCK_RELEASE' undeclared (first use in this
function)
   79 |                 case AV_LOCK_RELEASE:
      |                      ^~~~~~~~~~~~~~~
mod_av.c:86:22: error: 'AV_LOCK_DESTROY' undeclared (first use in this
function)
   86 |                 case AV_LOCK_DESTROY:
      |                      ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [Makefile:1015: libavmod_la-mod_av.lo] Error 1
make[4]: Leaving directory
'/git/freeswitch/freeswitch/src/mod/applications/mod_av'
make[3]: *** [Makefile:727: mod_av-all] Error 1


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
https://freeswitch.com


--
Work:  http://xswitch.cn
Community:  http://rts.cn
About: http://about.me/dujinfang