Skip to content

Instantly share code, notes, and snippets.

@shaposhnikoff
Created February 4, 2015 10:26
Show Gist options
  • Save shaposhnikoff/2ffe6a9b7b5e1cb95e91 to your computer and use it in GitHub Desktop.
Save shaposhnikoff/2ffe6a9b7b5e1cb95e91 to your computer and use it in GitHub Desktop.
hls example
application myapp {
## exec_record_done /bin/ffmpeg -y -i $path -acodec libmp3lame -ar 44100 -ac 1 -vcodec libx264 $dirname/$basename.mp4;
live on;
hls on;
hls_path /opt/nginx-rtmp/hls_cam;
hls_fragment 30s;
hls_playlist_length 600s;
hls_continuous on;
record_suffix -%d-%b-%y-%T.flv;
record_unique off;
record_notify on;
record_append on;
record off;
record_max_size 100M;
record_path /opt/nginx-rtmp/records;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment