Recently I have received an extremely important patch from anba8005. The patch fixes B-frame timestamps in HLS. Until now only H264 baseline profile was smooth while all higher profiles (main etc) were broken. The problem is now fixed and the patch is merged in master.
I want to thank all the people who participate in nginx-rtmp project sending patches, providing bug reports and requesting great features.