Add intermediate format + encoder

Signed-off-by: Christoph Höger <choeger@umpa-net.de>