FFmpeg Cookbook
FFmpeg RTMP Live Streaming — Push Video to YouTube Live & Twitch
How to live stream to YouTube Live and Twitch using FFmpeg's RTMP protocol: the minimal push command, every option (-re, -f flv, GOP/-g, pseudo-CBR with maxrate/bufsize), low-overhead pass-through with -c copy, webcam streaming, and common error fixes.
SRT Streaming — Low-Latency, Reliable Video Transport with FFmpeg
Stream video with FFmpeg over SRT (Secure Reliable Transport) for low latency and strong packet-loss resilience. Covers caller/listener/rendezvous connection modes, pkt_size and latency tuning, MPEG-TS delivery, and how SRT differs from RTMP — with practical ffmpeg streaming commands.
UDP/Multicast Streaming — Low-Latency LAN Transport with FFmpeg
How to do UDP unicast and multicast streaming with FFmpeg for low-latency video transport on a LAN. Covers -f mpegts, pkt_size=1316, fifo_size, and overrun_nonfatal settings, from unicast send/receive to multicast distribution, plus when to choose RTMP or SRT instead.
FFmpeg Screen Recording — Windows, macOS, Linux
How to record your desktop screen with FFmpeg on every OS. Covers Windows gdigrab/ddagrab, macOS avfoundation, Linux x11grab, capturing system audio, and file-size optimization with working commands.
Low-Latency HLS with FFmpeg — LL-HLS Setup
Generate Apple-spec low-latency HLS streams with FFmpeg. Covers hls_time, hls_flags, partial segments, EXT-X-SERVER-CONTROL, player compatibility, and measured latency — with working commands and a glass-to-glass latency comparison table.
MPEG-DASH Segmenting with FFmpeg — Build Adaptive Streaming
Generate MPEG-DASH segment files and MPD manifests with FFmpeg. Covers multi-bitrate adaptive streaming (ABR), segment duration, and the difference between live and VOD — with primary sources.
FFmpeg HLS Segmenting — Web Streaming Guide
Generate HLS segments and m3u8 playlists with FFmpeg for HTTP Live Streaming. Covers hls_time, hls_list_size, hls_segment_filename, and adaptive bitrate basics.