DASH推流及播放流程

DASH推流及播放流程
推流及播放DASH流框图:

推流服务器NGINX配置文件:

rtmp {

server {

    listen 1935;
	chunk_size 4096;

	application dash {
		live on;
		dash on;
		dash_path /home/ubuntu/nginx-rtmp/html/dash;
	}

}
}

WEB端播放DASH流NGINX配置文件(和上面配置在同一个文件配置):
http {
include mime.types;
default_type application/octet-stream;

sendfile        on;

keepalive_timeout 65;

server {
    listen       8000;
    server_name  localhost;

    location / {
        root   /home/ubuntu/nginx-rtmp/html;
    }

}
}
DASH推流命令行:
ffmpeg -re -itsoffset 0.5 -stream_loop -1 -probesize 10M -i 352x288.3gp -c:v libx264 -refs 4 -preset medium -profile:v high -x264-params force-cfr=1 -pix_fmt yuv420p -b:v 1200k -vsync cfr -bufsize 1200k -maxrate 1800k -c:a libfdk_aac -profile:a aac_low -sn -dn -ignore_unknown -seg_duration 10 -extra_window_size 15 -window_size 15 -adaptation_sets “id=0,streams=v id=1,streams=a” -f flv rtmp://192.168.1.135:1935/dash/output
VLC播放DASH流的地址:
http://192.168.1.135:8000/dash/output.mpd

你可能感兴趣的:(DASH推流及播放流程)