hls: not enough buffer for NAL
zotanmew opened this issue · 6 comments
I'm streaming with an unusually high bitrate (25000kbps), and I randomly get this error. (hls: not enough buffer for NAL
)
Happens every 5-10 minutes, and when it does, it stops creating new fragments for about 15 seconds, which causes my player to buffer (playlistlen is set to 10 seconds), after which it resumes as normal. I cannot reproduce the error while streaming with a lower bitrate (15000kbps), and a google search only lead me to the source code and an issue on the arut repo from 2013, with no hints other than patching ffmpeg fixed in, which doesn't seem applicable here as I am not using ffmpeg. And leads would be appreciated!
@ctaity which buffer are you talking about specifically? i couldn't find anything related in the directives
Patching the file/hls/ngx_rtmp_hls_module.c
to #define NGX_RTMP_HLS_BUFSIZE (1024*1024*16)
seems to have fixed it, but it seems unlikely that patching the source code is the right way to go about this
@ctaity i am not using ffmpeg though... regarding srt, do you know of any good replacement for this module that supports srt? i would love to use it..