Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

播放WS-FLV(LIVE) 视频编码H264,音频编码G711A的直播流时,音频解析失败 #232

Open
KAN-007 opened this issue Mar 2, 2023 · 1 comment

Comments

@KAN-007
Copy link

KAN-007 commented Mar 2, 2023

播放WS-FLV(LIVE) 视频编码H264,音频编码G711A的直播流时,音频解析失败

场景

问题:播放WS-FLV(LIVE) 视频编码H264,音频编码G711A的直播流时,音频解析失败,只能播放视频画面
模式:直播

视频 URL

wss://zlmvideo.gpsnow.net:10443/jtt1078/055000012151_1_0.live.flv

视频信息
音频编码G711A
视频编码:H264
封装格式:flv

问题描述

1)播放器没有声音,已设置最大音量
2)h265web.js返回的媒体资源数据显示audioNone: true,但是在jessbuca播放器(http://jessibuca.monibuca.com/mobile-fullscreen.html)上是有声音的
3)
image

等等

是否偶发

补充

image

@hohaiuhsx
Copy link

我在用Websocket 方式播放 H264+AAC也遇到同样的问题(audioNone: true)。我尝试将FLV数据流中 AAC SEQ HDR 第一个发送,这个问题就规避掉了。
修改前帧顺序 FlvHdr -> AvcSeqHdrTag -> AacSeqHdrTag -> Audio/VideoFrameTag
Http 播放正常, WebSocket 有图像没声音audioNone: true
修改后帧顺序 FlvHdr -> AacSeqHdrTag -> AvcSeqHdrTag -> Audio/VideoFrameTag
Http WebSocket 均能正常播放

如果你也能修改FLV数据流的话 可以偿试一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants