#/bin/bash
#ffmpeg -i http://127.0.0.1:14011  -hls_time 5 -hls_list_size 5760 /data/hk/fc/timeshif/14011/14011.m3u8
mkdir -p '/home/bm/1005'
while true
do
 /usr/local/ffmpeg-4.1/ffmpeg -i http://15.235.118.48:80/2WKPCCpkp4/vZbEVXudpk/3.m3u8  -c copy -f hls -hls_flags round_durations -hls_time 60 -hls_list_size 2880 -use_localtime 1 -hls_segment_filename "/home/bm/1005/1005_%Y%m%d_%H%M%S.ts" -hls_flags append_list /home/bm/1005/1005.m3u8
sed -i 's/#EXT-X-ENDLIST//g' /home/bm/1005/1005.m3u8
done

