# main config for srs. # @see full.conf for detail config. listen 1935; max_connections 1000; srs_log_tank file; srs_log_file ./objs/srs.log; http_api { enabled on; listen 1985; } http_server { enabled on; listen 8080; dir ./objs/nginx/html; } stats { network 0; disk sda sdb xvda xvdb; } vhost __defaultVhost__ { gop_cache off; queue_length 10; min_latency on; mr { enabled off; } mw_latency 100; tcp_nodelay on; http_remux{ enabled on; mount [vhost]/[app]/[stream].flv hstrs on; } hls { enabled on; hls_fragment 10; hls_window 60; hls_on_error continue; hls_path ./objs/nginx/html; hls_m3u8_file /[app]/[stream]/[stream].m3u8; hls_ts_file /[app]/[stream]/[stream]-[seq].ts; hls_ts_floor off; hls_acodec aac; hls_vcodec h264; hls_wait_keyframe on; hls_dispose 0; hls_cleanup off; hls_nb_notify 64; } dvr { enabled on; # dvr_path ./home/javadev/html/[app]/[stream]/[2006]/[01]/[02]/[15].[04].[05].[999].flv; dvr_path /home/javadev/html/[app]/[2006]/[01]/[02]/[stream].flv; dvr_plan session; } }