Welcome! Log In Create A New Profile

Advanced

Не стримит HLS

August 10, 2016 04:07AM
Друзья подскажите в чем беда. Все настроил по этой инструкции http://conture.by/post/1552. Но вот беда по rtmp все идет, а hls не хочет. Что я делаю не так
#user nobody;
worker_processes 2;

pid /run/nginx.pid;
error_log /var/log/nginx/nginx_error.log debug;
env PATH;

events {
worker_connections 1024;
}


http {
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;


server {
listen 8080;
server_name localhost;

#charset koi8-r;
#access_log logs/host.access.log main;

# rtmp stat

location /stat {
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
}
location /stat.xsl {
# you can move stat.xsl to a different location
root /etc/nginx/;
}
location / {
rtmp_control all;
# root html;
# index index.html index.htm;
}
location /hls {
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
# index index.html index.htm;
# root /tmp;
alias temp/hls;
expires -1;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

}


}

# RTMP proxy
rtmp {
access_log /var/log/nginx/rtmp_access.log;
server {
listen 1935;
ping 30s;
notify_method get;

application sd {
live on;
dash on;
dash_path /tmp/hls;
exec_static ffmpeg_nginx -i udp://@192.168.10.59:1234/ -vcodec libx264 -s 854x480 -vb 500k -f flv -acodec libmp3lame -ar 22050 -ab 128k rtmp://192.168.0.59:1935/sd/stream 2>>/var/log/nginx/ffmpeg_sd.log;

}
# конвертируем в меньшее разрешение без звука
application hls {

live on;
hls on;
hls_fragment 10s;
hls_path /tmp/hls/;
hls_fragment_naming timestamp;
exec_static ffmpeg_nginx -i udp://@192.168.10.59:1234/ -vcodec libx264 -s 854x480 -vb 500k -acodec libvo_aacenc -ar 22050 -ab 128k -f flv rtmp://192.168.0.59:8080/hls/stream 2>>/var/log/nginx/ffmpeg_hls.log;
}
# и ещё один поток...

}
}
Subject Author Posted

Не стримит HLS

denzo August 10, 2016 04:07AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 147
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready