Skip to content

Instantly share code, notes, and snippets.

@tschiemer
Created July 28, 2019 16:54
Show Gist options
  • Save tschiemer/3f94e2688cb3ee3519043d42832613e6 to your computer and use it in GitHub Desktop.
Save tschiemer/3f94e2688cb3ee3519043d42832613e6 to your computer and use it in GitHub Desktop.
macos multichannel audio streaming (rtmp, ffmpeg)
## rtmp server
https://www.npmjs.com/package/node-media-server
### stream
# https://www.ffmpeg.org/ffmpeg-devices.html#avfoundation
# https://stackoverflow.com/questions/4716203/which-are-the-flv-supported-audio-types
# https://trac.ffmpeg.org/wiki/Encode/AAC
# https://trac.ffmpeg.org/wiki/SupportedMediaTypesInFormats
# https://trac.ffmpeg.org/wiki/AudioChannelManipulation
ffmpeg -f avfoundation -i "none:0" -f flv -c:a aac rtmp://localhost/live/test4ch
## record
ffmpeg rtmp:://localhost/live/test4ch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment