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

Stream is choppy when no video flag is added #495

Open cyberdude opened 2 years ago

cyberdude commented 2 years ago

When I try to disable the video in the ffmpeg vcParams the audio is choppy.

tasks: [
  {
    app: "live",
    vcParam: ["-vn"],
    hls: true,
    hlsFlags: "[hls_time=2:hls_list_size=3:hls_flags=delete_segments]",
    dash: false,
    // dashFlags: "[f=dash:window_size=3:extra_window_size=5]",
  },
],

Is there a way to only do audio only streams?