Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Intel Customer Support will be observing the Martin Luther King holiday on Monday, Jan. 17, and will return on Tues. Jan. 18.
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646

关于libfdk_aac

han_x_
Beginner
600 Views

 

我按照文档:

2.3.5 Compile and deploy ffmpeg with libfdk_aac

The default ffmpeg library used by MCU server has no libfdk_aac support. If you want to enable libfdk_aac for external stream output, please compile and deploy ffmpeg yourself with following steps:

Note: The libfdk_aac is designated as "non-free", please make sure you have got proper authority before using it.

  1. Go to Release-<Version>/access_agent folder, compile ffmpeg with libfdk_acc with below command:
     compile_ffmpeg_with_libfdkaac.sh
    

    Note: This compiling script need install all dependencies for ffmpeg with libfdk_aac. If that is not expected on deployment machines, please run it on other proper machine.

  2. Copy all output libraries under ffmpeg_libfdkaac_lib folder to Release-<Version>/access_agent/lib to replace the existing ones.

 

将编译后的文件夹ffmpeg_libfdkaac_lib中的文件都复制到access_agent/lib,复制后ls命令查看access_agent/lib中文件为:

libapr-1.so.0      libavutil.so.55            libexpat.so.1        libgcc_s.so.1     libopus.so.0.5.0    libuuid.so.1
libaprutil-1.so.0  libboost_system.so.1.54.0  libfdk-aac.so        liblog4cxx.so.10  libstdc++.so.6      libz.so.1
libavcodec.so.57   libboost_thread.so.1.54.0  libfdk-aac.so.1      libopus.so        libswresample.so.2
libavformat.so.57  libbz2.so.1.0              libfdk-aac.so.1.0.0  libopus.so.0      libusrsctp.so.1

我想把本地流推送到rtsp流媒体服务器上,在基本例子script2.js里添加:

conference.addExternalOutput('rtsp://192.168.1.114:554/123.sdp', {streamId: localStream.id()
            }, function () {
              L.Logger.info('Start external streaming success.');
            }, function (err) {
              L.Logger.error('Start external streaming failed:', err);
            });

但还是报错:

ERROR: Start external streaming failed: Can not find audio encoder libfdk_aac, please check if ffmpeg/libfdk_aac installed

还有这个错:

ERROR: Start external streaming failed: Timeout to make rpc to avstream.92cbaffa-21ce-0aee-cf91-d94f330c72f1.0.subscribe

请帮忙看看,多谢!

0 Kudos
2 Replies
董宁_郭_
Novice
600 Views

我以前也出过这个,仔细检查了安装日志,发现是ffmpeg缺少一些依赖没编译过

han_x_
Beginner
600 Views

非常感谢。没注意编译日志。日志里确实有报错:ERROR: libfdk_aac not found

已经解决了。

Reply