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.
| Video Codec | H.264 |
| Bitrate | 2M |
| Resolution | 1080p |
| Audio | AAC |
| Container | TS |
ffmpeg -i input.mp4 -c:v libx264 -b:v 2M -maxrate 2M -bufsize 4M -c:a aac -b:a 128k -f mpegts output.ts
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.
A new FFmpeg encoding puzzle every day. Six tries, in the browser or from your terminal.