RTSP -> HLS using FFMPEG
Solution 1:
I was able to create the following script that seems to be working for me. So far, it's been working for me.
!/bin/bash
while :
do
ffmpeg -i rtsp://rtspstreamaddress/1 -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_list_size 3 -vcodec copy -y /var/www/video.m3u8
done