MJPG 音频流

发布于 2024-10-06 10:18:13 字数 484 浏览 7 评论 0原文

我在服务器端有一个程序,它不断生成一系列 JPEG 文件,我想在客户端浏览器上以视频流的形式播放这些文件,并具有所需的帧速率(该视频应该在新的 JPEG 文件生成时播放)正在生成)。同时,我有一个方便的 wav 文件,我想在播放流视频时在客户端播放这个 wav 文件。

有办法做吗?我做了很多研究,但找不到令人满意的解决方案——它们要么仅用于视频流,要么仅用于音频流。

我知道 mjpg-streamer http://sourceforge.net/projects/mjpg-streamer/能够从 JPEG 文件播放 MJPG 格式的流媒体视频,但看起来不能播放流媒体音频。

我对这个领域非常陌生,因此非常感谢更详细的解释。太感谢了!!!

PS C++ 中的解决方案/库是首选,但其他任何东西也会有帮助。我正在Linux上工作。

I have a program on the server side that keeps generating a series of JPEG files, and I want to play these files on the client browser as a video stream, with a desired frame rates (this video should be playing while the new JPEG files are being generated). Meanwhile, I have a wav file that is handy and I want to play this wav file in the client side, when the streaming video is being played.

Is there anyway to do it? I have done a plenty of research but can't find a satisfactory solution -- they are either just for video streaming or just for audio streaming.

I know mjpg-streamer at http://sourceforge.net/projects/mjpg-streamer/ is capable of playing streaming videos in MJPG format from JPEG files, but it doesn't look like that it can play streaming audios.

I am very new to this area, so more detailed explanation will be extremely appreciated. Thank you so much!!!

P.S. a solution/library in C++ is preferred but anything else would help as well. I am working on linux.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

挽你眉间 2024-10-13 10:18:13

浏览器应该能够本地执行此操作,不是吗? Firefox 当然可以做到这一点,只要你简单地给它流媒体 mjpeg 源的正确 URL。 mjpeg 流应正确格式化。

The browser should be able to do this natively, no? Firefox can do this certainly, if you simply give it the correct url of the streaming mjpeg source. The mjpeg stream should be properally formatted.

呢古 2024-10-13 10:18:13

我想通了。正确的方法是使用 ffmpeg、libav 和 RTMP 服务器,例如 red5。

I figured it out. The proper way of doing it is to use ffmpeg, libav and an RTMP server, such as red5.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文