Anyone know of an efficient, feature rich and C# .NET supported library for capturing H264 encoded video streamed from an RTSP server?
I'm developing a security application that needs to buffer video for a set amount of time (e.g. 30 seconds), and then when prompted (via an external trigger) record for n seconds after; so that what lead to the event and what happened after is captured.
So far I've found the LeadTools Multimedia SDK (which can buffer real time streams with pause/ play/fast forward/etc functionality), but its libraries and documentation for C# are lacking; with most of the features only fully available in C++.
Any help is greatly appreciated
After much research found that the LeadTool's Multimedia SDK library is the best option for this, although their documentation is heavily C++ based their customer support forum is excellent.
So for problems like this, seems best to either develop in C++ or purchase a professionally made library.
You could use https://net7mma.codeplex.com/
Log each RTPPacket and then play it back when desired. If you took a little extra time you could even save it to a rtpdump
file which would allow other plays to play it back.
I've played a bit with the products from StreamCoders and they seems to work fairly well.
来源:https://stackoverflow.com/questions/7686121/what-library-is-best-for-a-h264-video-stream-streamed-from-an-rtsp-server