Created
February 4, 2015 10:26
-
-
Save shaposhnikoff/2ffe6a9b7b5e1cb95e91 to your computer and use it in GitHub Desktop.
hls example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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