Also, have a look at this for ffmpeg to stream via vlc. You should only need to change a couple of small things (like the m3u8 and the path to the player).
Code:
ffmpeg -i "http://server1/ch-01.m3u8" -q:v 0 -bsf h264_mp4toannexb -f mpegts - | "/Applications/VLC.app/Contents/MacOS/VLC" - && exit