Closed yh4922 closed 6 months ago
你可以用 jessibuca 播放,或者用 preview 播放,因为其他几个流的音频格式 webrtc 不支持,所以走了特殊的方式传输,jessibuca 可以用来播放这种情况
好像是 我用preview 可以 自己实现的webrtc 播放不行
是的,webrtc 不支持 aac 协议,所以如果音频是 aac 协议,就使用 datachannel 传输数据了
jessibuca 是不是只有pro版本才支持 webrtc
对
{
"Path": "live/023484b4ff88e7f0e4a86b92fdb15a61",
"State": 2,
"Subscribers": 2,
"Tracks": [
"h264"
],
"StartTime": "2024-03-13T10:17:32.702617629+08:00",
"Type": "RTSPPuller",
"BPS": 523039
},
{
"Path": "live/72af26c92c7f96856636de92441249cb",
"State": 2,
"Subscribers": 5,
"Tracks": [
"h264",
"aac"
],
"StartTime": "2024-03-13T09:52:42.109984508+08:00",
"Type": "HLSPuller",
"BPS": 509547
}
我这里两个流都是同一个摄像头转发出来的
rtsp那个Tracks里面没有音频格式 可以用webrtc播放 另一个不想 有没有配置可以不要音频轨道的参数
我有添加 配置
global:
loglang: en
loglevel: error # 日志级别,可选值:debug,info,warn,error,panic,fatal
publish:
pubaudio: false
subscribe:
subaudio: false
ps:
enable: false
room:
enable: false
edge:
enable: false
hook:
enable: false
debug:
enable: false
monitor:
enable: false
record:
enable: false
gb28181:
enable: false
理论上这样就可以
还是会有aac的音频轨道 换成 jessica 预览了
是不是你用的版本太老
start github.com/langhuihui/monibuca version: v4.7.4
这个版本会老么
我是前段时间下拉仓库编译的
用最新的吧
我换成 了最新的
还是会有aac的音频
[
{
"Path": "live/d5e2e9fdcbb189197e5aad0125ee247f",
"State": 2,
"Subscribers": 2,
"Tracks": [
"aac",
"h264"
],
"StartTime": "2024-03-13T11:02:20.316622878+08:00",
"Type": "HDLPuller",
"BPS": 9909
}
]
现在其他的已经都可以了
[
{
"Path": "live/023484b4ff88e7f0e4a86b92fdb15a61",
"State": 2,
"Subscribers": 1,
"Tracks": [
"h264"
],
"StartTime": "2024-03-13T11:54:19.447445255+08:00",
"Type": "RTSPPuller",
"BPS": 449653
},
{
"Path": "live/72af26c92c7f96856636de92441249cb",
"State": 2,
"Subscribers": 2,
"Tracks": [
"h264"
],
"StartTime": "2024-03-13T11:54:19.448529219+08:00",
"Type": "HLSPuller",
"BPS": 615723
},
{
"Path": "live/d5e2e9fdcbb189197e5aad0125ee247f",
"State": 2,
"Subscribers": 1,
"Tracks": [
"aac",
"h264"
],
"StartTime": "2024-03-13T11:54:19.450460104+08:00",
"Type": "HDLPuller",
"BPS": 1009974
},
{
"Path": "live/33ddbe28bc1051c5fab10274c5b233cd",
"State": 2,
"Subscribers": 1,
"Tracks": [
"h264"
],
"StartTime": "2024-03-13T11:54:19.46957681+08:00",
"Type": "RTMPPuller",
"BPS": 1008814
}
]
就是flv 的不行 一直报错
11:59:30 ERROR HDL attach audio track failed {"stream": "live/d5e2e9fdcbb189197e5aad0125ee247f", "url": "http://192.168.18.119:8080/live/test.flv", "type": "HDLPuller", "track": "aac", "error": "Track Already Exist"}
我看一下
确实 HDL 的 Puller 会覆盖掉 PubAudio,这里我得改一下
你可以手动安装一下m7s.live/plugin/hdl/v4 v4.1.11-0.20240313041408-780dcc14aa1b测试一下
可以了 非常感谢 🙏🙏🙏
另外 rtmp的也会报错
ERROR RTMP attach audio track failed {"stream": "live/33ddbe28bc1051c5fab10274c5b233cd", "url": "rtmp://192.168.18.119:1935/live/test", "type": "RTMPPuller", "track": "aac", "error": "Track Mute"}
但是好像不影响 预览
对,禁用后 attach 就会报 Track Mute
我有几个流
rtsp
rtmp
flv
hls
几个流 用M7S拉流 rtsp 的流可以转程成webrtc播放 其他的都不行