Add warning if EAGAIN in encoder
This most likely means there is buffering in the encoder, pose will be out of sync with image data and we will have additional latency.
This commit is contained in:
@@ -92,6 +92,7 @@ void VideoEncoderFFMPEG::Encode(int index, bool idr, std::chrono::steady_clock::
|
||||
}
|
||||
if (err == AVERROR(EAGAIN))
|
||||
{
|
||||
U_LOG_W("EAGAIN in encoder %d", stream_idx);
|
||||
return;
|
||||
}
|
||||
if (err)
|
||||
|
||||
@@ -40,7 +40,9 @@ inline const char * encoder_x264 = "x264";
|
||||
class VideoEncoder
|
||||
{
|
||||
std::mutex mutex;
|
||||
protected:
|
||||
uint8_t stream_idx;
|
||||
private:
|
||||
uint64_t frame_idx;
|
||||
|
||||
// temporary data
|
||||
|
||||
Reference in New Issue
Block a user