Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Streaming Avi files from C# using RTP

I have a read/seek input stream of a video file (.avi mpeg4\xVid\ect..) in C# and I would like to stream it to a video player with jump to moment X feature enabled. How can I implement this?
I heard that RTP might be a good protocol.

What I'm really looking for is a library in C# that will help me out.

Thanks in advance.

like image 624
Haim Bender Avatar asked Jan 22 '11 11:01

Haim Bender


People also ask

Can AVI be streamed?

Microsoft developed this kind of file format as a constituent of Video for windows operating system. The AVI file format does not only let you stream videos and audios online but also synchronous audios with video playback.

How can I watch AVI files on my computer?

You can open AVI files with various video players, such as Microsoft Movies & TV (Windows), Microsoft Windows Media Player (Windows), Apple QuickTime Player (macOS), Adobe Premiere Pro (multiplatform), and VLC media player (multiplatform).


2 Answers

Yes, Streamcoders solution is very good if you have some €1890. But if you do not want to pay money you should look at some free libraries or write your own from scratch.

Take a look at these articles with C# sources:
RTP VOIP Library Project
How to use the managed RTP classes in .NET

And another good articles at CodeProject:
How to Build a .NET Softphone in C# with SIP, SDP, RTP and RTCP
How to use the managed RTP API classes in .NET to create your multicasting systems

Please do not forget to share your WPF library when you will implement it.

like image 172
asktomsk Avatar answered Oct 20 '22 21:10

asktomsk


I have used http://www.streamcoders.com/products/rtpnet.html.

like image 2
msms Avatar answered Oct 20 '22 20:10

msms