【发布时间】:2021-03-06 20:32:40
【问题描述】:
我正在使用来自 Kurento 的 opus 编解码器流式传输音频流 通过 ffmpeg 到 nginx-rtmp-module。我正在使用以下命令流式传输到 nginx-rtmp:
ffmpeg -protocol_whitelist file,udp,rtp -i test-audio.sdp
-c:a libopus -f opus rtmp://<server_ip>/live/<stream_name>
我在 ffmpeg 方面没有发现任何错误。但是没有生成 m3u8 文件。但我在 nginx 日志中注意到以下内容:
2020/11/23 23:19:31 [info] 95#0: *8 connect: app='live' args='' flashver='FMLE/3.0 (compatible; Lavf57.83' swf_url='' tc_url='rtmp://192.168.4.28:1935/live' page_url='' acodecs=0 vcodecs=0 object_encoding=0, client: 172.17.0.1, server: 0.0.0.0:1935
注意到acodes=0。这是否意味着它不喜欢 opus 编解码器?
下面是我的 nginx.conf:
rtmp {
server {
listen 1935;
chunk_size 4096;
application hopefm {
live on;
interleave on;
hls on;
hls_path /mnt/hls;
hls_fragment 3;
hls_playlist_length 60;
}
}
}
感谢您的帮助。
【问题讨论】:
-
它没有检测到任何编解码器、视频或音频。你确定你的 ffmpeg 命令正在产生一些输出吗?
标签: nginx ffmpeg rtmp hlsl opus