How to convert rgba to yuv or is there way to get sampleBuffer with yuv format?

func frameAvailable(_ sampleBuffer: CMSampleBuffer!) {

Is there a way to convert the format of a sampleBuffer with OutputFormat.BGRA to YUV here? I’m planning to create an H.264 video for video streaming, and I’m wondering if there’s a method like the one mentioned above or if there’s another solution available.

Hi, DeepAR does not include such a method but you should be able to do the conversion yourself