Open NRicode opened 3 weeks ago
ffmpeg -f gdigrab -framerate 10 -i desktop -c:v libx264 -preset ultrafast -tune zerolatency -f flv rtmp://192.168.1.3/live/STREAM_NAME
nodejs code
const config = { rtmp: { port: 1935, chunk_size: 60000, gop_cache: true, ping: 30, ping_timeout: 60, }, http: { port: 8000, allow_origin: '*', }, };
const nms = new NodeMediaServer(config); nms.run()
when I access the stream through web page, it keeps playing the video from the very beginning. how do I fix this?
ffmpeg -f gdigrab -framerate 10 -i desktop -c:v libx264 -preset ultrafast -tune zerolatency -f flv rtmp://192.168.1.3/live/STREAM_NAME
nodejs code
const config = { rtmp: { port: 1935, chunk_size: 60000, gop_cache: true, ping: 30, ping_timeout: 60, }, http: { port: 8000, allow_origin: '*', }, };
const nms = new NodeMediaServer(config); nms.run()
when I access the stream through web page, it keeps playing the video from the very beginning. how do I fix this?