illuspas / Node-Media-Server

A Node.js implementation of RTMP/HTTP-FLV/WS-FLV/HLS/DASH/MP4 Media Server
https://www.npmjs.com/package/node-media-server
MIT License
5.9k stars 1.51k forks source link

请问rtsp 中继后 输出的格式有HTTP flv吗 #181

Open slungzr opened 5 years ago

slungzr commented 5 years ago

请问rtsp 中继后 输出的格式有HTTP flv吗

illuspas commented 5 years ago

有的哦

lihuabest commented 5 years ago

同问: const config = { rtmp: { port: 1935, chunk_size: 60000, gop_cache: true, ping: 60, ping_timeout: 30 }, http: { port: 8000, allow_origin: '*' }, relay: { ffmpeg: 'D:\Program Files\ffmpeg\bin\ffmpeg.exe', tasks: [ { //应用名称 app: 'iptv', //工作模式 静态即可 mode: 'static', //中继地址 edge: 'rtsp://admin:123456@192.168.0.208:554/h264/ch1/main/av_stream', //访问资源名称 name: 'rtsp', //传输协议 rtsp_transport : 'tcp' //['udp', 'tcp', 'udp_multicast', 'http'] } ] } }; 这样的一个配置后,能拿到一个rtmp://127.0.0.1:1935/iptv/rtsp 地址,可以再vlc里播放。但是对应的http地址是多少?

illuspas commented 5 years ago

http://ip:8000/iptv/rtsp.flv