ffmpuzzle
Puzzle #13 · Standard · 5 params

H.264 · Bitrate 2M · 1080p · AAC · TS

The scenario

IP security camera recording to a NVR (Network Video Recorder). H.264 for hardware decoder support on cheap NVR chips, CBR 2M for predictable storage planning, MPEG-TS for crash resilience — if power cuts, only the last packet is lost.

The answer

Video CodecH.264
Bitrate2M
Resolution1080p
AudioAAC
ContainerTS

The command

ffmpeg -i input.mp4 -c:v libx264 -b:v 2M -maxrate 2M -bufsize 4M -c:a aac -b:a 128k -f mpegts output.ts

Why

A single 2 Mbps H.264 stream records ~21 GB per day. A 32-camera NVR at this bitrate fills a 16 TB drive in about 24 days, which is why most surveillance systems use motion-triggered variable bitrate to extend storage 3-5x.

Play

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

$ play today's puzzle

← all puzzles