My Virtual Server is configured with 3GB memory, and 1 core.
I'm playing the following mp4 file Sample MP4 Video File through my NGINX RTMP server, as small.mp4
. I'm experiencing a latency issue.
Here is my nginx.conf
rtmp {
server {
listen 1935;
chunk_size 4000;
# video on demand for flv files
application live {
play /usr/local/nginx/html;
}
# video on demand for mp4 files
application live360 {
play /usr/local/nginx/html;
}
}
}
# HTTP can be used for accessing RTMP stats
http {
access_log /var/log/nginx/access-streaming.log;
error_log /var/log/nginx/error-streaming.log;
server {
# in case we have another web server on port 80
listen 8080;
# This URL provides RTMP statistics in XML
location /stat {
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
}
location /stat.xsl {
# XML stylesheet to view RTMP stats.
# Copy stat.xsl wherever you want
# and put the full directory path here
root /usr/local/nginx/html;
}
location /hls {
# Serve HLS fragments
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
alias /tmp/app;
expires -1;
}
}
}