ultravideo / uvgRTP

An open-source library for RTP/SRTP media delivery
BSD 2-Clause "Simplified" License
325 stars 92 forks source link

H265 Failed to flush the message queue #205

Closed jrsnen closed 9 months ago

jrsnen commented 1 year ago

I would like to jump in to this question because I encountered the same error messages for a specific HEVC configuration (NVENC). I also tried to increase the buffer sizes to 80 MB for RCV & SND 16 MB for RING buffer size but increasing the buffer sizes doesn't help at all.

The error messages periodically happening when the encoder triggers intra refresh. More specifically, I set intra_refresh_period: 250 intra_refresh_count: 50

I validated this behaviour with different parameters. When the intra refresh is disabled, the error messages are not printed and there aren't any artifacts in the video.

Commented by @bcizmeci at https://github.com/ultravideo/uvgRTP/issues/201#issuecomment-1679705246

tampsa commented 9 months ago

Fixed by release 3.1.0

bcizmeci commented 9 months ago

Thanks a lot! We are looking forward to integrate the new version and let you know if we encounter any new issues with it.

jrsnen commented 9 months ago

Thanks! We think this was fixed by fixing fragmentation of multiple NAL units in the same access units, but let us know if the issues continue.

BR, Joni