How to send webcam video + audio to rtsp/rtmp server - 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#.
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?

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!

Related

Streaming video using raw sockets

I'm trying to generate a live video stream and surface it via a UPnP framework.
I'm using the UPnP framework that was originally developed by intel available here. It seems to have rolled it's own lightweight webserver. I'm using FFMPEG to generate my video stream from images, I can set it up to feed it frames on a timer. But how I manage the data that's generated? How do I use send an HTTP response that could be a stream of unlimited length?
Is there a well worn technology to do this that I'm not aware of?
Any input would be great.
https://trac.ffmpeg.org/wiki/StreamingGuide possibly ffmpeg could listen on a tcp port, though that would require you to restart ffmpeg each time a client exits...and would only serve one client at a time. If you want more than one client at a time you would have to use some type of real server...

Real time audio streaming and broadcasting using C# over the net for mobile clients

I'm trying to work out a way to to record and broadcast audio in real time with a mobile to a group of receiving mobile clients.
I was looking at shoutcast/icecast to relay the audio but these seem to be old technology. I've been reading about SIP, Jabber, Red, Jingle, etc., but find it a bit confusing.
I'm beginning to think I could use HTML5 browser client (i.e. websockets) to capture and send the audio somehow. Is there a slicker way of doing this using C# as typed code is more comfortable to work with?

audio and video msg in SignalR

I'm developing a chat application using signalR and I finished the text chat but I'm wondering if signalR support the audio and video messages ?? and if it does what are the best way to implement it i have read the wiki on github i have implemented all the chat appilcation using a simple text chat but i couldn't find any solution of how to work around with audio and video do any one know how can i do it ?
SignalR is for sending out small messages to signal data or changes. Therefore you should transmit a link to the actual image or video in this case. The way the web works ;)

Recording/sending screen stream C#

I am looking for a C#.net library to help me record the stream of one PC's screen and then send the recording live to another application through a socket.
I found this question here regarding the screen capturing, but this library can only broadcast to a certain port, I want to be able to send the recording live to another application through socket, so if anyone have any other class or something to add to this to make it able to send the live broadcast to the other computer that would be helpful...
Perhaps Expression Encoder, which includes API access for just about everything you can do through the UI.

How does VLC Media player implement HTTP Streaming?

How does VLC Media player implement HTTP Streaming?
I am aware that, VLC Media player can be used as a streaming server and also a streaming client.
My requirement is to stream(over HTTP) a proprietary protocol data from the server to clients and I am not comfortable with C/C++ code. I am comfortable with C# and Java. Can somebody point me to example implementations of HTTP Streaming in either C# or Java?
"Streaming" in this context simply means sending a large binary HTTP response to a request. You can get a reference to the output stream in Java by calling HttpServletResponse.getOutputStream. You can then send whatever data you like through the stream.
You can review the VLC source.
Java Media Framework (link) provides video streaming. You can implement not only a client but also the server using this API.
If I remember correctly the SDK includes some examples that might help.
what about CLI (command line interface)?
vlc --repeat /path_to/1.avi --sout '#standard{access=http,mux=ts,dst=:8000}'

Categories

Resources