- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
我按照文档:
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.
- 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.
- 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
请帮忙看看,多谢!
- Tags:
- HTML5
- JavaScript*
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
我以前也出过这个,仔细检查了安装日志,发现是ffmpeg缺少一些依赖没编译过
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
非常感谢。没注意编译日志。日志里确实有报错:ERROR: libfdk_aac not found
已经解决了。

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page