FFMediaToolkit is a cross-platform video decoder/encoder library for .NET that uses FFmpeg native libraries. It supports video frames extraction, reading stream metadata and creating videos from bitmaps in any format supported by FFmpeg.
MIT License
352
stars
56
forks
source link
How to Reduce high cpu utilization on rtsp streaming #130
var moption = new MediaOptions();
moption.TargetVideoSize = new Size(640, 480);
moption.PacketBufferSizeLimit = 200;
var file = MediaFile.Open("rtsp://demo:1@34567b@192.40.5.155:554/cam/realmonitor?channel=1&subtype=1", moption);
while (file.Video.TryGetNextFrame(out var frame))
{
}