output: Add support for captions.