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.89k stars 1.51k forks source link

Why does Node Media Server disconnect immediately when attempting to save stream to a shared folder on a LAN network? #572

Open lehongvan opened 1 year ago

lehongvan commented 1 year ago

Hi there,

I'm trying to use Node Media Server to save streams to a shared folder on another machine in the same LAN network. I have confirmed that the shared folder allows access from other machines on the network. On my Mac machine, I have tried using the 'Connect to Server' feature and was able to create a new folder. However, when I try to save the stream using NMS, I get an [rtmp disconnect] error immediately and cannot create the stream file. Here is my NMS config: mediaroot: 'smb://172.17.1.15/shared/'. Can anyone help me with this issue? Thank you."

alekslucenko commented 1 year ago

try using FFMPEG with a trans server.