Search code examples
cvideoudpvideo-streamingvideo-encoding

How to encode a video file for real time streaming and deliver it through UDP datagrams


I am working on a P2P system for real time video streaming. I would like to know how to encode the source file, which is a video, in order to deliver it in real time by encapsulating the encoded content in custom UDP datagrams.

Which video formats are more suitable for real time video streaming?

How can I encode at the source and decode at the destination the video?

Is there any utility to do that in C?

Which video player could I use to do so?

Thanks


Solution

  • You can check this one also:

    ffmpeg takes care of all the hard work of video processing by doing all the decoding, encoding, muxing and demuxing for you. This can make media applications much simpler to write. It's simple, written in C, fast, and can decode almost any codec you'll find in use today, as well as encode several other formats

    ffmpeg Documentation http://ffmpeg.org/ffmpeg.html

    UDP prototype streaming system(but old) http://sys.cs.pdx.edu/trac/Cascades/browser/Trunk/Misc/Video/Codec/Misc/AVCodec/Source/FFMpeg-SVN-7063/libavformat/udp.c

    C Code

    http://www.ffmpeg.org/doxygen/trunk/encoding_8c-source.html

    http://www.inb.uni-luebeck.de/~boehme/using_libavcodec.html