Write metadata to container (and maybe streams)
Frame.index from AVCodecContext on decode
Meta