Created
December 31, 2015 01:04
-
-
Save milabs/029edc8116664d9f659a to your computer and use it in GitHub Desktop.
NGINX + RTMP + ffmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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