This command seems to be helping, I tested it for last one week:
ffmpeg -rtsp_transport tcp -i {RTSP} -c:v libx264 -crf 35 -preset ultrafast
-maxrate 3M -bufsize 100K -r 50 -g 100 -movflags +faststart -tune
zerolatency -hls_time 1 -hls_list_size 4 -hls_wrap4 -start_number 1
-hls_allow_cache 0 -thr
Using FFMpeg to convert RTSP to .m3u8 using below command
ffmpeg -rtsp_transport tcp -i
rtsp://root:kastle@192.168.17.153/axis-media/media.amp -r 100 -crf 25
-preset faster -maxrate 500k -bufsize 1500k -c:v libx264 -hls_time 4
-hls_list_size 2 -hls_wrap 2 -start_number 1 -rtsp_transport tcp -y
Z:/