ffmpeg('http://localhost:8001/live/dd2.flv').addOptions([
'-t ' + endInSec,
'-acodec copy',
'-vcodec copy',
'-start_number 0',
'-hls_time 10',
'-hls_list_size 0',
'-g 30',
'-f hls'
])