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

AAC live stream #511

Open LuckyCoders opened 2 years ago

LuckyCoders commented 2 years ago
 trans: {
         ffmpeg: '/usr/local/bin/ffmpeg',
         tasks: [
             {
                 app: 'live',
                 vc: "copy",
                 vcParam: [],
                 ac: "aac",
                 acParam: ['-ab', '64k', '-ac', '1', '-ar', '44100'],
                 rtmp:true,
                 rtmpApp:'live2',
                 hls: true,
                 hlsFlags: '[hls_time=2:hls_list_size=3:hls_flags=delete_segments]',
                 dash: true,
                 dashFlags: '[f=dash:window_size=3:extra_window_size=5]'
             }
         ]
     }

Can I open AACP stream (only audio) in this case? How link to such a stream look like?

quinnwong31 commented 1 year ago

@LuckyCoders Were you able to find a solution for this? I am trying to configure audio only as well, but not quite sure how to do that.