https://ffmpeg.org/
A complete, cross-platform solution to record, convert and stream audio and video.