listen 1935; max_connections 1000; srs_log_tank file; srs_log_file ./objs/log/srs.log; daemon off; http_api { enabled on; listen 1985; raw_api { enabled on; allow_reload on; allow_query on; allow_update on; } } http_server { enabled on; listen 8080; dir ./objs/nginx/html; } stats { network 0; disk sda sdb xvda xvdb; } vhost __defaultVhost__ { transcode live { enabled off; ffmpeg ./objs/ffmpeg/bin/ffmpeg; engine snapshot { enabled on; iformat flv; vfilter { vf fps=1; } vcodec png; vparams { vframes 1; } acodec an; oformat image2; output ./objs/nginx/html/[app]/[stream].png; } } http_remux { enabled on; mount [vhost]/[app]/[stream].flv; } hls { enabled on; hls_fragment 3; hls_window 10; hls_path ./objs/nginx/html; hls_m3u8_file [app]/[stream].m3u8; hls_ts_file [app]/[stream]-[seq].ts; } dvr { enabled on; dvr_apply none; dvr_path ./objs/nginx/html/video/[app].[stream].[timestamp].mp4; } http_hooks { enabled on; on_dvr http://iotcenter/IoTCenter/api/v1/Srs/OnDvr; } }