Me refiero a paso en un servidor de streaming de medios construí https://blog.csdn.net/weixin_45380730/article/details/104824262
diferentes lugares: el directorio del servidor de mp4
modificar nginx.conf
RTMP {
servidor {
la escucha 1935;
application myapp {
live on;
}
application hls {
live on;
hls on;
hls_path /tmp/hls;
}
}
}
El complemento http:
UBICACIÓN / {HLS
tipos {
archivo de aplicación / vnd.apple.mpegurl M3U8;
Video / TS MP2T;
}
la raíz / tmp;
la add_header la Cache Cache-Control-NO;
flujo de pistón:
[la raíz @ MP4 localhost] # FFmpeg - re -i test.mp4 -c -f copiar FLV RTMP : //192.168.247.128: 1935 / hl / test1
método; se abre en una VLC:
referencia: https: //blog.csdn.net/liuweihui521/article/details / 84323999
https://www.cnblogs.com/dad-world/p/12180103.html
Segundo método: Abrir el navegador
1. Descargar Video.js dirección: http: //www.jq22.com/jquery-info404
extracto a / usr / local / nginx / HTML
index.html dentro 2. Modificar video5.18.4.js
Para ver el vídeo por favor, active JavaScript, y considerar la actualización a un navegador web que vídeo es compatible con HTML5