Or if you have a video file that is encoded in other audio/video format: ffmpeg -re -i INPUT_FILE_NAME -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://localhost/live/STREAM_NAME If you have a video file with H.264 video and AAC audio: ffmpeg -re -i INPUT_FILE_NAME -c copy -f flv rtmp://localhost/live/STREAM_NAME Install as a global program npm i node-media-server -gÄocker version docker run -name nms -d -p 1935:1935 -p 8000:8000 -p 8443:8443 illuspas/node-media-serverĬonst NodeMediaServer = require('node-media-server')
0 Comments
Leave a Reply. |