在DirectShow中直播H.264 [英] Live streaming H.264 in DirectShow

查看:129
本文介绍了在DirectShow中直播H.264的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道我必须使用DirectShow中的哪些过滤器才能通过http传输H.264 LIVE流?
(特别是我必须使用什么样的源过滤器)

Does anyone know which filters in DirectShow I have to use in order to stream H.264 LIVE stream over http? (especially what kind of source filter I have to use)

任何代码建议都会有所帮助。

Any code suggestion will be helpful.

谢谢!

推荐答案

您的意思是HTTP隧道或苹果(MPEG-TS)和MicroSoft的基于块的方法(MP4)?

Do you mean HTTP tunneling or the chunk-based methods of apple (MPEG-TS) and MicroSoft (MP4) ?

如果您正在寻找隧道解决方案,以下内容可能会有所帮助:

If you are looking for a tunneling solution, the following might be helpful:

One (典型)选项是使用RTSP源过滤器。但是,Windows中没有库存RTSP源过滤器。您可以自己编写或尝试使用以下方法之一:
http://rtpstream.com/downloads .shtml
我从来没有用它,所以不能说它有多好用,我记得看过HTTP隧道选项。

One (typical) option is to use an RTSP source filter. However there is no stock RTSP source filter in windows. You can write your own or try to use one of the following: http://rtpstream.com/downloads.shtml I have never used it so can't say how well it works, I do remember seeing the HTTP tunneling option though.

如果您正在寻找带有源代码的示例,我还在 sourceforge 上提供了一个示例。它使用 live555 库进行RTSP / RTP / RTCP。它的目的是流式播放一些音频格式,我只是最近开始使用它添加H.264支持。我设法流式传输live555提供的示例H.264文件。也许它可能有助于入门。 Live555确实支持HTTP隧道,但您必须修改过滤器源代码才能使其正确。

I have also made an example one available at sourceforge if you are looking for one with source code. It uses the live555 library for RTSP/RTP/RTCP. It was aimed at streaming some audio formats and I only recently started playing around with adding H.264 support to it. I managed to stream the example H.264 files available from live555. Perhaps it could be helpful in getting started. Live555 does support HTTP tunneling, but you would have to modify the filter source code to get it right.

这篇关于在DirectShow中直播H.264的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆