Skip to content
New issue

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

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

Already on GitHub? # to your account

解码问题 #81

Open
ZLJ599 opened this issue Mar 30, 2020 · 1 comment
Open

解码问题 #81

ZLJ599 opened this issue Mar 30, 2020 · 1 comment

Comments

@ZLJ599
Copy link

ZLJ599 commented Mar 30, 2020

我现在通过websocket收到的h264数据,看了一下数据中只有序列参数集(SPS),现在表现不能解码播放出来. 这是为什么 ?
了解到C语言通过ffmpeg 通过 avcodec_decode_video2 函数可以解码。并且能生成图片展示。
前端该怎么处理。

@Richardn2002
Copy link

数据中只有SPS是一个罕见的情况,能否更细致地描述一下你的配置?以及这个repo中包含的服务端代码并不好,你可以参考我写的这个用于提供树莓派摄像头里的h.264流的服务端代码。
本repo的核心在于对Broadway.js这个面向浏览器的h.264解码器的websocket包装,它是在前端运用WebGL进行绘图的。有关在前端如何用ffmpeg进行h.264解码等其他技术路线的问题你不该在这里发问。

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

No branches or pull requests

2 participants