--
You received this message because you are subscribed to the Google Groups "BemTV: Hybrid CDN/P2P Architecture for HLS Broadcasts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bemtv+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/bemtv.
For more options, visit https://groups.google.com/d/optout.
#user nobody;
worker_processes 6;
events {
worker_connections 1024;
}
rtmp_auto_push on;
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
location / {
root /var/www;
index index.html index.htm;
}
location /stat {
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
}
location /stat.xsl {
# you can move stat.xsl to a different location
alias /tmp/hls;
}
# rtmp control
location /control {
rtmp_control all;
}
location /hls {
types {
application/vnd.apple.mpegurl m3u8;
}
root /tmp;
}
error_page 500 502 503 504 /50x.html;
location =
/50x.html {
root html;
}
}
}
rtmp {
access_log /var/log/nginx/rtmp_access.log;
server {
listen 1935;
ping 30s;
notify_method get;
application myapp {
live on;
exec_static /usr/local/bin/ffmpeg -i rtp://@233.33.210.86:5050 -c:v libx264 -s 720x576 -b:v 500k -c:a libfaac -ar 44100 -ac 2 -f flv rtmp://localhost/myapp/live 2>>/var/log/nginx/ffmpeg.log';
hls on;
hls_path /tmp/hls;
hls_fragment 5s;
}
}
}
sat@sat-P5KC:~$ sudo /usr/local/bin/ffmpeg-i http://iptv.multi-net.ru/udp/239.255.1.29:1234 -vcodec copy-acodec aac-strict experimental-ar 44100-ac 2-f segment-segment_list /tmp/hls/channel_name.m3u8-segment_list_type m3u8-segment_time 10-segment_format MPEG-TS /tmp/hls/channel_name%03d.ts
application myapp {
live on;
exec_static /usr/local/bin/ffmpeg -i rtp://@233.33.210.86:5050 -c:v libx264 -s 720x576 -b:v 500k -c:a aac -strict experimental -ar 44100 -ac 2 -f flv rtmp://localhost/myapp/live 2>>/var/log/nginx/ffmpeg.log;
hls on;
hls_path /tmp/hls;
hls_fragment 5s;
}
location / {
root /var/www;
index index.html index.htm;
add_header Access-Control-Expose-Headers "Content-Length, Content-Range, Date, Server, Transfer-Encoding, origin, range, x-goog-meta-foo1";
add_header Access-Control-Allow-Methods "GET, OPTIONS, POST, HEAD, PUT, DELETE";
add_header Access-Control-Allow-Origin "*";
}