ffmpeg
Streaming with ffmpeg is quite easy. You can stream any connected webcam or HDMI grabber that appears in /dev/video* and incoming alsa audio devices. In this example, the /dev/video2 video device and the hw:1,0 alsa audio device are used:
ffmpeg -f alsa -ac 2 -i hw:1,0 -thread_queue_size 64 \
-f v4l2 -framerate 60 -video_size 1280x720 -input_format yuyv422 -i /dev/video2 \
-c:v libx264 -preset veryfast -b:v 1984k -maxrate 1984k -bufsize 3968k \
-vf "format=yuv420p" -g 60 -c:a aac -b:a 128k -ar 44100 \
-f flv rtmp://<ip-of-your-server>/live/<your-streaming-key>
Contributors to this page
Related Documents
- ZoomZoom is a video conferencing provider.
- JitsiJitsi is an open source video conferencing provider.
- Compatible hardwareVarious pieces of hardware have been tested with Owncast.
- Set Up Broadcasting SoftwareHow you configure your broadcasting software can impact the quality and performance of your stream
- OBS/Streamlabs OBSOBS is a popular piece of free software for live streaming.
- Restream.ioRestream is a commercial service to stream to multiple locations at once.
