如何将网络摄像头视频 + 音频发送到 rtsp/rtmp 服务器 [英] How to send webcam video + audio to rtsp/rtmp server

查看:125
本文介绍了如何将网络摄像头视频 + 音频发送到 rtsp/rtmp 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种将视频和音频发送到 rtsp/rtmp 服务器的方法.它应该与笔记本网络摄像头和 USB 网络摄像头兼容.我想用 C# 来做.

I'm looking for a method to send video and audio to the rtsp/rtmp server. It should be compatible with notebook webcams and USB webcams. I would like to do it in C#.

我找到了一些名为 rtmpclient 的库,但它看起来无法向服务器发送消息.我还发现了一个支持网络摄像头的框架,可以为每个捕获的帧执行操作.但是我找不到任何类似的解决方案来发送带有图像的声音.

I found some library called rtmpclient, but it looks it can't send a message to the server. I found also a framework to support webcams that gives a posibility to do an action for every captured frame. But I can't find any similar solution to send a voice with the image.

如何将视频和音频发送到服务器?

How can I send the video and audio to the server?

推荐答案

查看 https://net7mma.codeplex.com/(我是作者)

它支持 Rtsp 和 Rtp 而不是 Rtmp 但是它可以通过一些更改来支持 Rtmp.根据您想要实现的目标,它可能已经可以实现了……您可以将 Rtmp 数据包伪装为 RtpPacket,而库不会在意.

It supports Rtsp and Rtp and not Rtmp however it could support Rtmp with some changes. Depending on what you want to achieve it may be able to do it already... You can possibly fake the Rtmp Packet as a RtpPacket and the library wouldn't care.

如果你特别需要Rtmp,请查看

If you need Rtmp specefically check out

http://www.broccoliproducts.com/softnotebook/rtmpclient/rtmpclient.php

http://www.fluorinefx.com/docs/fluorine/netconnectionrtmp.html

如果您需要其他任何东西,请告诉我!

Let me know if you need anything else!

这篇关于如何将网络摄像头视频 + 音频发送到 rtsp/rtmp 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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