ditch libav, working example with only of