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

Can't remux HLS: MediaRoot:undefined cannot be written. #588

Closed AlexUrrutia closed 1 year ago

AlexUrrutia commented 1 year ago

Hello I am able to push but when I try to enable HLS I get this error: [ERROR] Node Media Trans Server startup failed. MediaRoot:undefined cannot be written.

trans: {
    ffmpeg: '/snap/bin/ffmpeg',
    tasks: [
      {
        app: 'live',
        hls: true,
        hlsFlags: '[hls_time=2:hls_list_size=3:hls_flags=delete_segments]',
        hlsKeep: true, // to prevent hls file delete after end the stream
      }
    ]
  }
AlexUrrutia commented 1 year ago

Solved: mediaroot was missing :)