radek-k/FFMediaToolkit

How to Reduce high cpu utilization on rtsp streaming

arunkmarhudrom opened this issue · 0 comments

           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))
            {
            }