Last active
April 21, 2025 11:07
-
-
Save jmaupetit/72bf83786a3da7fa18c0f1e048a81b46 to your computer and use it in GitHub Desktop.
Stream sound card audio via a rtmp server
This file contains hidden or 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
# Run the nginx RTMP server using Docker | |
docker run -d -p 1935:1935 --name nginx-rtmp tiangolo/nginx-rtmp | |
# Stream sound card audio to the RTMP server | |
# | |
# 8 is the identifier of your default source | |
# see `pactl list sources` output | |
# | |
# 192.168.1.64 is the RTMP server IP adress | |
ffmpeg -re -f pulse -i 8 -c:a aac -b:a 128k -ac 2 -ar 44100 \ | |
-f flv rtmp://192.168.1.64:1935/live/test | |
# Play stream fron VLC on another client | |
# using the following stream address: | |
# | |
# rtmp://192.168.1.64:1935/live/test | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment