sipsorcery-org / SIPSorceryMedia.Windows

BSD 3-Clause "New" or "Revised" License
10 stars 22 forks source link

OnVideoSourceEncodedSample of WindowsVideoEndPoint is not called periodically #8

Closed TonyZhu2015 closed 10 months ago

TonyZhu2015 commented 2 years ago

The video sampling from OnVideoSourceEncodedSample is jerky. as FrameArrivedHandler is not called at fixed intervals(the event is not raised for a long time. and all of a sudden, it is called a few times). This is a silly question that probably is non-relevant to SIPSorceryMedia.Windows project. I am new to video programming, is it caused by intensive cpu usage?

dongxunzhang commented 12 months ago

the same problem.Seeking a solution

sipsorcery commented 10 months ago

Yes, more likely CPU related although if you're using FFmpeg or libvpx native libraries for encoding it should cope fine.

A good test would be to reduce the frame rate and/or resolution and see if the problem persists. If it goes away then that does point to a CPU bottleneck.