Kodi home media center encoding for a Raspberry Pi 4. H.264 because the Pi 4 has hardware H.264 decode but no H.265, CRF 24 for quality/size balance, Vorbis audio for the open-source stack, MKV for subtitle support.
| Video Codec | H.264 |
| CRF | 24 |
| Resolution | 1080p |
| Audio | Vorbis |
| Container | MKV |
ffmpeg -i input.mp4 -c:v libx264 -crf 24 -c:a libvorbis -q:a 5 output.mkv
The Raspberry Pi 4 has hardware H.264 decode but H.265 decode was intentionally omitted to avoid HEVC patent licensing fees. The Pi 5 added H.265 hardware decode after the royalty landscape became clearer.
A new FFmpeg encoding puzzle every day. Six tries, in the browser or from your terminal.