mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-30 00:28:58 +02:00
updated README with HLS notes
This commit is contained in:
parent
5153992d5d
commit
5dd0120cc8
31
README
31
README
|
@ -14,6 +14,9 @@ NGINX-based RTMP server
|
||||||
* Online transcoding with FFmpeg
|
* Online transcoding with FFmpeg
|
||||||
(experimental; Linux only)
|
(experimental; Linux only)
|
||||||
|
|
||||||
|
* HLS (HTTP Live Streaming) support
|
||||||
|
(experimental; H264/MP3 only)
|
||||||
|
|
||||||
* HTTP callbacks on publish/play/record
|
* HTTP callbacks on publish/play/record
|
||||||
|
|
||||||
* Advanced buffering techniques
|
* Advanced buffering techniques
|
||||||
|
@ -152,6 +155,29 @@ rtmp {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# HLS (experimental)
|
||||||
|
# For HLS to work please create a directory in tmpfs (/tmp/app here)
|
||||||
|
# for the fragments. The directory contents is served via HTTP (see
|
||||||
|
# http{} section in config)
|
||||||
|
#
|
||||||
|
# Incoming stream must be in H264/MP3. For iPhones use baseline H264
|
||||||
|
# profile (see ffmpeg example).
|
||||||
|
#
|
||||||
|
# This example creates RTMP stream from movie ready for HLS:
|
||||||
|
#
|
||||||
|
# ffmpeg -loglevel verbose -re -i movie.avi -vcodec libx264
|
||||||
|
# -vprofile baseline -acodec libmp3lame -ar 44100 -ac 1
|
||||||
|
# -f flv rtmp://localhost:1935/hls/movie
|
||||||
|
#
|
||||||
|
# If you need to transcode live stream use 'exec' feature.
|
||||||
|
#
|
||||||
|
application hls {
|
||||||
|
hls on;
|
||||||
|
hls_path /tmp/app;
|
||||||
|
hls_fragment 5s;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -178,6 +204,11 @@ http {
|
||||||
root /path/to/stat.xsl/;
|
root /path/to/stat.xsl/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /hls {
|
||||||
|
# Serve HLS fragments
|
||||||
|
alias /tmp/app;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue