ffmpuzzle
Puzzle #8 · Hard · 6 params

H.264 · Bitrate 3M · 720p · AAC · FLV

The scenario

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.

The answer

Video CodecH.264
Bitrate3M
Resolution720p
AudioAAC
ContainerFLV
Framerate30

The command

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

Why

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.

Play

A new FFmpeg encoding puzzle every day. Six tries, in the browser or from your terminal.

$ play today's puzzle

← all puzzles