Add an encoder method for encoding the SPS/PPS without encoding a frame

This is useful if using a muxer that requires the SPS/PPS to be
available before the first frame is encoded.