How to send webcam video + audio to rtsp/rtmp server

跟風遠走 提交于 2019-12-07 23:14:27

问题


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#.

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?


回答1:


Check out https://net7mma.codeplex.com/ ( I am the Author )

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.

If you need Rtmp specefically check out

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

or

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

Let me know if you need anything else!



来源:https://stackoverflow.com/questions/15321896/how-to-send-webcam-video-audio-to-rtsp-rtmp-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!