> rtmp://hostname:port/appname/stream?sign=expires-HashValue const NodeMediaServer = require( 'node-media-server') Īuthentication Encryption URL consists of: Modifying the logging type is easy - just add a new value logType in the config and set it to a value between 0 and 4.īy default, this is set to show errors and generic info internally (setting 2). It is now possible to modify the logging type which determines which console outputs are shown. HLS DASH via flv.js over http-flv via flv.js over websocket-flv Logging Modify the logging type Http-flv websocket-flv ws://localhost:8000/live/STREAM_NAME.flv Stream key : STREAM_NAME?sign=expires-HashValue (sign parameter required only if publish auth is enabled) Accessing the live stream RTMP rtmp://localhost/live/STREAM_NAME 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') Support real-time multi-resolution transcoding.Support remux to LIVE-HTTP/WS-FLV, Support NodePlayer.js playback.Cross platform support Windows/Linux/Unix.If you like this project you can support me. A Node.js implementation of RTMP/HTTP-FLV/WS-FLV/HLS/DASH Media Server
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |