Twitch live stream via RTMP. H.264 is the only codec Twitch accepts, 720p30 at 3 Mbps for non-partners (bitrate cap), AAC mono/stereo, FLV container as the RTMP transport format. The bread and butter of game streaming.
| Video Codec | H.264 |
| Bitrate | 3M |
| Resolution | 720p |
| Audio | AAC |
| Container | FLV |
| Framerate | 30 |
ffmpeg -i input.mp4 -c:v libx264 -b:v 3M -r 30 -c:a aac -b:a 128k -f flv rtmp://live.twitch.tv/app/STREAM_KEY
FLV (Flash Video) refuses to die. Despite Flash being deprecated since 2020, RTMP still requires FLV as its container format. Every Twitch, YouTube Live, and Facebook Live stream is wrapped in FLV before reaching the ingest server.
A new FFmpeg encoding puzzle every day. Six tries, in the browser or from your terminal.