Skip to content

Instantly share code, notes, and snippets.

@milabs
Created December 31, 2015 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milabs/029edc8116664d9f659a to your computer and use it in GitHub Desktop.
Save milabs/029edc8116664d9f659a to your computer and use it in GitHub Desktop.
NGINX + RTMP + ffmpeg
1) source
ffmpeg -fflags nobuffer -re -f alsa -i hw:0,0 -c:a nellymoser -ar 11025 -ab 8k -ac 1 -f flv rtmp://${SERVER}/1
2) listen
ffplay -probesize 32 rtmp://127.0.0.1/live/1
3) server
rtmp {
server {
application live {
live on;
record off;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment