现在有一个 rtsp 视频流 rtsp://172.16.200.32:8554/stream 。我先用 ffmpeg 转码成 rtmp 视频流,格式是 flv ,链接是 rtmp://172.16.200.32/live/stream 。现在视频还是可以正常播放的。然后我用 Nginx 搭配上 nginx-rtmp-module 插件转换成 http 视频流。具体配置如下 rtmp { server { listen 1935; chunk_size 4096;
application live {
live on;
record off;
}
}
}
http { server { listen 8080;
location /live {
flv_live on;
chunked_transfer_encoding off;
}
}
} 最后使用的 http 视频流链接是 http://172.16.200.32:8080/live/stream.flv 。但是就是没办法正常播放,提示无法连接。服务器的端口也正常能访问,这是为什么呢?